Durgical
EN
Open the app

Laboratory diagnosis of viral infections

  • Laboratory diagnosis

Viruses are found by their genes, their proteins or the antibodies they trigger; timing decides which test works.

Updated

What it is

Viruses cannot be grown on ordinary bacterial media and are invisible to light microscopy, so the lab detects their nucleic acid, their antigens or the patient's antibody response. Molecular tests are now the method of choice for most viral infections, while serology dates the infection and shows immunity. Choosing the right sample at the right moment of illness matters more than for most bacteria.

Key facts

  • Most viruses are shed most in the first days of illness: swab early from the affected site (nasopharynx, vesicle base, throat, stool, CSF, blood).
  • Swabs for viruses go in viral transport medium and are kept cold until processed.
  • Dengue: RT-PCR or NS1 plus IgM in days 0 to 7; IgM is the main test after day 7; a single IgG does not diagnose acute dengue.
  • HIV: nucleic acid tests detect infection earliest, then antigen/antibody tests, then antibody-only tests; each has its own window period.
  • Congenital CMV is confirmed by testing the newborn's saliva or urine within the first three weeks of life.
  • Hepatitis B serology reads a pattern: HBsAg (infection), anti-HBc IgM (acute), anti-HBs (immunity), HBeAg and DNA (replication).

Step by step

  1. Infection: the virus replicates at the entry site, often before any symptom.
  2. First days of illness: shedding and viraemia peak, so NAAT and antigen tests (dengue NS1, HBsAg, p24) are most likely positive.
  3. Later in the first week IgM appears; testing for virus plus IgM covers the gap (dengue days 0 to 7).
  4. Virus and antigen fade from blood and secretions, and IgM becomes the main marker (dengue after day 7).
  5. IgG rises and persists for years: alone it marks past infection or immunity, not current illness.
  6. Paired acute and convalescent sera showing a clear IgG rise confirm a recent infection when IgM is unclear.

Tools for viral diagnosis

MethodDetectsExamplesNote
NAAT (PCR, RT-PCR)Viral DNA or RNAInfluenza, SARS-CoV-2, HSV or enterovirus in CSF, dengue in the first weekMethod of choice for most acute infections
Quantitative viral loadAmount of viral genome in bloodHIV, hepatitis B, hepatitis C, CMV after transplantMonitors treatment and predicts disease progression
Antigen detectionViral proteinsDengue NS1, influenza and SARS-CoV-2 rapid tests, rotavirus, HBsAg, HIV p24Fast; usually less sensitive than NAAT
Serology (IgM, IgG, avidity)The patient's antibodiesHepatitis A IgM, measles IgM, hepatitis B markers, rubella immunityDates infection and shows immunity; timing is crucial
Viral cultureCytopathic effect in cell linesReference work, isolates for typing or antiviral resistanceSlow and largely replaced by NAAT
Cytology and histopathologyInclusions and giant cellsMultinucleated giant cells in herpes lesions; owl's-eye inclusions of CMVSuggestive but insensitive

Common traps

  • A positive IgG means the infection is happening now: IgG marks past infection or immunity, so acute illness needs IgM, the virus itself, or a rising IgG titre in paired sera.
  • A negative dengue IgM on day 2 rules out dengue: antibodies have not appeared yet, so in the first days the virus is sought with RT-PCR or NS1.
  • An HIV antibody test shows whether treatment is working: antibodies stay positive for life, so response is followed by viral load, which is not a screening test.
  • Anti-HBs always means the person once had hepatitis B: anti-HBs alone means vaccination, and only with anti-HBc does it mean past infection with immunity.
  • A positive CMV urine test at any age in infancy proves congenital infection: after the first three weeks the virus may have been acquired during or after birth.

Test yourself

Think of the answer, then tap the question to see it.

A patient in Cali has had fever for two days and suspected dengue; dengue IgM is negative. Why is dengue still possible and what should be sent?

IgM usually appears later in the first week, so early on the virus is sought directly with RT-PCR or NS1, ideally together with IgM.

An adult has fever, confusion and temporal lobe changes on imaging. Which CSF test is preferred, and why not viral culture?

PCR for HSV DNA in CSF: it is fast and sensitive, while CSF viral culture is rarely positive in HSV encephalitis.

Serology shows HBsAg negative, anti-HBc positive and anti-HBs positive. What does this pattern mean?

Past hepatitis B infection that has resolved, with immunity; vaccination alone would give anti-HBs without anti-HBc.

A 5-week-old infant with hearing loss has a positive urine CMV PCR. Why does this not confirm congenital CMV?

After three weeks of life the virus may have been acquired during or after birth; congenital infection is confirmed only by testing in the first three weeks.

A person with HIV started treatment months ago. Which test shows that treatment works, and why not repeat the antibody test?

Quantitative viral load: it measures the amount of virus, whereas antibodies remain positive for life whatever the treatment does.

Add to my cards (5)

Connections

← General microbiology

Educational content on microorganisms; not a treatment guide and no substitute for a health professional's advice. No doses are given.

Sources: Clinical Testing Guidance for Dengue (CDC, 2024); Getting Tested for HIV (CDC, 2024); Cytomegalovirus (CMV) Tests (MedlinePlus (NLM), 2025); Respiratory Pathogens Panel (MedlinePlus (NLM), 2025).

Spotted a mistake?We are always improving for the community. Tell us what is wrong and our team will review it.Report a mistake

Representative model, for educational purposes only.