Skip to main content

HOPS: automated detection and authentication of pathogen DNA in archaeological remains


High-throughput DNA sequencing enables large-scale metagenomic analyses of complex biological systems. Such analyses are not restricted to present-day samples and can also be applied to molecular data from archaeological remains. Investigations of ancient microbes can provide valuable information on past bacterial commensals and pathogens, but their molecular detection remains a challenge. Here, we present HOPS (Heuristic Operations for Pathogen Screening), an automated bacterial screening pipeline for ancient DNA sequences that provides detailed information on species identification and authenticity. HOPS is a versatile tool for high-throughput screening of DNA from archaeological material to identify candidates for genome-level analyses.


High-throughput DNA sequencing enables large-scale metagenomic analyses of environmental samples and host tissues and provides an unprecedented understanding of life’s microbial diversity. Examples of coordinated efforts to quantify this diversity include the Human Microbiome Project [1], the Tara Ocean Project [2], and the Earth Microbiome Project [3]. Metagenomic data from human archaeological remains (e.g., bones, teeth, or dental calculus) provide a window into the individuals’ metagenomic past and are an unprecedented temporal dimension added to the wide landscape of microbial diversity now being explored. While many ancient DNA (aDNA) studies focus on the analysis of human endogenous DNA isolated from ancient specimens [4,5,6,7,8], co-recovery of metagenomic aDNA permits queries that provide information related to endogenous microbial content at death, with applications ranging from characterizing the natural constituents of the microbiota to identifying infectious diseases [9, 10].

Genome-level investigations of ancient bacterial pathogens have provided valuable information about the evolution of Yersinia pestis [11,12,13,14,15,16,17,18], Mycobacterium leprae [19, 20], Mycobacterium tuberculosis [21, 22], pathogenic Brucella species [23, 24], Salmonella enterica [25, 26], and Helicobacter pylori [27], with others surely on the horizon. Notably, most studies to date have leveraged paleopathological evidence or historical context to pinpoint a priori involvement of a specific bacterial pathogen. However, the vast majority of infectious diseases do not lead to the formation of distinct and characteristic bone lesions, and most remains are found in contexts that lack clear associations with a particular disease. Consequently, studies of ancient pathogens must consider a long list of candidate microbes. Given the sizes and availability of current aDNA datasets, there is clear benefit for the development of an automated computational screening tool that both detects and authenticates true pathogen genetic signals in ancient metagenomic data. Ideally, this tool also is able to distinguish pathogens from the dominant and diverse microbial background of archaeological and other decomposed material, a consideration typically not required for tools developed for clinical applications.

To save computational time and effort, most available metagenomic profiling tools focus only on individual genes, such as the 16S rRNA gene used by QIIME [28], or panels of marker genes, such as those used by MetaPhlAn2 [29] and MIDAS [30], that are easy to retrieve and sufficiently specific. However, these genes make up only a small proportion of a bacterial genome (the 16S rRNA gene, for example, accounts for only ~ 0.2% of a bacterial genome and is usually present in multiple copies), and if a pathogen is present at low abundance compared to host and environmental DNA, these genes are likely to be missed in routine metagenomic sequencing screens. Although these tools can have high specificity, they lack the sensitivity required for ancient pathogen screening from shallow but highly complex metagenomic datasets. Screening techniques that accommodate queries of whole genomes are of clear benefit for archaeological studies since alignment to a full reference genome offers greater chances for detection when data for a given taxon are sparse [25]. While some algorithms, such as Kraken [31], have been developed to query databases that contain thousands of complete reference genomes using k-mer matching, this approach does not produce the alignment information necessary to further evaluate species identification accuracy or authenticity.

In addition to taxonomic classification [32], it is also helpful to distinguish ancient bacteria from modern contaminants as early as the initial screening [9, 10]. Genuine aDNA, especially pathogen bacterial DNA, is usually only present in small amounts and can be distinguished from modern DNA contamination by applying an established set of authenticity criteria [9, 10], the most important of which is the assessment of DNA damage. In ancient DNA, cytosine deamination accumulates over time at DNA fragment termini [9, 10, 33, 34], thus leading to a specific pattern of nucleotide misincorporation during amplification. The evaluation of additional authenticity criteria such as edit distances (number of mismatches between read and reference) and the distribution of mapped reads across the reference are also recommended to circumvent database bias artifacts and to further validate taxonomic assignments [9, 10]. While manual evaluation of species identification and aDNA authenticity using standalone tools might be feasible for a small sample set, it is impractical for the large sample sizes typical of recent ancient DNA investigations. The increasing throughput of the ancient DNA field warrants an automated high-throughput solution for pathogen detection in metagenomic datasets.

Successful ancient pathogen detection is reliant upon three criteria: (i) specificity of species-level detection against a diverse metagenomic background, (ii) high sensitivity that allows detection even with a weak signal when only trace amounts of species-specific DNA are present, and (iii) authentication of its ancient origin. No software currently exists that fulfills all requirements for reliable screening of metagenomic aDNA. Here, we introduce HOPS (Heuristic Operations for Pathogen Screening), an automated computational pipeline that screens metagenomic aDNA data for the presence of bacterial pathogens and assesses their authenticity using established criteria. We test HOPS on experimental and simulated data and compare it to common metagenomic profiling tools. We show that HOPS outperforms available tools, is highly specific and sensitive, and can perform taxonomic identification and authentication with as few as 50 species-derived reads present.


HOPS workflow

HOPS consists of three parts (Fig. 1): (i) a modified version of MALT [25, 35] that includes optional PCR duplicate removal and optional deamination pattern tolerance at the ends of reads; (ii) the newly developed program MaltExtract that provides statistics for the evaluation of species identification as well as aDNA authenticity criteria for an arbitrarily extensive user-specified set of bacterial pathogens, with additional functionality to filter the aligned reads by various measures such as read length, sequence complexity, or percent identity; and (iii) a post-processing script that provides a summary overview for all samples and potential bacterial pathogens that have been identified.

Fig. 1

Schematic depiction of HOPS workflow. First, MALT aligns the metagenomic data against its reference database and has an optional mode for processing aDNA reads. MaltExtract then processes the MALT output with various filters and produces various statistics. Finally, post-processing procedures provide a comprehensive visualization of the output that can be evaluated to identify putatively positive hits


MALT (Megan Alignment Tool) [25, 35] is an alignment and taxonomic binning tool for metagenomic data that aligns DNA reads to a user-specified database of reference sequences. Reads are assigned to taxonomic nodes by the naïve Lowest Common Ancestor (LCA) algorithm [36, 37] and are thus assigned to different taxonomic ranks based on their specificity. The default version of MALT is intended for the analysis of metagenomic datasets derived from modern DNA, and thus, it was not designed to accommodate the specific requirements of aDNA analyses. In particular, aDNA damage that manifests as misincorporated nucleotides in sequenced products can lead to an increased number of mismatches, and extensive damage has the potential to prevent alignment or alter taxonomic assignment. Loss of target reads due to DNA damage can hamper species detection since aDNA studies usually begin with shallow sequence data for initial evaluations of sample quality. In addition, archaeological remains often have low DNA yields, and library amplification can result in a high number of PCR duplicates that can falsely inflate quantitative estimates of taxa.

To accommodate such established phenomena, we introduce a new version of MALT that is specifically tailored to the analysis of aDNA data. In this modified version, PCR duplicates are removed by eliminating reads identical to those already aligned. In addition, reads are optionally filtered for a minimum Wootton and Federhen complexity [38] in order to remove reads with low sequence complexity. Furthermore, C>T substitutions are ignored in the first five positions from the 5′-end and G>A in first five positions from the 3′-end, thus removing the influence of aDNA damage on alignment scores.

HOPS’ authentication strategy

The core of HOPS is formed by the newly developed MaltExtract module. Without MaltExtract, the result files produced by MALT (RMA6 format) can only be evaluated manually with the metagenomic analysis tool MEGAN [39]. Such analysis becomes infeasible when working with large data sets, wherein each sample must be separately searched for a long list of candidate organisms, a process that is both laborious and prone to subjectivity. MaltExtract provides an automated approach for the assessment of the alignment information stored in RMA files generated by MALT. It automatically retrieves and assesses information on various evaluation criteria for all taxonomic nodes that match a given list of target species.

MaltExtract obtains information on edit distance distribution, read length distribution, coverage distribution and alignment mismatch patterns in order to identify and authenticate the presence of species-specific aDNA. Furthermore, MaltExtract allows data filtering for maximum read length, minimum percent identity, minimum complexity, and aDNA damage pattern.

Accuracy in taxonomic read assignment is evaluated in a three-step procedure that includes ancient authentication criteria (Fig. 2). The first step evaluates the read assignment to a taxonomic node. Incorrect read assignments can occur when databases are incomplete: many species in a metagenomic sample may have no representative reference genome in the database, and hence their individual reads may become erroneously assigned to the taxon showing the closest genetic match, which could belong to a different species or genus. Mapping to an incorrect species generally results in an increased number of mismatches across the read that is evident in the edit distance distribution (Fig. 2a). By contrast, if the sequenced reads are assigned to the correct reference species, the edit distance distribution should continuously decline, with most of the reads showing no or only a few mismatches that mostly resulted from aDNA damage or evolutionary divergence of the modern reference from the ancient genome. We summarize the shape of the edit distance distribution by a score we term the negative difference proportion (−Δ%), which leverages the difference in sequencing read counts between neighboring mismatch categories (Additional file 1: Figure S1). The − Δ% takes values between 0 and 1, where 1 indicates a strictly declining edit distance distribution. While true positives have a − Δ% of 1 when enough endogenous species-specific sequencing reads are present, we use a threshold of − Δ% > 0.9 to account for possible perturbations due to stochasticity in the edit distance distribution when few reads (~ 10–20) are present. As such, this permits the detection of very low abundant taxa.

Fig. 2

Post-processing steps in HOPS. Three hierarchical post-processing steps are used in HOPS. a First, the edit distance distribution is required to show a decline. b Second, the alignments are assessed for C>T and G>A mismatches typical for aDNA; by default, any such damage is considered sufficient. c Third, the edit distance distribution of reads showing damage is evaluated

In a second step, the ancient origin of the DNA is evaluated through analysis of DNA miscoding lesion patterns (Fig. 2b). The most prominent modification observed is deamination of cytosine into uracil, which is read as a thymine by the polymerase. This leads to an overrepresentation of C>T substitutions at the 5′ end and correspondingly G>A substitutions at the 3′ end [9, 10, 34, 40]. Evaluation of damage patterns is mandatory in any ancient DNA study. MaltExtract reports the rates of substitutions for the leading and trailing 10 positions of the read alignment. The default post-processing settings require only a single miscoding lesion to be present in at least one read for the assigned taxon to qualify as exhibiting damage. This maximizes sensitivity and allows authentication to function largely independently of read depth.

As a third and final criterion, we evaluate the accuracy of taxonomic assignment for all aligned reads exhibiting aDNA damage. For this, we assess again the edit distance distribution using the − Δ% score, but now this is only performed for damaged reads (Fig. 2c) and thus all reads harbor by definition at least one mismatch. In this step, a greater number of assigned reads (> 100) is required for reliable edit distance evaluation due to the fact that not all ancient reads are expected to exhibit damage.

The MaltExtract output is saved in a structured output folder with a summary file of the processed input and subfolders for each evaluation criterion. The post-processing tool generates a summary highlighting which of the target species passed one or more evaluation criteria for each sample, as well as detailed diagnostic plots displaying the evaluation criteria for each supported target species (Additional file 1: Figure S2). Using the versatile MaltExtract output additional post-processing scripts can be developed to extract user-defined criteria, as for instance the GUI-based MEx-IPA (

Assessment of taxonomic assignment on simulated data

The naïve LCA algorithm [36], which is part of HOPS, assigns reads to different taxonomic levels depending on the specificity of sequence matches. Taxonomic assignment thus depends on the structure of the underlying reference database, and it is critical to understand the expected taxonomic placement of sequenced reads from each microbial pathogen in order to successfully identify them.

To analyze the taxonomic placement of a test set of 33 bacterial pathogens and to assess the performance of HOPS, we simulated sequencing reads that included artificial DNA damage and spiked them into dentine, dental calculus, bone, and soil metagenomic backgrounds (see Table 1).

Table 1 Metagenomic backgrounds used for simulated data sets

Applying the HOPS pipeline, we recovered 98% of the simulated reads for 32 of the 33 bacterial taxa of interest (Fig. 3). The one exception was Mycobacterium avium subsp. paratuberculosis K10 for which 23% of simulated reads were assigned to a different Mycobacterium avium subsp. paratuberculosis strain. Our analysis shows that in most cases the vast majority of the simulated pathogen reads are assigned to the taxonomic levels “species” and “complex” (e.g., Mycobacterium tuberculosis complex and Yersinia pseudotuberculosis complex). Noteworthy exceptions were Brucella abortus, Brucella melitenis, and Bordetella pertussis. Upon further investigation, we found that many species within the genera Brucella and Bordetella show a high degree of sequence similarity, thus causing the majority of the reads deriving from these pathogens to be assigned at the genus level. By contrast, read assignment was found to be very specific for five taxa (Treponema denticola ATCC 35405, Clostridium tetani E89, Clostridium botulinum E3 str. Alaska E43, Streptococcus gordonii str. Challis substr. CH1 and Clostridium botulinum BKT015925), resulting in the majority of reads deriving from these taxa to be assigned at the strain level. For Salmonella enterica subsp. enterica, most reads were assigned at the subspecies level. The results of this test provide a guide for the levels of taxonomic identification that should be considered when searching for any of the 33 queried bacterial species in experimental ancient datasets. Further, it provides a framework to assess taxonomic placement and subsequent identification for other ancient microbes.

Fig. 3

Assignment of simulated reads to taxonomic levels for 33 bacterial pathogens. The fraction of simulated reads (red gradient) per reference (y-axis) assigned to a specific node across different levels of the taxonomy (x-axis). The levels of taxonomy not defined for a species are shown in gray

Optimization of MALT for aDNA

Because MALT was designed for taxonomic binning of modern genetic data, adapting it to be used on aDNA required altering the original MALT implementation to tolerate terminal substitutions consistent with aDNA damage so that they would not interfere with the percent identity filter. To evaluate the efficacy of this modification, we compared the performance of the modified, damage tolerant version of MALT to the default version using simulated Y. pestis data with high terminal damage (~ 40%) and three different percent identity filters: 85%, 95%, and 99% (Fig. 4).

Fig. 4

Comparison of the number of successfully recovered Y. pestis reads using standard (SD) and damage-tolerant (DT) MALT with minimum percent identities of a 99%, b 95%, and c 85%. Shown are the recovered reads from the “default” (all reads) and “ancient” (reads with damage) modes in MALT, with the same 500 reads being spiked into the metagenomic backgrounds. Error bars show the standard error of five independent technical replicates for each analysis

As expected, the greatest difference was observed when applying the stringent 99% identity filter, for which the damage tolerant MALT version recovered ~ 20% more reads than the standard MALT version. Additionally, only the modified version was able to recover reads with simulated damage under these parameters. At 95% identity, only a small difference could be observed between the two MALT versions, while results were almost identical at an 85% identity level. Taken together, the damage tolerant MALT version provides an advantage when searching for a given pathogen using stringent filtering criteria.

Performance comparison of HOPS, Kraken, SPARSE, MIDAS, and metaBIT on simulated data

We evaluated the performance of HOPS by comparing it to four metagenomic profiling tools: MIDAS [30], a marker gene-based taxonomic classifier, Kraken [31], which performs taxonomic classification based on k-mer matching to a database of complete genomes, metaBIT [45], a pipeline designed for the assessment of ancient metagenomes, and SPARSE [46], which uses a reduced, structured database and a probabilistic model for accurate species assignment. The marker gene database of MIDAS lacked representation for Yersinia pseudotuberculosis, Bordetella pertussis, and Brucella melitensis. Therefore, MIDAS could only be evaluated for 30 of the 33 bacterial pathogens in the simulated data sets. For Kraken, we downloaded the bacterial database, which lacked a reference genome to Clostridium sporogenes.

HOPS consistently detected all 33 pathogens in all backgrounds and among replicates with as few as 50 reads (see Fig. 5a). However, for 15 species, authentication could not be performed in all cases due to the low number of reads. With 50 species-derived reads, HOPS could positively authenticate species assignment in 90% of all tests. For 500 reads, authentication succeeded for all species except for Streptococcus gordonii, S. pneumonia, Neisseria gonorrhoeae and N. meningitidis. These species were found in all data sets but authentication was not possible in dental calculus due to a strong background of other Streptococcus and Neisseria species. Kraken failed to identify Brucella abortus and Mycobacterium tuberculosis in some replicates with only 50 simulated pathogen reads, resulting in a sensitivity of 94%; however, it was prone to a high false positive rate (see below). SPARSE only sporadically detected species represented by 50 reads (sensitivity of 35%) with only three species consistently identified across all backgrounds (B. melitensis, C. tetani, and T. denticola). However, SPARSE showed a sensitivity of 100% when 500 or 5000 simulated species-derived reads were present. The sensitivity of MIDAS and metaBIT were far lower than for Kraken, SPARSE, and HOPS. Even with 500 simulated pathogen reads, most species were only sporadically detected (i.e., not in all backgrounds/replicates) or were not detected at all. With 5000 simulated reads, however, MIDAS detected 29 of the 30 possible bacterial pathogens. metaBIT, which integrates MetaPhlAn2 [29], detected 26 pathogens under the same conditions. This can be explained by the lower sensitivity of marker gene-based approaches, which require relatively high sequencing coverage in order to ensure adequate representation of the genes needed for identification. This is further evident since MIDAS’ and metaBIT’s sensitivities are correlated with an increase in the number of simulated reads, which has less of an influence for Kraken, SPARSE, and HOPS.

Fig. 5

Performance comparison of HOPS, Kraken, SPARSE, metaBIT, and MIDAS. a Number of species that have been correctly identified in the simulated data sets by each of the programs. The bar plot on the upper left shows the percentage of data sets with 50 simulated reads for which the correct species has been identified. The other bar plots show the number of species that have been correctly identified in data sets with 50, 500, and 5000 simulated reads, respectively. b Number of target species identified in the metagenomic background (negative controls) without any spiked-in species-derived data for each of the tested programs

Negative controls

To assess false positive assignments, we queried all five metagenomic datasets prior to the addition of simulated pathogen reads for detectable signatures of the 33 test bacterial pathogens using Kraken, SPARSE, MIDAS, metaBIT, and HOPS. Kraken showed the highest susceptibility to false positives (see Fig. 5b; Additional file 1: Table S1). Of the 33 pathogens considered, Kraken detected 24 (73%) in calculus, 19 (58%) in dentine, 13 (39%) in bone, and 18 (55%) in soil. Most problematically, Mycobacterium tuberculosis and Bordetella pertussis were detected by Kraken in every metagenomic background.

SPARSE detected oral streptococci, Tannerella forsythia, Treponema denticola, and Porphyromonas gingivalis as well as Haemophilus influenzae and Neisseria meningitidis in the calculus background. Furthermore, Clostridium botulinum was detected in dentine and Clostridium tetani in soil.

MIDAS and metaBIT detected only oral streptococci, Tannerella forsythia, Treponema denticola, and Porphyromonas gingivalis in the calculus background. Overall, both tools produced fewer identifications than Kraken and SPARSE, but such a result is expected given their reliance on marker gene-based detection, which limits identification to only abundant taxa.

HOPS detected and authenticated four test pathogens in the metagenomic background datasets: Clostridium tetani (soil), Streptococcus mutans (calculus, dentine), Treponema denticola (calculus, dentine), and Porphyromonas gingivalis (calculus only). Because C. tetani is ubiquitous in soil, and all other detected bacteria are commensals of the human oral cavity, their identification likely reflects true positives. In addition to these four pathogens, there was a weak detection of Neisseria meningitidis in dentine. Compared to Kraken, HOPS, SPARSE, MIDAS, and metaBIT all produce only few false positive assignments. Kraken’s increased vulnerability for aberrant assignments likely relates to the absence of an alignment step, which is necessary for reliable species evaluation in both modern and ancient contexts.

Positive controls

In addition to performing tests using simulated data, we also tested HOPS, Kraken, SPARSE, metaBIT, and MIDAS on 25 ancient metagenomic datasets known to be positive for bacterial pathogens (Table 2). They consisted of both shotgun and capture data and they varied in sequencing depth in accordance with experimental conditions and method of data generation.

Table 2 Metagenomic samples used as positive controls

HOPS and Kraken share 100% sensitivity for the detection of target bacterial pathogens in every sample. SPARSE only failed to detect Y. pestis in the sample RT6. By contrast, MIDAS and metaBIT only detected the correct bacterial pathogen in 22 and 14 out of 25 samples, respectively. Again, their sensitivity was likely reduced due to the marker gene-based approach. These results highlight the advantage of whole-genome based approaches like MALT, SPARSE, and Kraken that take advantage of every sequenced read.


To calculate the runtime for each program, we used five million simulated metagenomic sequencing reads (see “Methods”). For each file, HOPS required an average of 3307 ± 820 s for the MALT step, 16 ± 1 s for the MaltExtract step, and 1 ± 0 s for post processing, for a total of approximately 55 min of analysis time per file. Kraken took on average 72 ± 16 s to run Kraken_alignment and 22 ± 3 for Kraken_translate, for a total of 1.5 min. The SPARSE analysis took on average 5653 ± 1293 s (about 94 min) for each sample. The MIDAS pipeline processed each file in an average of 73 ± 4 s, and metaBIT needed on average 10 s per sample. HOPS and SPARSE by far required the highest runtimes of the tested tools, but most of this time was required for sequence alignment, a step that, although time consuming, increases detection sensitivity, reduces false positives, and enables the authentication of aDNA reads.

For these tests HOPS, Kraken, SPARSE, MIDAS, and metaBIT were run with 450 GB, 100 GB, 100 GB, 1 GB, and 10 GB of main memory, respectively.


The field of archaeogenetics faces several challenges, such as the low amount of endogenous target DNA, the highly degraded molecules, and unknown and diverse metagenomic backgrounds that accumulate during decomposition and centuries spent in a depositional environment. These factors complicate reliable identification and authentication of genuine ancient DNA, particularly when the targeted bacterial DNA is present in small amounts. Furthermore, many bacterial pathogens have close relatives in soil, which necessitates careful selection of reference sequences as well as meticulous care when making pathogen identifications (see [9, 10] for reviews discussing these challenges).

HOPS provides an automated pipeline for high-throughput ancient bacterial species detection and authentication from metagenomic sequencing data. We compare HOPS to Kraken, SPARSE, metaBIT, and MIDAS, several widely used methods that estimate both the presence and abundance of bacterial taxa in metagenomic data. Aside from metaBIT and SPARSE, these tools have limited application to the specific challenges of aDNA in terms of degradation and chemical modifications that manifest as misincorporated nucleotides. Our analyses highlight the need for a pathogen identification pipeline that accommodates qualities of aDNA data and includes an essential and robust authentication for all ancient read assignments. HOPS provides a reliable and user-friendly solution to these established limitations.

HOPS was tested on simulated ancient pathogen DNA reads, and it detected all targeted species and successfully authenticated 90% of all cases in various metagenomic backgrounds with as few as 50 species-derived reads, representing less than 0.001% of the total dataset. In this context, our modified version of MALT, which tolerates mismatches resulting from DNA degradation, prevents a decrease in sensitivity even in cases of heavily damaged aDNA. For 500 reads, authentication was not possible for two Streptococcus and two Neisseria species in dental calculus. This is due to a strong background of similar species that is frequently found in this material. Oral streptoccoci were in fact identified in the calculus background by all programs. Thus, for these species, more reads are required for a successful authentication.

We demonstrate that the marker gene-based metagenomic profiling tools MIDAS and metaBIT have lower sensitivities for pathogen detection compared to HOPS, especially for low coverage data, which is typical of ancient DNA screening datasets. Although the sensitivity of Kraken was similar to HOPS, and while Kraken’s alignment-free k-mer matching is considerably faster than the precise alignments used in HOPS, Kraken is incapable of validating species assignment and aDNA authenticity, and thus has a lower specificity. This is most clearly demonstrated by our analysis of a metagenomic soil sample in which Kraken detected numerous false positives, including Mycobacterium tuberculosis and Bordetella pertussis (whooping cough). This is likely due to many soil-dwelling bacteria that harbor genetic similarities to these pathogens, such as diverse mycobacterial species and Bordetella petrii, a close relative to B. pertussis that is a common constituent of environmental datasets. These effects are further compounded by the fact that many environmental microbes have not been genomically characterized and are not part of any reference database, which only increases the potential of false assignments to well-sequenced pathogens. The alignment-based validation procedure implemented in HOPS minimizes such false positive assignments and thus offers greater accuracy in pathogen identification during screening when environmental backgrounds comprise the dominant molecular signal.

As a pipeline for the assessment of archaeogenetic data, metaBIT implements a variety of methods for the detailed assessment of metagenomic composition that also includes validation of aDNA damage patterns. metaBIT is based on MetaPhlAn2 [29], which employs a marker gene-based approach in the initial detection step similar to MIDAS. Pathogens in low abundance are thus frequently missed in its initial steps when applied to shallow sequencing data as demonstrated by our comparative benchmarking. SPARSE employs a hierarchically structured database and a probabilistic model in order to avoid false positive species detections. These features led to its high specificity in our test setting. For our simulated data, SPARSE is much more sensitive than MIDAS and metaBIT. However, when the number of pathogen reads is very low, the correct detection is frequently missed. In this context, HOPS can offer a higher sensitivity and can additionally provide details about all evaluated authenticity criteria. An integrated approach combining HOPS and SPARSE or metaBIT might be a promising future strategy for a detailed characterization of complete microbiomes while at the same time providing a high level of sensitivity for the detection and authentication of pathogen DNA. In particular, the analysis of ancient samples that preserve their original microbiome signature, such as dental calculus [47] or coprolites [48], would benefit from a combined application of methodologies by using SPARSE and/or metaBIT to assess the microbial make-up and HOPS for additional in-depth species authentication.

For all taxonomic classifiers, correct assignment of metagenomic reads is strongly dependent on the quality of the underlying reference sequences. Currently, we use a curated database for MALT that contains completed reference sequences and assemblies for bacteria from RefSeq (December 2016). Database sizes are constantly increasing, but much of this growth derives from the addition of redundant sequence data from model organisms, which also creates biases. In this context, SPARSE aims to mitigate the influence of database redundancy by hierarchically structuring reference sequences, which could be employed to further improve HOPS.

In addition, analysis of our simulated dataset allowed for evaluation of the taxonomic placement of each of the bacterial pathogens in our target list. It became apparent that for some targets the taxonomic species level is not sufficient for identification. This applies to historically important pathogens such as Y. pestis or M. tuberculosis. Here, evaluation of a higher taxonomic level such as “complex” is more reliable, while in the case of Salmonella typhi (typhoid fever) a lower level (subspecies) is favorable. Therefore, our simulations provide a valuable resource for optimization of pathogen screening approaches in general and a guideline to develop it for additional microbes.

Here, HOPS was evaluated for its success in screening for bacterial pathogens. Because the reference database is user defined and can be amended to include, for example, the NCBI full nucleotide collection [49] or hand-curated sets of reference genomes, tremendous flexibility exists in molecular detection, which could extend to viruses, fungi, and eukaryotic parasites.


We present a reliable and user-friendly computational pathogen screening pipeline for ancient DNA that has the flexibility of handling large datasets. HOPS successfully identifies both simulated and actual ancient pathogen DNA within complex metagenomic datasets, exhibiting a higher sensitivity than MIDAS, metaBIT, or SPARSE and with fewer false positives than Kraken. HOPS provides a high level of automatization that allows for the screening of thousands of datasets with very little hands-on time, and it offers detailed visualizations and statistics at each evaluation step, enabling a high level of quality control and analytical transparency. HOPS is a powerful tool for high-throughput pathogen screening in large-scale archaeogenetic studies, producing reliable and reproducible results even from remains with exceptionally low levels of pathogen DNA. Such qualities make HOPS a valuable tool for pathogen detection in the rapidly growing field of archaeogenetics.


Implementation of MaltExtract

MaltExtract is implemented in Java. It integrates parts of MEGAN’s [39] source code for accessing the RMA file structure and functions from forester ( for traversing the taxonomic tree.

Simulating data to analyze read assignment using the MALT LCA algorithm

Depending on the database structure and sequence similarity between reference sequences, the naïve LCA [36] algorithm will assign reads to different taxonomic units. To inquire how reads are assigned to the taxonomic tree for 33 bacterial pathogens (Additional file 1: Table S2), we simulated ancient pathogen DNA reads using gargammel [50] and spiked them into five ancient metagenomic background datasets obtained from bone, dentine, dental calculus, and soil (Table 1). The simulated reads carry a unique identifier in their header in order to differentiate them from metagenomic background sequences, which exhibit either full damage patterns or attenuated damage patterns following UDG-half treatment [51]. To simulate aDNA damage in the pathogen sequences, we applied damage profiles obtained from previously published ancient Yersinia pestis genomes with [13] and without UDG-half [18] treatment. Simulated reads were processed with the NGS data processing pipeline EAGER [52] and spiked into the metagenomic backgrounds in different amounts (50, 500, or 5000 reads). For each metagenomic background, a typical screening sequencing depth of five million reads was used.

Evaluation of the damage-tolerant version of MALT

To preserve damage patterns when mapping reads with MALT, we modified the source code and compared the performance of the modified and default versions.

We therefore created with gargammel [50] test samples that show twice the amount of damage (~ 40%) usually found in ancient samples [13]. Here, we compare both MALT versions for the bacterial pathogen Yersinia pestis (CO92 reference). Both versions of MALT were tested with 85%, 95%, and 99% minimum percent identity filtering, to investigate the effects of percent identity filtering on the read alignment of aDNA reads.

Comparison of HOPS to Kraken, SPARSE, MIDAS, and metaBIT

HOPS was compared to four metagenomic taxonomic classification tools: Kraken (v 0.10.6) [31], SPARSE (v 2019-05-31) [46], MIDAS (v 1.3) [30], and metaBIT (v 1.0.1) [45]. We only executed the first step of MIDAS that matches reads to the marker gene database to determine species abundance. This step was executed on 24 cores with default parameters. The first step is sufficient, as any species undetected in this step would not be detected in the remaining ones. Kraken was set to use 32 cores to align the sample data against its reference database with the preload parameter to load the entire database into memory before starting k-mer alignment. In a second step, kraken-translate was executed to transform taxonomy IDs into proper species names.

For SPARSE, we reserved the default number of 20 cores, we used default parameters except for changing minFreq to 0.000001 and minNum to 5 which are the recommended settings for aDNA analysis.

SPARSE was only tested on the first replicate of the simulated data.

metaBIT was executed with default parameters and a total of 64 cores available.

For Kraken, metaBIT, MIDAS, and SPARSE, we judged a pathogen as correctly identified if at least one read matched to the correct species to account for the differences in the database contents, methodologies, and output formats.

For HOPS to judge a pathogen detected by MALT as authentic, it had to fulfill at least the first of the three hierarchical authenticity criteria, which is a declining edit distance distribution. HOPS version 1.0 and MaltExtract version 0.9 were used for this analysis.


In our study, HOPS uses a database containing all complete prokaryotic reference genomes obtained from NCBI (December 1, 2016) with entries containing “multi” and “uncultured” removed (13 entries). In total, 6249 reference genomes are included in the database, including all major bacterial pathogens scrutinized here. For Kraken, we downloaded the bacterial database with Kraken’s kraken-build script (June 1, 2017). The Kraken database contains no strain references for Clostridium sporogenes. Otherwise, it contains at least one reference for all of the simulated bacterial pathogens (Additional file 1: Table S2). For MIDAS, we used the default reference database (May 24, 2016), which contained no representation of Yersinia pseudotuberculosis, Bordetella pertussis, and Brucella melitensis.

MIDAS was tested on all data with version 1.3 and the MIDAS database version 1.2.

metaBIT used the MetaPhlAn2 [29] database (version biobakery-metaphlan2-27f7e0c86785)

For SPARSE, we built a representative database by running

sparse index --dbname refseq --update

sparse query --dbname refseq --default representative | sparse mapDB --dbname refseq --seqlist stdin --mapDB representative

That resulted in a database containing bacteria and archea with an average nucleotide identity (ANI) of 98%.

Positive controls

We compare the sensitivity and specificity of HOPS, MIDAS, SPARSE, metaBIT, and Kraken using 27 metagenomic datasets previously shown to be positive for one of four microbial pathogens: Yersinia pestis, Mycobacterium tuberculosis, Salmonella enterica, and Helicobacter pylori (Table 2). These positive control samples represent real metagenomic data and therefore contain an unknown number of modern species in addition to the actual recovered bacterial pathogen. Read counts across all samples ranged from 70,897 to 52,858,027 reads. While most datasets were generated by shotgun library screening, four datasets were enriched for pathogen DNA prior to sequencing using DNA capture methods. For all captured datasets and a subset of shotgun datasets, DNA was treated with UDG prior to library construction to remove DNA damage. Both types of datasets were included to evaluate the performance of HOPS on samples with different levels of DNA damage and pathogen abundance.


To calculate the runtimes for HOPS, Kraken, SPARSE, metaBIT, and MIDAS, we used a subset of the simulated files. The subset consisted of all metagenomic background datasets spiked with 5000 reads without technical replicates resulting in a total of 330 metagenomic files. HOPS, Kraken, and metaBIT had 64 cores available, MIDAS 24, and SPARSE 20.

Availability of data and materials

The complete source code of HOPS is available from GitHub under the GNU General Public License v3.0 ( [53].

HOPS (including MALT) is also available from Bioconda:

The source code versions used for the analyses in this manuscript have been archived on Zenodo:

HOPS (pipeline controlling module) [54]:

MaltExtract [55]:

PostProcessing [56]:

For this study, HOPS uses a database containing all complete prokaryotic reference genomes obtained from NCBI (December 1, 2016) with entries containing “multi” and “uncultured” removed (13 entries). In total, 6249 reference genomes are included in the database, including all major bacterial pathogens scrutinized here.

The HOPS database is available upon request.


  1. 1.

    Turnbaugh PJ, et al. The human microbiome project: exploring the microbial part of ourselves in a changing world. Nature. 2007;449:804.

    CAS  Article  Google Scholar 

  2. 2.

    Karsenti E, et al. A holistic approach to marine eco-systems biology. PLoS Biol. 2011;9:e1001177.

    CAS  Article  PubMed  PubMed Central  Google Scholar 

  3. 3.

    Gilbert JA, Jansson JK, Knight R. The earth microbiome project: successes and aspirations. BMC Biol. 2014;12:69.

    CAS  Article  PubMed  PubMed Central  Google Scholar 

  4. 4.

    Haak W, et al. Massive migration from the steppe was a source for indo-European languages in Europe. Nature. 2015;522:207–11.

    CAS  Article  PubMed  PubMed Central  Google Scholar 

  5. 5.

    Mallick S, et al. The Simons genome diversity project: 300 genomes from 142 diverse populations. Nature. 2016;538:201–6.

    CAS  Article  PubMed  PubMed Central  Google Scholar 

  6. 6.

    Orlando L, et al. Recalibrating Equus evolution using the genome sequence of an early middle Pleistocene horse. Nature. 2013;499:74–8.

    CAS  Article  PubMed  Google Scholar 

  7. 7.

    Schlebusch CM, et al. Genomic variation in seven Khoe-san groups reveals adaptation and complex African history. Science. 2012;338:374–9.

    CAS  Article  PubMed  Google Scholar 

  8. 8.

    Skoglund P, et al. Reconstructing Prehistoric African Population Structure. Cell. 2017;171:59–71 e21.

    CAS  Article  PubMed  PubMed Central  Google Scholar 

  9. 9.

    Warinner C, et al. A robust framework for microbial archaeology. Annu Rev Genomics Hum Genet. 2017;18:321–56.

    CAS  Article  PubMed  PubMed Central  Google Scholar 

  10. 10.

    Key FM, Posth C, Krause J, Herbig A, Bos KI. Mining metagenomic data sets for ancient DNA: recommended protocols for authentication. Trends Genet. 2017;33:508–20.

    CAS  Article  PubMed  Google Scholar 

  11. 11.

    Bos KI, et al. A draft genome of Yersinia pestis from victims of the black death. Nature. 2011;478:506–10.

    CAS  Article  PubMed  PubMed Central  Google Scholar 

  12. 12.

    Wagner DM, et al. Yersinia pestis and the plague of Justinian 541-543 AD: a genomic analysis. Lancet Infect Dis. 2014;14:319–26.

    Article  PubMed  Google Scholar 

  13. 13.

    Rasmussen S, et al. Early divergent strains of Yersinia pestis in Eurasia 5,000 years ago. Cell. 2015;163:571–82.

    CAS  Article  PubMed  PubMed Central  Google Scholar 

  14. 14.

    Feldman M, et al. A high-coverage Yersinia pestis genome from a sixth-century Justinianic plague victim. Mol Biol Evol. 2016;33:2911–23.

    CAS  Article  PubMed  PubMed Central  Google Scholar 

  15. 15.

    Bos KI, et al. Eighteenth century Yersinia pestis genomes reveal the long-term persistence of an historical plague focus. Elife. 2016;5:e12994.

    Article  PubMed  PubMed Central  Google Scholar 

  16. 16.

    Spyrou MA, et al. Historical Y. pestis genomes reveal the European black death as the source of ancient and modern plague pandemics. Cell Host Microbe. 2016;19:874–81.

    CAS  Article  PubMed  Google Scholar 

  17. 17.

    Valtueña AA, et al. The Stone Age plague and its persistence in Eurasia. Current Biol. 2017;27:3683–91. e3688.

    Article  Google Scholar 

  18. 18.

    Spyrou MA, et al. Analysis of 3800-year-old Yersinia pestis genomes suggests bronze age origin for bubonic plague. Nat Commun. 2018;9:2234.

    CAS  Article  PubMed  PubMed Central  Google Scholar 

  19. 19.

    Schuenemann VJ, et al. Genome-wide comparison of medieval and modern Mycobacterium leprae. Science. 2013;341:179–83.

    CAS  Article  PubMed  Google Scholar 

  20. 20.

    Schuenemann VJ, et al. Ancient genomes reveal a high diversity of Mycobacterium leprae in medieval Europe. PLoS Pathog. 2018;14:e1006997.

    CAS  Article  PubMed  PubMed Central  Google Scholar 

  21. 21.

    Bos KI, et al. Pre-Columbian mycobacterial genomes reveal seals as a source of New World human tuberculosis. Nature. 2014;514:494–7.

    CAS  Article  PubMed  PubMed Central  Google Scholar 

  22. 22.

    Kay GL, et al. Eighteenth-century genomes show that mixed infections were common at time of peak tuberculosis in Europe. Nat Commun. 2015;6:6717.

    CAS  Article  PubMed  PubMed Central  Google Scholar 

  23. 23.

    D'Anastasio R, Staniscia T, Milia ML, Manzoli L, Capasso L. Origin, evolution and paleoepidemiology of brucellosis. Epidemiol Infect. 2011;139:149–56.

    CAS  Article  PubMed  Google Scholar 

  24. 24.

    Kay GL, et al. Recovery of a medieval Brucella melitensis genome using shotgun metagenomics. MBio. 2014;5:e01337–14.

    CAS  Article  PubMed  PubMed Central  Google Scholar 

  25. 25.

    Vagene AJ, et al. Salmonella enterica genomes from victims of a major sixteenth-century epidemic in Mexico. Nat Ecol Evol. 2018;2:520–8.

    Article  PubMed  Google Scholar 

  26. 26.

    Zhou Z, et al. Pan-genome Analysis of Ancient and Modern Salmonella enterica Demonstrates Genomic Stability of the Invasive Para C Lineage for Millennia. Curr Biol. 2018;28:2420–8 e2410.

    CAS  Article  PubMed  PubMed Central  Google Scholar 

  27. 27.

    Maixner F, et al. The 5300-year-old helicobacter pylori genome of the iceman. Science. 2016;351:162–5.

    CAS  Article  PubMed  PubMed Central  Google Scholar 

  28. 28.

    Caporaso JG, et al. QIIME allows analysis of high-throughput community sequencing data. Nat Methods. 2010;7:335–6.

    CAS  Article  PubMed  PubMed Central  Google Scholar 

  29. 29.

    Truong DT, et al. MetaPhlAn2 for enhanced metagenomic taxonomic profiling. Nat Methods. 2015;12:902–3.

    CAS  Article  PubMed  Google Scholar 

  30. 30.

    Nayfach S, Rodriguez-Mueller B, Garud N, Pollard KS. An integrated metagenomics pipeline for strain profiling reveals novel patterns of bacterial transmission and biogeography. Genome Res. 2016;26:1612–25.

    CAS  Article  PubMed  PubMed Central  Google Scholar 

  31. 31.

    Wood DE, Salzberg SL. Kraken: ultrafast metagenomic sequence classification using exact alignments. Genome Biol. 2014;15:R46.

    Article  PubMed  PubMed Central  Google Scholar 

  32. 32.

    Velsko IM, Frantz LAF, Herbig A, Larson G, Warinner C. Selection of Appropriate Metagenome Taxonomic Classifiers for Ancient Microbiome Research. mSystems. 2018;3.

  33. 33.

    Jonsson H, Ginolhac A, Schubert M. Johnson, P. L. & Orlando, L. mapDamage2.0: fast approximate Bayesian estimates of ancient DNA damage parameters. Bioinformatics. 2013;29:1682–4.

    CAS  Article  PubMed  PubMed Central  Google Scholar 

  34. 34.

    Briggs AW, et al. Patterns of damage in genomic DNA sequences from a Neandertal. Proc Natl Acad Sci U S A. 2007;104:14616–21.

    CAS  Article  PubMed  PubMed Central  Google Scholar 

  35. 35.

    Herbig A, et al. MALT: Fast alignment and analysis of metagenomic DNA sequence data applied to the Tyrolean Iceman. BioRxiv. 2016:050559.

  36. 36.

    Huson DH, Auch AF, Qi J, Schuster SC. MEGAN analysis of metagenomic data. Genome Res. 2007;17:377–86.

    CAS  Article  PubMed  PubMed Central  Google Scholar 

  37. 37.

    Droge J, McHardy AC. Taxonomic binning of metagenome samples generated by next-generation sequencing technologies. Brief Bioinform. 2012;13:646–55.

    CAS  Article  PubMed  Google Scholar 

  38. 38.

    Wootton JC, Federhen S. Statistics of Local Complexity in Amino-Acid-Sequences and Sequence Databases. Comput Chem. 1993;17:149–63.

    CAS  Article  Google Scholar 

  39. 39.

    Huson DH, et al. MEGAN Community edition - interactive exploration and analysis of large-scale microbiome sequencing data. PLoS Comput Biol. 2016;12:e1004957.

    CAS  Article  PubMed  PubMed Central  Google Scholar 

  40. 40.

    Kircher M. Analysis of high-throughput ancient DNA sequencing data. Methods Mol Biol. 2012;840:197–228.

    CAS  Article  PubMed  Google Scholar 

  41. 41.

    Mann AE, et al. Differential preservation of endogenous human and microbial DNA in dental calculus and dentin. Sci Rep. 2018;8:9822.

    CAS  Article  PubMed  PubMed Central  Google Scholar 

  42. 42.

    Olalde I, et al. The beaker phenomenon and the genomic transformation of Northwest Europe. Nature. 2018;555:190.

    CAS  Article  Google Scholar 

  43. 43.

    Wang C, Reinhold S, Kalmykov A, et al. Ancient human genome-wide data from a 3000-year interval in the Caucasus corresponds with eco-geographic regions. Nat Commun. 2019;10:590.

  44. 44.

    Lipson M, et al. Parallel palaeogenomic transects reveal complex genetic history of early European farmers. Nature. 2017;551:368–72.

    CAS  Article  PubMed  PubMed Central  Google Scholar 

  45. 45.

    Louvel G, Der Sarkissian C, Hanghoj K, Orlando L. metaBIT, an integrative and automated metagenomic pipeline for analysing microbial profiles from high-throughput sequencing shotgun data. Mol Ecol Resour. 2016;16:1415–27.

    CAS  Article  PubMed  Google Scholar 

  46. 46.

    Zhou Z, Luhmann N, Alikhan NF, Quince C, Achtman M. Accurate Reconstruction of Microbial Strains from Metagenomic Sequencing Using Representative Reference Genomes. In: Raphael B. (eds) Research in Computational Molecular Biology. RECOMB 2018. Lecture Notes in Computer Science, vol 10812. Cham: Springer; 2018.

    Google Scholar 

  47. 47.

    Warinner C, Speller C, Collins MJ. A new era in palaeomicrobiology: prospects for ancient dental calculus as a long-term record of the human oral microbiome. Philos Trans R Soc Lond Ser B Biol Sci. 2015;370:20130376.

    CAS  Article  Google Scholar 

  48. 48.

    Warinner C, Speller C, Collins MJ, Lewis CM Jr. Ancient human microbiomes. J Hum Evol. 2015;79:125–36.

    Article  PubMed  Google Scholar 

  49. 49.

    Pruitt KD, Tatusova T, Maglott DR. NCBI reference sequences (RefSeq): a curated non-redundant sequence database of genomes, transcripts and proteins. Nucleic Acids Res. 2007;35:D61–5.

    CAS  Article  PubMed  Google Scholar 

  50. 50.

    Renaud G, Hanghøj K. Willerslev, E. & Orlando, L. gargammel: a sequence simulator for ancient DNA. Bioinformatics. 2016;33:577–9.

    PubMed Central  Google Scholar 

  51. 51.

    Rohland N, Harney E, Mallick S, Nordenfelt S, Reich D. Partial uracil-DNA-glycosylase treatment for screening of ancient DNA. Philos Trans R Soc Lond Ser B Biol Sci. 2015;370:20130624.

    CAS  Article  Google Scholar 

  52. 52.

    Peltzer A, et al. EAGER: efficient ancient genome reconstruction. Genome Biol. 2016;17:60.

    CAS  Article  PubMed  PubMed Central  Google Scholar 

  53. 53.

    Hübler R. HOPS. GitHub. 2019;

  54. 54.

    Hübler R. HOPS. Zenodo. 2019.

  55. 55.

    Hübler R. MaltExtract. Zenodo. 2019.

  56. 56.

    Hübler R, Key FM. PostProcessing. Zenodo. 2019.

Download references


We thank the Department of Archaeogenetics of the Max Planck Institute for the Science of Human History and Julian Susat for beta testing and helpful discussions.

Review history

The review history is available as Additional file 2.

Peer review information

Andrew Cosgrove was the primary editor on this article and managed its editorial process and peer review in collaboration with the rest of the editorial team.


This research was funded by the Max Planck Society and FMK received additional funding by the DFG (KE 2408/1-1). The funding bodies had no involvement in the design of the study, collection, analysis, and interpretation of data or in writing the manuscript.

Author information




RH, FMK, and AH conceived the study. RH, FMK, CW, KIB, JK, and AH designed the experiments. RH and FMK implemented the software. RH, FMK, and AH performed the analyses. RH, FMK, and AH wrote the manuscript with contributions from all coauthors. All authors read and approved the final manuscript.

Corresponding authors

Correspondence to Felix M. Key or Alexander Herbig.

Ethics declarations

Ethics approval and consent to participate

Not applicable.

Consent for publication

Not applicable.

Competing interests

The authors declare that they have no competing interests.

Additional information

Publisher’s Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Supplementary information

Additional file 1.

Supplementary figures and tables.

Additional file 2.

Review history.

Rights and permissions

Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (, which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The Creative Commons Public Domain Dedication waiver ( applies to the data made available in this article, unless otherwise stated.

Reprints and Permissions

About this article

Verify currency and authenticity via CrossMark

Cite this article

Hübler, R., Key, F.M., Warinner, C. et al. HOPS: automated detection and authentication of pathogen DNA in archaeological remains. Genome Biol 20, 280 (2019).

Download citation


  • Ancient DNA
  • Archaeogenetics
  • Pathogen detection
  • Metagenomics
  • Paleopathology
  • Ancient bacteria
  • Microbial archaeology