A polymerase chain reaction (PCR) test is <b>performed to detect genetic material from a specific organism</b>, such as a virus. The test detects the presence of a virus if you are infected at the time of the test. The test could also detect fragments of the virus even after you are no longer infected.