Introduction

“Physicians use heuristics or shortcuts in their decision making to help them sort through complex clinical information and formulate diagnoses efficiently”1. Because of the difficulites associated with diagnosing patients with complex neuroinflammatory syndromes such as encephalitis, myelitis and meningitis, neurologists are often forced to use cognitive heuristics and shortcuts when assessing these patients2. Indeed, many epidemiological studies have shown that an aetiological diagnosis is not obtained in ~50% of patients with encephalitis2,3. Improved diagnostic testing modalities are urgently needed to enhance individual patient care and to expand our understanding of the full spectrum of clinical phenotypes with which neurological infections can manifest4.

Parallel revolutions in high-throughput sequencing and computational biology over the past two decades have yielded a new set of tools that are beginning to transform the way we approach the diagnosis (and exclusion) of neurological infections in patients with meningitis, myelitis and encephalitis. Metagenomic next-generation sequencing (mNGS) of cerebrospinal fluid (CSF) and brain biopsy tissue is a hypothesis-free approach to assay for a wide range of infections (DNA and RNA viruses, parasites, fungi and bacteria) in a single test. mNGS promises to fundamentally reorder the diagnostic algorithms for patients with suspected neurological infections5,6,7,8,9,10,11,12,13,14,15,16,17 (Box 1).

The term ‘metagenomics’ refers to the interrogation of all the genetic material in an environmental sample. Enabled by the marked drop in the cost and increased speed of NGS technologies, the techniques for generating metagenomic data are evolving away from the amplification of pathogen-specific genes or genes conserved across many microbes to the use of millions of random primers that amplify virtually all of the nucleic acid in a sample.

Excellent publications already exist that describe in detail the various techniques by which extracted DNA and/or RNA can be prepared for mNGS18 as well as the numerous bioinformatics pipelines for analysing large mNGS datasets19,20,21,22. Given these publications and the rapidity with which the field is changing, this Review will not describe detailed laboratory or computational methods. Rather, we introduce some of the molecular and bioinformatics challenges associated with this technique to help neurologists understand the technical considerations and challenges that can affect the test’s utility and the interpretation of results. In addition, we provide guidance to help neurologists and other subspecialists in internal medicine, infectious diseases, critical care and rheumatology decide whether and when to order an mNGS test and how to interpret the significance of a positive or negative result. The Review highlights the ability of mNGS to look for the widest possible variety of organisms while also discussing its cost, along with computational and data interpretation challenges.

Metagenomics for neurological infections

Myriad reasons exist as to why the syndromes of encephalitis, meningitis and myelitis are frequently challenging to evaluate. The rarity of each of the many neuroinvasive pathogens makes physician-level knowledge of their overlapping clinical phenotypes poor and access to the individual diagnostic tests for these pathogens cumbersome. Indeed, diagnostic tests for amoebic infections, many arboviruses (viruses transmitted by arthropods), and rare bacterial and parasitic infections are only available through local departments of public health or national reference centres such as the Centers for Disease Control and Prevention. As a single test that can identify any neurological infection (except prions), mNGS can circumvent the need to order a huge number of pathogen-specific, candidate-based diagnostic tests (for example, pathogen-specific PCR, serology or antigen testing), each of which has its own strengths and weaknesses.

Immunocompromised patients present particular challenges because they are susceptible to unusual neuroinvasive pathogens that might not be part of a neurologist’s standard diagnostic algorithm2,10,17,23,24,25,26. In addition, many emerging and re-emerging pathogens have neuroinvasive potential, including Ebola, measles, mumps, Nipah, Hendra, Chikungunya, Zika and Powassan viruses4,23,24,27,28,29. Zika virus had been circulating in Brazil for 18 months before it was identified and for 24 months before it was determined that it was responsible for a spike in cases of microcephaly and Guillain–Barré syndrome30. As it had not previously been seen in the Americas and had never been known to cause fetal brain abnormalities, it did not make sense for Brazilian physicians to test patients for Zika virus when these cases were first arising. As mNGS is an agnostic approach to identifying neurological infections, it has the potential to diagnose infections in patients with unexpected clinical phenotypes and/or demographics10,31,32,33,34 (Fig. 1, Boxes 2, 3).

Fig. 1: Virtuous learning cycle with hypothesis-free diagnostics.
figure 1

Unbiased metagenomic next-generation sequencing has the potential to identify rare and potentially unknown causes of meningoencephalitis, which can lead to rational therapeutic decision-making and to an improved understanding of the clinical spectrum with which various neurological infections can present.

Finally, the revolution in autoimmune neurology over the past 15 years has made it clear that many patients with previously assumed infectious encephalitis syndromes instead have autoantibody-mediated disorders. A 2018 study suggested that the prevalence of patients with autoimmune encephalitis might equal that of patients with infectious encephalitis35,36,37,38. The knowledge that patients with autoimmune encephalitis can respond favourably to powerful immunosuppressants39,40 has only made it more critical to identify (or exclude) an occult infection in a timely manner. To the extent that mNGS can help neurologists more confidently exclude an active CNS infection, mNGS has the potential to help speed the initiation of empirical immunosuppression in patients with suspected autoimmune encephalitis. Given the evolving diagnostic complexity and clinical severity of patients with meningoencephalitis, the management and diagnosis of patients with encephalitis is truly a multidisciplinary approach with input required from neurologists, infectious diseases specialists, neurointensivists, rheumatologists, immunologists, radiologists and microbiologists. mNGS is a powerful tool that fits into the overall diagnostic and management algorithm for these complex patients.

Identifying the optimal sample for mNGS

One of the most important considerations when deciding to pursue mNGS or when interpreting the significance of an mNGS result is to carefully assess the quality and timing of the available sample (or samples). mNGS is fundamentally a direct detection method, meaning that one is attempting to identify a pathogen by recovering its genomic DNA or RNA and/or transcriptional products. Thus, mNGS is susceptible to the same constraints as traditional, pathogen-specific PCR (that is, if the pathogen’s nucleic acid is not physically present in the sample, then PCR and, by extension, mNGS will have no ability to detect it). As a result, patients with chronic infectious meningoencephalitis, generally considered as having symptoms for >1 month, might have a wider time window for obtaining a CSF sample that contains microbial nucleic acid5,10,11,34. However, for patients with acute viral encephalitis (for example, West Nile virus), the virus might only be present in the CNS for the first few hours or days of illness7,41. Thus, performing mNGS on CSF that is temporally remote from the onset of a patient’s acute illness might not help identify the inciting infection (although it might increase confidence that infection is not ongoing in a patient who continues to suffer medical complications). Similarly, if a CSF sample has been stored at room temperature or even refrigerated at 4°C for multiple days before being tested, then the organism’s nucleic acid (especially RNA) might have been degraded and mNGS might yield false negative results42.

A second important consideration is the patient’s exposure to antimicrobials before the sample was obtained. Although pathogen-specific PCR and mNGS can detect residual microbial nucleic acid even after antibiotics have decreased the yield of culture14,43,44, a negative mNGS result needs to be interpreted with caution in this context. Finally, if a patient’s infection is compartmentalized (for example, brain abscess) or if the suspected pathogen is typically diagnosed by serology because of a low abundance or absence in the CSF (such as Borrelia burgdorferi (Lyme disease) or Treponema pallidum (syphilis)), a negative CSF mNGS result should be interpreted with caution14.

For these reasons, brain and/or meningeal tissue biopsy samples can also be valuable for interrogation by mNGS10,12,17,32,45,46,46,100. However, the success of this approach is dependent on whether the microorganism is present in the particular piece of tissue from which nucleic acid is being extracted, whereas CSF has the advantage of being a source of microbes from the whole subarachnoid space, if not the whole brain. Success is also dependent upon whether the tissue’s nucleic acid (especially RNA) has been optimally preserved in a sterile manner. Flash freezing tissue in liquid nitrogen in the operating room avoids the degradation of nucleic acid and the environmental microbial contamination associated with formalin fixation and paraffin embedding as well as the microbial translocation from the gastrointestinal tract that can occur in the hours or days after a patient expires and before an autopsy is performed48.

Sequencing library preparation

After a sample is obtained, nucleic acid is extracted from <1 ml of the CSF sample (current clinically validated assays recommend at least 600 µl but research-based sequencing has been performed with even smaller volumes)16,28. CSF can be a difficult sample type to perform mNGS on owing to its typically very low biomass28. Extracting nucleic acid from the CSF pellet after centrifugation might improve the detection of intracellular pathogens16,49. However, cell-free DNA from viruses might be more easily detected following extraction from the supernatant15. Detection of some pathogens, such as fungi and mycobacteria, is improved with enhanced extraction methods such as boiling and/or bead bashing15,50.

cDNA is generated from the RNA fraction by reverse transcription with random hexamer primers. The cDNA (or extracted DNA) is then converted into a library of random cDNA fragments with sequencing adapters ligated onto both ends of the cDNA molecules51. This pool of sequencing-competent cDNA molecules is then sequenced on a massively parallel scale by one of a number of available sequencing platforms (such as Illumina). Alternatively, high-throughput sequencing platforms that perform long-read sequencing on native RNA or DNA from a sample are increasingly available (for example, Pacific Biosciences and Oxford Nanopore). These platforms offer potential advantages, including the speed (that is, hours instead of days) at which a sample can be processed and sequenced (Oxford Nanopore) and the improved ability to assemble highly redundant microbial genomes from longer, intact stretches of nucleic acid52,53,54. The Oxford Nanopore platform’s flash drive size also makes it attractive for use in low-resource settings such as in a 2020 meningoencephalitis study performed in Vietnam55. More recent iterations of these long-read platforms show continued improvement, but their error rates continue to be higher than those of the short-read sequencing platforms such as Illumina56. This factor decreases their utility in detecting and diagnosing infections in samples like CSF, which might contain only tens or hundreds of pathogen sequences with which to make a diagnosis.

Bioinformatics analysis

High-throughput sequencing technologies produce very large datasets. For example, Illumina-based mNGS protocols typically aim to generate 5–20 million 100–150 nucleotide (nt) sequences per sample. The delay in processing these massive amounts of data used to be a significant bottleneck preventing the delivery of clinically pertinent information in a timely manner. However, over the past few years, the time required to complete the initial data analysis has been reduced dramatically from weeks to 5–20 minutes5,14.

Conceptually, the many available bioinformatics pipelines for analysing mNGS data are similar in their need to filter out human, low complexity (that is, highly repetitive nucleotide sequences that are not likely to be informative for identifying a specific organism), redundant and poor-quality sequences before starting the process of determining the identity of the remaining non-human, high-complexity, non-redundant and high-quality sequences. The proportion of sequences that are removed by these filtering steps can vary considerably depending on the tissue type as well as on the abundance of the infectious agent and/or the degree of environmental contamination. For example, even in an infected CSF sample from a patient with encephalitis, 97–99% of the sequences might be human given the typically low pathogen loads, whereas 80% of the sequences from an infected sputum sample from a patient with viral pneumonia might be viral11,57.

Once the filtered mNGS dataset is obtained, a number of major bioinformatics decisions need to be made. First, one has to decide which database to use to identify the organisms to which the sequences best align. For example, the very large but error-prone National Center for Biotechnology Information’s (NCBI) GenBank database contains genomic sequences from all known organisms, whereas some highly curated databases only contain high-quality genomic information from known human pathogens11,12,14,16,20,58,59,60. Using the GenBank database increases the likelihood of identifying more unusual or divergent infections but requires the analyst to perform secondary analyses to confirm that a preliminary organism match is correct and not the result of an erroneous entry in the database. Using other, more limited, databases makes it less likely that an initial microbial call is erroneous, but it is also less likely that an infectious agent not contained in the more limited dataset will be identified. Second, bioinformatics pipelines differ on whether to first assemble the typically short sequencing reads (100–200 nt) into larger contigs for more specific organism matching or whether to do an initial search with the raw, short sequences. Finally, decisions need to be made about the relative weight to place on the nucleotide-to-nucleotide matches, which are more stringent and less tolerant of organisms with divergent genome sequences than nucleotide-to-amino acid matching; the latter is more sensitive to the detection of divergent organisms but also more likely to generate spurious matches18.

Data interpretation

Once the microbial identifications have been made from the filtered dataset, the primary task is to determine which, if any, of these microbes represent an infectious agent (or agents) and what proportion represent contaminants (for example, from skin flora or laboratory reagents) that are omnipresent in mNGS datasets.

Although CSF is a sterile bodily fluid, contaminating microbial sequences are ironically a major problem for CSF. As previously discussed, pathogen loads are typically low in CSF and, therefore, there are usually very few sequences that align to the infectious agent. In addition, we and others have shown that, in very low biomass samples like CSF (typical CSF RNA inputs are 5–50 pg), an overamplification of sequencing reagent contaminants occurs11,28,61,62. In other words, when little to no biomass exists in a CSF sample, the primers used in the PCR amplification step amplify even minimal quantities of environmental contaminants over and over, thus increasing the proportional representation of contaminants in the final dataset. Fortunately, the addition of even 20 pg of RNA of a known sequence can substantially decrease the overrepresentation of sequencing reagent contaminants without sacrificing sensitivity for detecting an infectious organism11. Similarly, observing that an organism’s representation in a dataset is inversely correlated to the input RNA amount makes it likely that this organism is a reagent contaminant61,62.

Another critical component for differentiating between infections and contaminants is the use of ‘no template’ (that is, sterile water) and uninfected CSF controls to characterize the microbes present in a particular laboratory as well as the DNA and RNA from skin flora that frequently contaminate CSF obtained by lumbar puncture. With these data, one can construct background models and use a variety of scoring metrics (for example, Z-score based or absolute cut-offs) to determine how unexpected it is to find a particular organism in a given patient’s sample based on its abundance across uninfected CSF (or brain) samples and water (that is, no template) controls11,16.

As with all clinical test results, the potential pathogens identified by mNGS must be put into clinical context to determine whether they are clinically relevant. To facilitate this contextualization, in our institute, we offer ‘clinical microbial sequencing boards’ attended by neurologists, infectious diseases experts, laboratory medicine specialists and scientists with expertise in mNGS, during which the details and implications of the mNGS results and analyses (including secondary analyses discussed below) can be discussed in the context of the treating physician’s understanding of the clinical features of the case14. For example, Case 4 (Box 3) highlights a case in which Epstein–Barr virus was detected in CSF by PCR but was not ultimately the aetiological agent of the patient’s meningoencephalitis63. Human herpesvirus type 6 is another common example of a virus that can cause meningoencephalitis in patients who have undergone bone marrow transplantation64; however, more often, it is thought to be a bystander virus.

Of note, the abundance of sequencing reads aligned to a presumed pathogen has a gross correlation with the abundance of the pathogen in the CSF; however, this correlation is not a true linear correlation and can vary on the basis of several factors such as RNA degradation, sample extraction techniques and PCR amplification bias16. Although serial mNGS studies could be used to document the resolution of an infection, it would be more cost-effective to track this in subsequent CSF samples with a pathogen-specific quantitative PCR assay if one is available.

Secondary analyses

Beyond the identification of a particular infection, mNGS datasets permit a wide variety of secondary analyses. For example, enough of an organism’s genome might be recovered from an mNGS dataset to be able to perform phylogenetic analyses that can help determine the time and place where a patient was infected14,65, identify whether antimicrobial resistance genes are present and to determine whether a particular patient’s infection might be connected to a wider disease outbreak in the hospital or their geographic region14,65,66,67,68. Although the results of these secondary analyses might not be part of the official clinical report for a clinical mNGS test, they can be discussed with the treating physicians (for example, in the context of a clinical microbial sequencing board) and inform additional diagnostic testing or even public health responses14.

Enrichment and depletion technologies

The depth of sequencing (that is, how many individual sequences are obtained for an individual sample) is an important consideration as samples can have low pathogen loads and/or a high number of human sequences (for example, owing to a high CSF pleocytosis) or environmental background contamination. Thus, increasing the sequencing depth is a potential solution to improve the sensitivity of an mNGS test. This approach is becoming more feasible as sequencing capacity increases and the price per nucleotide sequenced drops rapidly. In addition, a variety of novel targeted depletion and enrichment technologies that can increase the diagnostic yield without needing to increase the sequencing depth have been developed over the past few years.

Depletion

We and others have found that human transcripts in CSF mNGS RNA-Sequencing datasets can be heavily skewed towards mitochondrial and ribosomal RNA genes, sometimes representing 50–80% of all sequences in a sample69. Thus, targeted depletion of this relatively small number of highly expressed, human RNA transcripts could theoretically enhance detection of infections while lowering sequencing costs. Although numerous human ribosomal and mitochondrial depletion kits are commercially available, they require multiple nanograms of input RNA and are thus not useful for the very low RNA yields from CSF. DASH (Depletion of Abundant Sequences by Hybridization) is a targeted and programmable tool that removes unwanted host sequences and is agnostic to the input sample type and amount69. After generating cDNA from the input RNA, DASH uses CRISPR–Cas9 to selectively target and cut DNA molecules that are complementary to guide RNA sequences, thus rendering these DNA molecules unsuitable for final sequencing library amplification and sequencing69. Effective depletion strategies for human DNA that are compatible with mNGS workflows and that result in significant levels of pathogen sequence enrichment have proven more challenging given that DNA samples generate much more evenly distributed coverage across the human genome and, therefore, selective depletion of a finite number of genes does not substantially enhance the detection of non-human sequences.

Enrichment

Certain pathogens can be in low abundance and, despite being detected, might be below the clinical reporting threshold for a given mNGS assay. Mycobacterial infections in particular are challenging in this regard given that tuberculous meningitis is a paucibacillary infection (that is, low numbers of bacilli are needed to cause infection)14. Several methods are currently used to enrich low abundance organisms. VirCapSeq-VERT (Virome Capture Sequencing Platform for Vertebrate Viruses) and related methods can enrich for viral sequences by up to 10,000-fold70,71. In VirCapSeq-VERT, ~2 million oligonucleotide probes designed to bind to the coding site of all viral taxa known to infect vertebrae are hybridized to a cDNA library. Once added to a sample, these probes attach to complementary viral DNA. Streptavidin magnetic beads are added to the probes and their associated cDNA components. The beads are magnetically captured and cDNA is removed, followed by post-hybridization PCR and sequencing.

FLASH (Finding Low Abundance Sequences by Hybridization) is a novel enrichment method that utilizes CRISPR–Cas9 technology72. Prior to library preparation, DNA is dephosphorylated using calf intestinal alkaline phosphatase, rendering any exposed 5′ ends inaccessible to adaptor ligation. This prevents adaptor ligation to the majority of the sample, including host and non-host nucleic acids. Guide RNAs are then added to direct Cas9 to cut DNA at predefined targets, which allows the newly exposed DNA to undergo adaptor ligation. FLASH has enriched targeted sequences by >100,000 fold in initial studies with Plasmodium falciparum and Staphylococcus aureus72. Although FLASH deviates from the unbiased approach of mNGS, it might have utility as an adjunct test in cases with high suspicion for specific low abundance pathogens.

Metagenomic sequencing with spiked primer enrichment is another method that enables the targeted amplification of specific pathogen sequences combined with the unbiased advantages of mNGS73. In an initial study, primers targeting 15 virus genomes were spiked in along with the random primers used for mNGS library construction. These spiked primers amplified their specified viral genomes at a median ten-fold enrichment. The improved detection of specific viral pathogens at lower sequencing depths, the maintenance of the unbiased approach of mNGS, the additional cost of only US$0.34 per sample and no additional time required for the mNGS protocol, make this an appealing enrichment technique73. Panels for specific infections can be custom designed for the unique patient cohorts being tested and/or for pathogens known to only be present at low abundance.

Clinical evaluation and adoption

Relegated to research labs for many years, CSF mNGS testing is now clinically available (at the time of writing, UCSF Clinical Laboratory is the only provider of the assay for CSF in the United States, but other laboratories have assays at different stages of development, with Johns Hopkins Medicine soon to launch a clinical assay15). Although not meant to be an exhaustive list, internationally, clinical CSF mNGS testing is available in the United Kingdom74, France75, South Korea54 and China76,77. The validation data for the UCSF assay demonstrated that it had a sensitivity of 73–92% and a specificity of 96–99%, depending on the pathogen16. These results were based on comparative testing of 73 known positive and 22 negative CSF samples followed by testing of a further 20 cases with 12 known positive samples. After the test was validated, a multicentre study was performed to evaluate its real-world performance14. The Precision Diagnosis of Acute Infectious Diseases (PDAID) study enrolled 204 patients with idiopathic meningitis, encephalitis or myelitis at eight hospitals and found that mNGS had 80% positive percent agreement with infections identified by any direct detection method on CSF (that is, culture, antigen testing, PCR and orthogonally confirmed mNGS) and 98% negative percent agreement. As mNGS identified 13 infections missed by standard testing, conventional CSF direct detection tests only had 67.5% positive percent agreement and 99.4% negative percent agreement relative to infections identified by direct detection methods on CSF, including orthogonally confirmed mNGS. Overall, mNGS of CSF increased the infectious diagnoses by 22% in the PDAID study. Of the 13 cases diagnosed only by mNGS, 8 diagnoses had an effect on clinical decision-making.

Although mNGS had good concordance with other direct detection methods on CSF and, indeed, increased the overall diagnostic yield, it did not detect 26 (45%) of the total infections diagnosed in the PDAID study. As discussed previously, there were three reasons why an infection was missed. Of the 26 infections, 11 were diagnosed by serology alone (for example, West Nile virus and T. pallidum); in these cases, both mNGS and the pathogen-specific PCR were concordant in not finding evidence for the pathogen’s nucleic acid in the CSF. Furthermore, seven infections were compartmentalized (for example, brain abscess) and were identified by sampling tissue other than CSF; again, with these infections, the negative results from CSF mNGS were concordant with pathogen-specific PCR on CSF. Finally, eight infections were true false negatives by mNGS as low titres of microbial DNA were detected by pathogen-specific CSF PCR, but the sequences to the infectious agent identified by mNGS were either not abundant enough to reach the reporting threshold for the mNGS assay (n = 6; Mycobacterium bovis, M. tuberculosis, Cryptococcus neoformans, Propionibacterium acnes, fusobacterium, S. aureus) or had no reads detected on mNGS (n = 2; cytomegalovirus and herpes simplex virus type 2). In three cases, mNGS results were found to be false positives after additional discrepancy testing was performed (Pantoea, S. aureus and Streptococcus agalactiae). The false positives were attributed to sample contamination from the environment or normal human flora. These findings again highlight that clinical reasoning should still be used to interpret test results and to order serological tests and/or tests on other relevant tissue types when appropriate.

Practical considerations for mNGS

Although compelling individual cases from the PDAID study and other case reports and case series suggest that mNGS might lead to improved health outcomes and potential cost savings to the health-care system, the PDAID study did not include a control group of patients for whom mNGS testing was not offered. Thus, it could not answer important questions about the patient populations for whom CSF mNGS testing will be most cost-effective, when mNGS should be utilized in the course of a patient’s care and whether, at a population-level, mNGS improves health outcomes for patients with meningitis, encephalitis or myelitis.

The few available clinically validated mNGS assays on blood, CSF and respiratory fluid range in cost from US$1,000 to $2,500 and test turnaround times range from 1 to 10 days. The variable turnaround times are not due as much to technical variations in the assays but rather to staffing levels and the degree of automation, both of which will increase as these tests become more common and routine18. A health-care economics modelling study based on actual insurance payments (as opposed to amounts charged) for hospitalized patients with meningitis or encephalitis found that an opportunity exists for mNGS testing to be cost-effective in patients who have undergone a neurosurgical procedure, who are critically ill, who are infected with HIV or who have had a solid organ transplant given that these patients have long lengths of stay and substantial costs throughout the length of their hospitalization78. For example, mNGS could decrease health-care costs by diagnosing a treatable disease, as seen in a patient who had a lung transplant and was diagnosed with hepatitis E virus meningoencephalitis and whose anti-viral treatment resolved their neuroinflammatory disease and probably also spared them a liver transplant9. In other cases, the diagnosis of even a fatal infection can save health-care costs by allowing families and doctors to focus on palliative care rather than on additional diagnostic testing, empirical treatments and costs associated with critical care8.

Cost considerations aside, the decision about when in the course of a patient’s work-up to order a CSF mNGS test is ultimately one that has to be made on a case-by-case basis. Factors include the physician’s suspicion for an unusual infection not easily identified by available conventional tests and the quality of available CSF samples as judged by the timing of their collection relative to symptom onset and whether the sample has been adequately handled to preserve sterility and nucleic acids.

Future directions

Two new frontiers are beckoning in the field of hypothesis-free testing. As discussed above, host transcriptomic data constitute the bulk of the mNGS data generated from sequencing CSF RNA. In similar datasets from the blood of patients with sepsis and respiratory samples from patients with a variety of infectious and non-infectious causes of pneumonia, host gene expression signatures can correctly classify patients as having infectious or non-infectious syndromes and even distinguish between patients with particular classes of infections (for example, bacterial versus viral) 57,79,80,81,82,83. Parallel efforts are underway to develop syndromic classifiers from CSF RNA-sequencing data (which are already generated as part of existing mNGS assays). These classifiers could have important implications for clinical management. For example, in addition to not finding an infection in the CSF of a patient with suspected autoimmune encephalitis, it might increase the treating physician’s confidence to embark on a course of empirical immunosuppression if they know that the patient’s host response mirrors that seen in other patients with autoimmune encephalitis compared to patients with viral encephalitis.

Secondly, powerful technologies are emerging to comprehensively survey the CSF (and other bodily fluids) for antibodies to a large number of viruses and autoantibodies. Perhaps most prominently, programmable phage display assays (such as VirScan) that display tens or hundreds of thousands of viral peptides on the surfaces of a library of T7 bacteriophages can generate serological evidence for a neuroinvasive viral infection even when the viral nucleic acid is no longer present84,85,86,87.

CRISPR–Cas systems are also being developed for the direct detection of pathogen sequences in clinical samples without needing to extract DNA or RNA, let alone perform any amplification or sequencing steps. The most prominent two methods are SHERLOCK using CRISPR–Cas13 (refs88,89) and DETECTR using CRISPR–Cas12a89,90,91. Assays have already been developed to detect Zika, dengue, West Nile, yellow fever and human papilloma viruses as well as severe acute respiratory syndrome coronavirus type 2 (refs88,89,90,92,93). Although these techniques are targeted and do not permit an unbiased assessment of the nucleic acid in a sample, they can be increasingly multiplexed89,93, generate a fluorescent signal with no computational analysis required, generate an answer in <2 hours and can be performed with lyophilized reagents that are conducive to diagnostic testing in low-resource settings90.

Conclusions

The diagnosis of neurological infections through the detection of microbial nucleic acid in CSF began with the advent of herpes simplex virus PCR, which transformed the diagnosis of herpes simplex encephalitis from requiring a brain biopsy to a diagnosis that could be made from CSF in a matter of hours94. Subsequently, multiplex PCR panels that assay for 10–20 infections in parallel95 as well as more broad-based PCR strategies that amplify highly conserved regions like 16S ribosomal RNA (rRNA), 18S rRNA or 28S rRNA of bacterial, fungal or parasitic genomes, respectively41,96,97,98,99, have further advanced PCR-based diagnostics for neurological infections. Now that NGS data are increasingly cheap and easy to acquire and analyse, mNGS represents the next step in an increasingly unbiased approach to diagnosing neurological infections, and it is one of the most exciting translational applications of the genomics revolution for neurologists.

We have discussed the prospects for mNGS and other related genomic technologies to improve the landscape of the diagnosis of neurological infections and our understanding of neuroinflammatory disorders more generally. The unbiased nature of mNGS will help combat some of the cognitive heuristics or shortcuts that neurologists rely on when evaluating a complex clinical case with incomplete information and open up our imagination to the diverse ways in which pathogens can manifest as disease, especially when they interact with that most complex of human organs, the brain. However, a thorough understanding of the strengths and weaknesses of these technologies is important to mitigate against falling prey to another cognitive shortcoming, namely blind obedience to technology (Box 4). Even results from advanced diagnostic testing must be interpreted in the clinical context of a patient from whom a physician has obtained a thorough history and examination.