Summary
This study focuses on the rapid detection of antimicrobial resistance (AMR) in Klebsiella pneumoniae. The “Align-Search-Infer” pipeline aligned query sequences from 24 urine samples against a curated genome database of 40 Klebsiella isolates, searched for the best matches, and inferred their antimicrobial susceptibility. Carbapenem resistance inference achieved 77.3% accuracy (95%CI: 59.8–94.8%) within 10 min using whole-genome matching, and 85.7% accuracy (95%CI: 70.7–100.0%) within 1 h using plasmid matching — both surpassing the 54.2% accuracy (95%CI: 34.2–74.1%) of AMR gene detection at 6 h. The proposed method requires less bacterial DNA and is suitable for low-load clinical samples. Our small local database performed comparably to large public databases. This study supports the integration of pathogen-specific genome databases into clinical workflows to enable rapid and accurate antimicrobial susceptibility prediction. Further research is needed to validate and refine the method using larger genomic-phenotypic datasets across diverse pathogens and sample types.
Subject areas: Natural sciences, Biological sciences, Microbiology, Microbial genomics
Graphical abstract

Highlights
-
•
Inference can predict beta-lactam resistance in Klebsiella pneumoniae from urine
-
•
Inference outperforms beta-lactamase gene detection in both speed and accuracy
-
•
Inference achieves results in 10–60 min vs. 6 h for gene detection
-
•
Inference requires 50–500 kilobases of data vs. 5000 kilobases for gene detection
Natural sciences; Biological sciences; Microbiology; Microbial genomics
Introduction
The World Health Organization has designated Klebsiella pneumoniae (KP) as a critical priority pathogen group of antimicrobial resistant (AMR) bacteria.1,2 The misuse of broad-spectrum antibiotics, such as carbapenems, has significantly worsened this global crisis. Rapid identification of AMR bacteria is essential for the timely administration of narrow-spectrum antimicrobials.3,4,5 Of most importance, a timely and most specific administration of antibiotics is in septic shock patients, when each 60-min delay in initiating appropriate antibiotics results in a 10% increase in mortality.6
Traditional culture-based antimicrobial susceptibility testing (AST) methods, which are routinely used in microbiology diagnostic laboratories globally, are time-consuming and may not detect non-culturable bacteria.7,8,9 Target-specific polymerase chain reaction (PCR) methods used to detect specific AMR genes also have limitations, including potential false-positive results due to cross-reactivity. They cannot detect novel AMR genes and are limited to only those AMR genes tested in the reaction.10,11 The presence of an AMR gene in a pathogen’s genome does not always confer resistance, as gene expression and function can be influenced by genetic elements, mutations, gene regulation, and environmental factors.12 Furthermore, AMR patterns vary among different pathogens and geographical regions due to differences in antimicrobial usage, healthcare systems, economic conditions, genetics, climate, and environment, all influencing the choices of available treatment options.13,14,15,16
Whole genome sequencing (WGS) offers a comprehensive approach to fully characterize bacterial strains by determining the complete DNA sequence of a bacterial genome.17 Unlike AMR gene-targeted PCR, WGS can offer more details by detecting mobile genetic elements, such as plasmids, that carry AMR genes across different bacterial isolates and species, which helps track AMR emergence and spread. WGS can also help to identify novel AMR determinants and AMR gene variants.
The advances in long-read genome sequencing technologies, such as Oxford Nanopore Technologies (ONT) with quick turnaround times for genomic data generation, make real-time sequencing and data analysis more approachable. Some examples of the latest improvements in the development of the bioinformatics approaches to detect AMR genes from long-read Nanopore sequencing data include the detection of AMR genes and associated plasmids directly from clinical samples,18 enriching bacterial DNA with adaptive sampling during the nanopore sequencing run,19 and real-time detection of a hidden AMR gene undetectable by a conventional method.20
The study by MacFadden et al. showed that their Escherichia coli strain type-based model could differentiate between susceptibility and resistance to ceftriaxone, ciprofloxacin, and gentamicin.21 This suggests that resistance and susceptibility can be inferred from strain typing, identifying high-risk strains instead of high-risk genes. Brinda et al. demonstrated the potential of real-time ONT long-read sequencing to infer resistance phenotype through k-mer matching to a custom whole genome database.22 This approach can determine antibiotic resistance in Neisseria gonorrhoeae22 and E. coli23 isolates within minutes of sequencing initiation. However, major limitations still exist in implementing this technology for routine AMR reporting in diagnostic laboratories; one of the limitations is a lack of local genome databases containing a sufficient proportion of relevant bacterial strains. To address this and overcome the limitations of both traditional culture-based methods and AMR gene detection methods, we developed a search pipeline to rapidly infer antimicrobial susceptibility phenotypes using a customized whole-genome database. The bioinformatics pipeline that we have developed consists of three steps: “Align-Search-Infer”. First—aligning the query reads (bacterial DNA sequences) against the whole genome database, second—searching for the best-matched genome in the database, and third—inferring the antimicrobial susceptibility phenotype of the query to be the same phenotype as the best-matched. To achieve this, we optimized the de novo whole genome assembly protocol and subsequently constructed the local database from the assembled whole genomes of 40 K. pneumoniae isolates obtained from patients at King Chulalongkorn Memorial Hospital, Bangkok, Thailand. We validated the pipeline using self-validation and tested it against metagenomic query libraries from 24 urine samples, derived from our previous studies.24 We evaluated the accuracy of the inference by examining several factors: comparing results of query-reads versus query-contigs, using extracted K. pneumoniae reads versus non-extracted (non-human) reads, identifying the best-matched strain based on read abundance (hit) versus the number of matched bases, and using the locally curated database versus a public database on AMR genes and bacterial genomes. Additionally, we assessed the performance of our pipeline at different time points and on different cumulative bases from the start of the sequencing. Finally, we compared our inference method with the gene detection method (i.e., mapping the query to the public AMR gene database).
Results
Metadata and AST profiles (a reference standard)
The overall process of this study is shown in Figure 1.
Figure 1.
Overall study workflow (created with BioRender.com)
(A) Sample processing and sequencing of the database group, obtained from 40 Klebsiella clinical isolates.
(B) Sample processing and sequencing of the query group, obtained from 24 urine samples.
(C and D) The bubble plots displaying the quality of reads, with colors corresponding to the quality score, size related to the median read length, and Y axis representing sequencing depth.
(E) Workflow of de novo whole genome assembly optimization.
(F) Workflow of rapid inference of antimicrobial susceptibility.
The locally curated database group consisted of 40 Klebsiella isolates collected between June 2020 and June 2021 at King Chulalongkorn Memorial Hospital, Bangkok, Thailand. Thirty isolates (75%) were cultured from blood, seven (17.5%) from urine, and one (2.5%) each from sputum, body fluid, and wound pus. Among these, twenty isolates (50%) were classified as Carbapenem-resistant Enterobacteriaceae (CRE), ten (25%) as Extended-spectrum beta-lactamase (ESBL) carrying, and ten (25%) as non-CRE/non-ESBL based on routine antibiotic susceptibility testing (AST).
The query group comprised 24 urine samples collected between August 2020 and March 2021, with seventeen samples (71%) being CRE, three (12%) ESBL, and four (17%) non-CRE/non-ESBL. Detailed demographic and laboratory data of patients and samples were presented in Tables S1–S3. The AST results of the database and query were presented in Tables S4 and S5, respectively.
A local database from the whole genomes of 40 Klebsiella isolates
All isolates except KP07 achieving adequate sequencing depth
Forty Klebsiella isolates underwent WGS using the Rapid Barcoding Kit (SQK-RBK110-96, ONT), 4 flow cells R9.4.1/FLO-MIN106, and the Oxford Nanopore MinION Mk1B. Basecalling was performed with Guppy basecaller v6.1.7 Super High Accuracy mode with a quality threshold of 10.25 For all 40 K. pneumoniae isolates sequenced on ONT, the average base yield per barcode was 1.79 Gb, with the sample KP30 achieving the highest yield at 4 Gb, and KP07 the lowest at 0.43 Gb (Table S2).
Generally, a sequencing depth of 100-200× is recommended.26 We achieved an average sequencing depth of 326× (range: 78x-729×), based on the reference genome size of K. pneumoniae 5.5 Mb. KP07 was the only one that did not meet this target, even without applying a quality score threshold (Table S2).
No clear-cut threshold for determining the optimal filtering and trimming
We tested various thresholds to determine the optimal read length for filtering and trimming using NanoFilt v2.8.0,27 and evaluated the quality of the processed reads using NanoPlot v1.40.027 (Table S6).
Stringent thresholds improved read quality but reduced read quantity. Given the importance of plasmids carrying AMR genes, stringent thresholds risk losing plasmid sequences. Thus, we selected a filtering threshold of 200 bp and a trimming threshold of 15 bp. Figure 2A presents a radar graph illustrating quality scores across samples. The results showed no definitive solution, but our selected threshold provided an appropriate balance within the acceptable range for our tested genomic samples.
Figure 2.
Evaluation of assembled genome quality based on various metrics
(A) Radar graph showing 40 samples with their correlated quality scores after filtering with various minimal read length thresholds.
(B) Relative performance of assemblers based on six metrics: (1) Successful assembly to a circular chromosome. (2) N50 value: the length of the shortest contig for which the sum of the lengths of this contig and all longer contigs covering at least 50% of the total assembly length, representing genome continuity. (3) Percentage of GC content: ensuring the assembled genome representation of the true genomic sequence, free from significant errors or contamination. (4) Percentage of complete and single-copy BUSCOs: indicating genome completeness. (5) Assembly speed. (6) Polishing speed.
(C) Box and whisker plot showing median and interquartile range of assembly continuity based on the auN metric. A higher auN value suggests a more continuous and complete assembly.
(D) Visualization of the assembled genome of KP01 using Bandage software, demonstrating the characteristics of each assembler (Canu, Necat, Flye, Paoloshasta, Raven, and Unicycler) in terms of genome continuity and the number of contigs.
(E) Bar plots displaying the BUSCO assessment results for six different assemblers across all samples. The colors blue, dark blue, yellow, and red represented complete and single copy, complete and duplicated, fragmented, and missing, respectively. (X axis = %BUSCOs, Y axis = Local 40KP isolates).
To evaluate the quality of the trimmed reads, we used FastQC to visualize pooled 40 sample results (Figure S1) with various trimming thresholds. Applying a trimming threshold of 15 bp significantly improved data quality, increasing the median quality score of bases at the start from 17–24 to 22–25 and markedly reducing the uneven distribution of bases indicative of high error rates at the sequence beginnings.
Additionally, we assessed key metrics to evaluate trimmed read quality: number of retained bases, number of retained reads, mean read quality scores, mean read length, and read length N50 (Table S7). Filtering and trimming improved the average mean read quality from 12.96 to 13.81, increased mean read length from 6,500 to 7,100, and enhanced read length N50 from 13,500 to 13,700. This improvement came with a trade-off, resulting in a loss of approximately 631,000 reads and 0.1 Gb per sample.
De novo whole genome assembly
We conducted de novo whole genome assembly on filtered and trimmed reads from 40 Klebsiella isolates using six assemblers: Canu, Flye, Necat, Paoloshasta, Raven, and Unicycler, each with identical parameters (Table S29). Manual curation, merging chromosome-derived contigs into one FASTA file, was applied when assemblies failed to produce a complete genome.
Distinct characteristics emerged among the assemblers, as shown in Figures 2B–2E. Canu, Paoloshasta, and Unicycler produced higher numbers of assembled contigs, while Flye, Necat, and Raven produced fewer contigs. Overall, polished assemblies had slightly higher NG50 values (the length of the shortest contig that covers 50% of the genome size—5,304,321 bp compared to 5,303,110 bp of non-polished Flye), with consistent percentage of the GC content across different polishing methods, indicating no significant effect on overall GC content (Table S8).
When comparing polishing methods, Medaka alone yielded similar or slightly better genome continuity than combined Racon-Medaka polishing (Table S8). Note that Racon polishing was applied prior to Medaka for assemblers without built-in Racon, except for Flye assemblies, since Medaka was trained using draft assemblies from Flye.
Flye offering balanced performance in terms of assembly quality and computational efficiency
The comparison of genome assembly statistics across six different assemblers revealed distinct performance metrics (Table S9). All assemblers, except Paoloshasta, produced an average NG50 between 5.2 and 5.3 Mb, with Paoloshasta significantly lower at 1.82 Mb (Table S9). Flye and Raven demonstrated the highest performance based on the area under the Nx curve (auN), scoring 5.07 and 5.08 × 106, respectively, followed by Canu (4.74), Necat (4.77), and Unicycler (4.79), all outperforming Paoloshasta (1.82) (Figure 2C).
Flye, Necat, and Raven produced an average of 3–4 contigs per sample, while Canu, Paoloshasta, and Unicycler generated more contigs, averaging 44, 159, and 77, respectively (Table S9). Flye, Raven, Unicycler, Canu, and Paoloshasta succeeded in a circular chromosome assembly for 39, 38, 36, 35, and 10 samples, respectively (data unavailable for Necat, Table S9). The percentage of the GC content remained consistent across all assemblers, averaging around 57.46% (Table S9).
Based on the average percentage of complete and single-copy BUSCOs, all assemblers achieved averages above 95%, except Paoloshasta at 92%. Computational efficiency varied, with Canu requiring significantly more CPU time for assembly (46,036 min for 40 samples), while Paoloshasta was the most efficient (254 min for 40 samples). Polishing times were relatively comparable, ranging from 382 to 634 min (Table S9).
Figure 2B, a radar graph, summarizes the relative performance of the assemblers, where a greater area indicates higher performance. Flye and Raven performed best based on their balance of high continuity, fewer contigs, successful circular chromosome assembly, and computational efficiency, with Flye slightly surpassing Raven in assembling complete circular chromosomes (Table S9; Figure 2). Consequently, Flye was selected as the default assembler in our study. Analysis of Flye’s 40 genome assemblies by CheckM2 v1.0.228 reported 100% genome completeness in all isolates except KP07 (99.86%), KP33 (85.02%), and KP34 (99.88%) (Table S10).
Using Flye, we assembled the genomes of all 40 Klebsiella isolates, resulting in 143 contigs. Among these, 39 were identified as circular chromosomes longer than 5.1 Mb (range: 5.1–5.5 Mb) with coverage depth ranging from 94 to 627 (Table S10). Notably, sample KP07 did not result in a single complete circular chromosome, but two non-circular fragments sized 4.6 Mb and 0.68 Mb, with coverage depths of 54 and 57, respectively.
The remaining 102 contigs included both circular and non-circular forms, ranging from 564 to 269,022 bp in length, with coverage depths from 20 to 1,170. These contigs were identified as potential plasmids, pending verification in the next step. Detailed results of the final assembly are presented in Table S10.
Local K. pneumoniae database organization
We verified chromosome contigs using Kraken2 classification and BLAST against the NCBI database. Thirty-eight contigs matched the K. pneumoniae chromosome with 99.31%–99.99% identity, bitscores ranging from 665,300 to 4,999,000, match lengths of 0.37 Mb–2.8 Mb, and mismatches of 18 to 3,436 bp. However, KV36 and KQ42 matched Klebsiella variicola and Klebsiella quasipneumoniae (closely related species in K. pneumoniae species complex), respectively, with bitscores of 508,900 and 654,600, and identities of 99.38% and 99.57%, consistent with the Kraken2 results.
We verified 102 potential plasmid contigs using BLAST. Eighty-seven contigs exclusively matched plasmids. One contig (KP5 contig4), with a length of 37,330 bp and coverage depth of 880 (2.6× of the chromosome coverage at 388), had the top match as a chromosome, while all other matches downward from the second were plasmids. This contig was likely present in multiple copies per cell (2.6×) and contained a plasmid incompatibility group, IncN, identified by PlasmidFinder.29 Thus, we included this contig in a plasmid database. Overall, 88 contigs were classified as plasmids, while KP24 and KP35 had no verified plasmid contigs.
The local databases of 40 Klebsiella assemblies were categorized into (details in Figure S2).
-
(1)
Whole genome database: 41 contigs for 40 chromosomes (2 contigs for KP07 chromosome) and 88 contigs identified as plasmids.
-
(2)
Chromosome database: 41 contigs for 40 chromosomes.
-
(3)
Plasmid database: 88 contigs identified as plasmids.
Comparative phylogenetic analysis of Klebsiella pneumoniae species complex (KpSC)
We conducted a phylogenetic analysis of 476 KpSC whole genomes, including 40 from our local database and 436 from the NCBI Pathogen Database (Figures 3B–3E). Thirteen CRE K. pneumoniae from the local database clustered in a single clade, as shown in Figure 3D. Other local Klebsiella were dispersed across the tree, clustering with isolates of similar multi-locus sequence typing (MLST). For instance, KP44 was in clade 35MLST-2-1-2-1-10-1-19, where all taxa shared the same sequence type (ST35) (Figure S3).
Figure 3.
Phylogenetic analysis of Klebsiella genomes
(A) Bubble plot illustrating the log number of cumulative matched bases by Minimap2 between the phylogenetic tree of the local 38 K. pneumoniae database (Y axis) and the 24 urine sample queries (x axis). Larger bubbles represented a higher number of cumulative matched bases, indicating greater genome similarity. Letters A, B, C, and D represented the patterns of agreement between the actual and the inference susceptibility as shown in the table next to the tree. These letters marked the largest bubbles for each query, indicating the best match in the database that would be used for this query AMR inference.
(B) Phylogenetic tree of the whole genome of Klebsiella pneumoniae species complex integrated with antimicrobial susceptibility phenotypes, classified into three classes: CRE (red), ESBL (yellow), and non-CRE/non-ESBL (green). The tree included 436 taxa from NCBI and 40 taxa from locally (highlighted in blue).
(C) A clade of K. pneumoniae ST16 with CRE phenotypes in Bangkok, Thailand.
(D) A clade of 13 local K. pneumoniae isolates (mainly ST16) with CRE phenotypes.
(E) A clade of K. pneumoniae ST147, mainly CRE with few ESBL phenotypes. In the local database, U04 query matched with KP29 (ESBL) the best, followed by KP22 (CRE). In contrast, U04 matched with GenBank: GCA 003194285.1 (CRE) the best in the public database. Note that KP29 was closely related to KP22 and Genbank: GCA 003194285.1 in this tree, but had different resistance phenotypes.
Labeling of each terminal taxa in the tree was arranged in the following order: 1) Unique ID – KP01-KP44 (local database) or GCA [nine digits].[version number] (GenBank assembly accession numbers—public database); 2) Species – KP (K. pneumoniae), KV (K. variicola), KQ (K. quasipneumoniae); 3) Year; 4) Location; 5) Resistance phenotypes – CRE (carbapenem resistance), ESBL (3rd-gen cephalosporin resistance), non (susceptible to both carbapenems and 3rd-gen cephalosporins); 6) Pasteur-scheme Multi-Locus Sequence Typing (xMLST-x-x-x-x-x-x-x) – The number before the word MLST represented Sequence Type (ST), while the following numbers represented the alleles of gapA, infB, mdh, pgi, phoE, rpoB, and tonB, respectively.
Notably, isolates KV36, K. variicola, and KQ42, K. quasipneumoniae, were confirmed to cluster with other K. variicola and K. quasipneumoniae genomes, demonstrating concordance between the Kraken2 classification and the phylogenetic results.
Query libraries from the metagenomes of 24 urine samples
On average, only 7% of the raw reads passed quality control and were usable as queries
Twenty-four urine samples underwent metagenomic sequencing, achieving an average sequencing depth of 42.5× (range: 0.02x–243.17×), detailed in Table S11. The raw read libraries average 118,405 reads (range: 1,212 to 362,457), and after filtering and trimming, an average of 94,224 reads (79%, range: 65 to 297,226) remained (Table S11). Human reads were removed using Minimap2 against the reference human genome GRCh38.p14, leaving an average of 17,678 reads (15%, range: 26 to 73,474). K. pneumoniae (KP) reads were extracted, averaging 8,361 reads (7%, range: 0 to 44,666). Sample U43KP lacked verified KP-reads (Table S11).
For contig query libraries, metagenomic assembly was performed on 24 urine samples using Flye assembler. Samples U13, U37, and U43 failed assembly, leaving 21 query libraries of contigs from the original 24 samples.
A search pipeline validation
Through self-validation, Minimap2 with parameters m, cm, and dv was chosen as the default method
We used query libraries from the same set that built the local database of 40 Klebsiella isolates for self-validation. The effectiveness of the search pipeline was assessed using the Mean Reciprocal Rank (MRR), which measures the rank of the first relevant result retrieved by the search tools.
For contig-queries, both BLAST and Minimap2 achieved perfect accuracy (MRR of 1) across 3 local databases (whole genome, chromosome, and plasmid databases), while Kraken2 had an MRR of 0.754.
For read queries, Minimap2 outperformed Kraken2, with an MRR of 1 using the whole genome database and 0.988 with the chromosome database. Kraken’s MRR ranged from 0.620 to 0.676.
The whole genome database provided the highest overall MRR. Within the plasmid database, the cumulative score method outperformed the hits-based method. Detailed results are in Table S12.
Despite BLAST’s accuracy, its time-consuming nature made it impractical for large datasets. Minimap2 exhibited versatile performance in search tasks and provided a more convenient and user-friendly approach for updating the database as needed. Therefore, Minimap2, using the cumulative score method with parameters m, cm, and dv, was selected for its balance of speed and accuracy. However, for smaller sequencing data sizes, BLAST remained a valuable option.
Accuracy of inference at 0.93 based on ground truth similarity of antimicrobial susceptibility between the local database and genomic data queries
Due to the limited sample size, we established the ground truth similarity of antimicrobial susceptibility phenotypes to normalize accuracy. Table S13 displays the rankings, with the top-ranked entry from each sample representing the highest similarity used to calculate accuracy. Table S14 shows the actual and inferred antimicrobial susceptibility phenotypes of the top rank similarity. Sensitivity, specificity, and accuracy across 15 antimicrobials were detailed in Table S15, with average values of 0.93, 0.90, and 0.93, respectively.
Optimizing the strategy for the highest accuracy of antimicrobial susceptibility inference
We evaluated various factors impacting inference accuracy and determined the following optimal strategies (Figure 4):
Figure 4.
Optimizing the inference strategy
The written pattern of inference strategy on the left column was [matching method_ urine query_genome database (number of data points)]. The maximal number of data points possible was 15 (antimicrobials) x 24 (queries) = 360 data points. The loss of data points could be due to the absence of AST reports for some antimicrobials in the databases. The assembled genomes in public databases were produced from various platforms, both short-read and long-read, leading to inconsistency. Therefore, we inferred using whole genomes only. The best strategy in terms of overall sensitivity, specificity, and accuracy was marked in a red rectangle. The right column demonstrates the performance of the best strategy on each antibiotic.
The optimal urine query type was K. pneumoniae reads extracted by Kraken2 from non-human reads. Non-human reads, which might include other organisms, especially in cases of mixed organisms, were less effective. Using assembled K. pneumoniae contigs also reduced the performance.
The optimal searching method was identifying the genome with the highest cumulative number of matched bases (score = m value of Minimap2’s alignment parameters) from each hit. Counting the number of mapped reads (hits) per genome was less effective.
The local database of 38 K. pneumoniae genomes (Table S16), of which 2 other Klebsiella were removed, performed somewhat better than the public database (Table S19). The combined local and public database (Table S20) also performed slightly worse.
As a result, the main strategy chosen in this study employed extracted KP-reads as queries, a local database of 38 K. pneumoniae genomes as a database, Minimap2 as an alignment tool, and the highest cumulative number of matched bases from each read as the search method (Figure 3A). The largest bubble plot in each column in Figure 3A represented the best-matched isolate, from the local 38 KP database, for each urine query. The accuracy of the inference varied between 64% and 96%, depending on types of antibiotics and databases (Tables S16–S18). The average accuracy of the inference for all antimicrobials using whole genome, chromosome, and plasmid databases were 79.2% (90%CI 74.9–83.5%), 80.0% (95%CI 75.7–84.3%), and 79.5% (75.1–83.9%), respectively. Based on ground truth accuracy of 93.04% (the highest possible accuracy from this dataset, Table S15), the normalized average accuracy was 85.23%, 86.21%, and 85.50% for whole genome, chromosome, and plasmid databases, respectively.
The local chromosome and plasmid database from 38 K. pneumoniae performed the best for inferring most cephalosporin and carbapenem resistance, respectively. Sensitivity was higher with the inference from the plasmid database, while the specificity was higher with the inference from the chromosome database. The performance of the whole genome database was in the middle between the chromosome and plasmid databases.
The inference method with real-time simulation outperforming AMR gene detection method in most aspects
Except for specificity, the antimicrobial susceptibility inference showed better speed, sensitivity, accuracy, and Cohen’s kappa than AMR gene detection (Figures 5 and 6; Table 1). The inference method also required fewer bacterial DNA sequences. As shown in Figure 5, AMR gene detection (genotype) required about 6 h, while Inference from whole genome/chromosome and plasmid took about 10 min and 1 h, respectively, to achieve decent accuracy. Similarly, in Figures 5 and 6, AMR gene detection required about 5 megabases (Mb) of non-human (bacterial) DNA sequences, whereas inference from whole genome/chromosome and plasmid required about 50 kilobases (Kb) and 500 Kb, respectively.
Figure 5.
Carbapenem resistance inference from the local bacterial genome database outperforming direct detection of carbapenemase genes in most aspects
Figure 6.
Ceftriaxone resistance inference from the local bacterial genome database outperforming detection of bla genes that hydrolyze ceftriaxone in most aspects
Table 1.
Performance of antimicrobial susceptibility phenotypes inference and AMR gene detection by Nanopore sequencing in comparison to conventional antimicrobial susceptibility test (AST)
| Number of samples (Type of databases) | Time (units) | Inference or gene detection | AST R |
AST S |
Sensitivity (95%CI) | Specificity (95%CI) | PPVa (95%CI) | NPVa (95%CI) | Accuracy (95%CI) | Cohen’s Kappa (95%CI) |
|---|---|---|---|---|---|---|---|---|---|---|
| 22 (Whole genome) | 10 (minutes) | Carbapenem R | 12 | 2 | 80% (59.8–100%) | 71.4% (38–100%) | 25.7% (2.8–48.6%) | 96.7% (84.2–100%) | 77.3% (59.8–94.8%) | 0.495 (0.107–0.884) |
| Carbapenem S | 3 | 5 | ||||||||
| 21 (Plasmid) | 1 (hour) | Carbapenem R | 12 | 1 | 85.7% (67.4–100%) | 85.7% (59.8–100%) | 42.5% (15.7–69.4%) | 98% (88.2–100%) | 85.7% (70.7–100%) | 0.69 (0.365–1) |
| Carbapenem S | 2 | 6 | ||||||||
| 22 (Plasmid) | 6 (hours) | Carbapenem R | 13 | 1 | 86.7% (69.5–100%) | 85.7% (59.8–100%) | 42.8% (16.9–68.7%) | 98.1% (88.7–100%) | 86.4% (72–100%) | 0.697 (0.379–1) |
| Carbapenem S | 2 | 6 | ||||||||
| 24 (ResFinder) | 6 (hours) | Carbapenem R | 6 | 0 | 35.3% (12.6–58%) | 100% (100–100%) | 100% (100–100%) | 92.6% (80.5–100%) | 54.2% (34.2–74.1%) | 0.241 (−0.089–0.571) |
| Carbapenem S | 11 | 7 | ||||||||
| 21 (Chromosome) | 10 (minutes) | 3rd-Ceph R | 15 | 4 | 100% (100–100%) | 33.3% (0–71.1%) | 61.7% (39.8–83.5%) | 100% (100–100%) | 81% (64.2–97.7%) | 0.417 (−0.098–0.931) |
| 3rd-Ceph S | 0 | 2 | ||||||||
| 22 (Chromosome) | 1 (hour) | 3rd-Ceph R | 16 | 3 | 100% (100–100%) | 50% (10–90%) | 68.2% (47.3–89.2%) | 100% (100–100%) | 86.4% (72–100%) | 0.593 (0.164–1) |
| 3rd-Ceph S | 0 | 3 | ||||||||
| 23 (Chromosome) | 6 (hours) | 3rd-Ceph R | 170 | 4 | 100% (100–100%) | 33.3% (0–71.1%) | 61.7% (40.9–82.5%) | 100% (100–100%) | 82.6% (67.1–98.1%) | 0.425 (−0.087–0.937) |
| 3rd-Ceph S | 0 | 2 | ||||||||
| 24 (ResFinder) | 6(hours) | 3rd-Ceph R | 10 | 4 | 55.6% (32.6–78.5%) | 33.3% (0–71.1%) | 47.2% (21.1–73.4%) | 41.1% (10.6–71.6%) | 50% (30–70%) | −0.091 (−0.527–0.346) |
| 3rd-Ceph S | 8 | 2 |
-Prevalences of urine culture positive for carbapenem- (28/255 = 10.98%) and 3rd-generation cephalosporin- (132/255 = 51.76%) resistant Enterobacteriaceae were used to calculate PPV (positive predictive value) and NPV (negative predictive value).-The total number of urine cultures positive for Enterobacteriaceae during the period of urine collection was 255 (28 and 132 resistant to carbapenems and 3rd-generation cephalosporin, respectively).-The antimicrobial susceptibility test (AST) of urine queries was used as a reference standard (R – nonsusceptible, S – susceptible).
The accuracy of carbapenem resistance inference from the local whole genome database at 10 min and from the local plasmid database at 1 h were 77.3% (95%CI 59.8–94.8%) and 85.7% (95%CI 70.7–100.0%), respectively, compared to 54.2% (95%CI 34.2–74.1%) at 6 h from AMR gene (carbapenemase) detection (Table 1).
The accuracy of ceftriaxone resistance inference from the local chromosome database at 10 min and 1 h were 81.0% (95%CI 64.2–97.7%) and 86.4% (95%CI 72.0–100.0%), respectively, compared to 50.0% (95%CI 30.0–70.0%) at 6 h from AMR gene (ESBL or AmpC) detection (Table 1). Though AMR inference had higher major errors (actually susceptible but predicted to be resistant), it had lower very major errors (actually resistant but predicted to be susceptible) than AMR gene detection for both carbapenems and ceftriaxone resistance predictions, especially at early time points (Figure S4).
The inference method sometimes had missing values when there were not enough reads to match the databases. To compare the differences in sensitivity, specificity, and accuracy between the inference and AMR gene detection methods, either the missing values in the inference method were imputed or the samples with missing values were excluded from the calculation (Tables S21 and S22).
Tables S23–S28 showed differences in sensitivity, specificity, and accuracy between the inference and AMR gene detection methods at 10 min, 1 h, and 6 h with various imputation/exclusion and p-value calculation methods.
For both carbapenem and ceftriaxone resistance prediction, the sensitivity of inference was significantly higher than AMR gene detection, while the specificity of AMR gene detection was somewhat better but not statistically significant, at all time points by both imputation and exclusion of the missing values (Tables S23–28). The inference method also had significantly higher accuracy for most calculation methods we used.
Discussion
We conducted genome assemblies on 40 Klebsiella isolates, with 38 demonstrating excellent quality. However, samples KP07 and KP33 had specific issues. KP07 showed an incomplete chromosome, resulting in 2 fragments, possibly due to relatively low sequencing depth (73×, 0.4 Gb), the lowest read N50 value (5,100 bp, average 13,700 for 40 Klebsiella), and possibly a lack of long bridging contigs. KP33 exhibited high BUSCOs fragmentation 23.6%, and only 65% complete single-copy BUSCOs genes, possibly due to poor sample quality, barcode leakage, or genome complexity, though the exact causes were unknown.
We attempted genome polishing, which could refine and improve continuity but did not resolve the large-scale errors in KP07 and KP33, as polishing is effective for small-scale errors like gaps and indels. Solving these issues may require alternative assembly methods, higher base coverage depth, non-barcoding techniques (e.g., one sample per Flongle flow cell), or hybrid assembly with short reads.
In the context of using an inference method to infer antimicrobial susceptibility phenotypes, if we metaphorize a pathogen as an offender, a clinician must learn its modus operandi (clinical manifestation in a patient) to guess an empirical antibiotic. However, the chosen antimicrobial is frequently not optimal, and waiting to catch it red-handed from culture and AST may be too late for the patient. Taking time to find its hidden weapon (AMR gene) is very useful, but not always easy. When the obvious evidence is scanty (low amount or poor-quality DNA), matching its fingerprint or limited amount of DNA to a criminal record (local bacterial whole genome database with AST data) can sometimes help solve the case.
Many previous studies, including ours, have attempted the rapid determination of pathogen antimicrobial susceptibility using real-time nanopore sequencing on direct clinical samples to detect AMR genes by mapping each bacterial DNA sequence read or contig to the publicly available AMR gene databases. However, this approach has some limitations.
First, it is relatively slow to keep searching for AMR genes (∼1 Kb) in the sea of microbial (∼5.5 Mb for K. pneumoniae) and human (∼6 Gb) genomes. In our settings, using 12 barcodes for 12 samples per MinION flow cell and with a considerable amount of host cell contamination (Table S11), it took 6 h after nanopore sequencing to detect most AMR genes. In our ongoing studies to detect AMR genes on positive hemoculture (data not shown), it took 1 h for Enterobacteriaceae (high amount of bacterial DNA) and 9 h for Staphylococcus (low amount of bacterial DNA due to poor efficacy of extraction methods for gram-positive bacteria). Reducing the number of samples run per flowcell or using PromethION flow cells could improve speed, but at a higher cost per sample. Our inference strategy improved the speed significantly, as mapping for the chromosome/whole genome (5–5.5 Mb) and plasmids (10–100 Kb) mostly took only 10 min and 1 h, respectively (Figures 5 and 6).
Second, the amount of bacterial DNA sequences must be high enough to detect AMR genes directly. In this study, it required about 5 Mb (∼1× genome coverage depth) of non-human reads to detect AMR genes in most samples (Figures 5 and 6). The need of 1× genome coverage depth to find most AMR genes was also found in our ongoing studies (data not shown) on positive hemoculture for Enterobacteriaceae (∼5 Mb) and Staphylococcus (∼2.5 Mb). Low bacterial DNA can result in slow or no AMR gene detection at all. In comparison, it needed only about 50 Kb (∼0.01×) and 500 Kb (∼0.1×) to find the matched genome/chromosome and plasmid, respectively. Thus, direct clinical samples with low bacterial load or bacteria that are difficult to lyse may benefit from the inference approach.
Third, if resistance arises from a single point mutation in a housekeeping gene, the relatively high error rate of nanopore sequencing may hinder the accuracy. Not only does it take considerable time to identify point mutations (1 base vs. 1 Kb of AMR genes), but it will also require a high amount of bacterial DNA to create a consensus-assembled sequence that can cancel out false point mutations caused by basecalling errors.
Fourth, interpreting the absence or presence of AMR genes is not always straightforward. The absence of AMR genes may result from too little bacterial DNA or the lack of novel AMR gene records in public databases. Conversely, the presence of AMR genes may not contribute to the resistance phenotype. For example, AMR genes may not be sufficiently expressed, as in the case of inducible AmpC betalactamases,30 where beta-lactam susceptibility can change drastically depending on their expression level.
In some AMR genes, point mutations, which are challenging to identify correctly with nanopore sequencing, can alter the spectrum of AMR. For instance, point mutations in genes encoding beta-lactamases like TEM and SHV can change their beta-lactam hydrolysis activity from ampicillinase to cephalosporinase (ESBL) and vice versa.31 Additionally, barcode leakage in nanopore sequencing can introduce reads with AMR genes into the wrong barcode, causing false-positive results. Sometimes, AMR may arise from the combination of multiple AMR genes, making the interpretation even more complex.32
The AMR inference from the best-matched genome in the database can bypass most of the aforementioned problems. This approach does not rely on single genes or point mutations but considers whole genomes, eliminating the need for complex interpretation of AMR genes. Negative (no resistance) results from inference are closer to “evidence of absence”, while negative results from not finding AMR genes are closer to “absence of evidence”, which cannot confidently rule out false negatives. In this study, the false negative rate (1-sensitivity) was indeed lower with the inference strategy. For instance, at 6 h of nanopore sequencing, the false negative rate of the direct AMR (carbapenemase) gene detection and the carbapenem resistance inference with the plasmid database was 64.7% and 13.3%, respectively (Table 1).
Unlike the AMR gene detection strategy, which can be broadly applied, generalizing the inference strategy is challenging. Its performance can vary significantly based on the matching strategies and genome databases used. The inference method also requires a high-quality, unbiased whole genome database that accurately represents all relevant strains with diverse antimicrobial susceptibility patterns.
Hoping to generalize the database, we added K. pneumoniae species complex genomes from a public database, only to find a slight drop in resistance inference performance. Conversely, removing non-K. pneumoniae species (such as K. variicola and K. quasipneumoniae) from the local database slightly improved performance. A compact, more relevant database with complete AST profiles may be comparable to or even better than a larger, less relevant, and incomplete one. Therefore, each site or even each patient may need customized local bacterial whole genome databases.
Ideally, the locally constructed database should be regularly updated to include newly evolved or outbreak strains, ready for an upcoming new query. Each query itself may contain enough bacterial DNA to be assembled into a new complete genome, which can then be automatically added to the database (workflow in the Graphical Abstract). Unfortunately, only 1 query could be assembled into a complete genome in this study, we therefore could not test the benefit of an up-to-date database. This might later be proved in our ongoing study on Enterobacteriaceae in positive hemoculture, where most queries could be assembled into complete genomes (data not shown). On the other hand, whether outdated genomes should be removed remains questionable.
In our K. pneumoniae database, carbapenemase genes were present exclusively on plasmids, while Extended-Spectrum Beta-Lactamase (ESBL) and AmpC genes were mainly on chromosomes (data not shown). This may partially explain why inferring carbapenem resistance from the plasmid database and ceftriaxone resistance from the chromosome database performed better than the others.
The previous inference study in E. coli by MacFadden et al.23 showed better inference for carbapenem than ceftriaxone resistance. Similarly, the specificity of resistance inference was better for carbapenem than ceftriaxone in this study. This might be explained by closely related strains of carbapenem-resistant K. pneumoniae.
In some of the best-matched pairs, the query and the database were still highly divergent from each other, meaning that a closely related genome did not exist in our database. The divergence of each urine query was weakly and negatively correlated with its individual overall accuracy, which was the number of antimicrobials with correct inference divided by 15 (total antimicrobials tested in each query), as shown in Figure S5.
In our study, we did not find a scenario where one query had two best matches with equal cumulative scores. If this were to happen, we would combine the phenotypes of all the best matches. If any matched phenotypes were resistant, the prediction should be resistant to minimize the very major error where the actual phenotype was resistant, but the test indicated a susceptible phenotype.
To confirm our findings, further studies should increase the sample size and investigate the influence of updated and outdated genomes in the database. With the rapid resistance inference method, bacterial DNA extraction is a bottleneck step, necessitating the development of fast and high-quality extraction methods. Nonetheless, resistance inference from a local database should complement, not replace, AMR gene detection.
Limitations of the study
The limitation of this study was a low number of urine query samples, which could easily lead to over- or under-estimation of accuracy, just by a few changes by chance. The high proportion of resistance phenotype among urine samples also overinflated the accuracy of inference (high sensitivity) over AMR gene detection (high specificity), especially at early time points when a small number of reads from nanopore sequencing were enough for inference but not AMR gene detection.
The local K. pneumoniae database was also far from ideal. While the queries were all from urine samples, the database included only 7 isolates from urine samples. Some of the isolates in the database were collected after the urine query sample. This would be improbable in real life.
The 1:1 ratio between CRE and non-CRE in our K. pneumoniae database was suitable for inferring carbapenem resistance. However, the 3:1 ratio between ceftriaxone-resistant and ceftriaxone-susceptible K. pneumoniae could bias the inference toward ceftriaxone resistance, resulting in very high sensitivity but low specificity.
Resource availability
Lead contact
Further information and requests for resources should be directed to and will be fulfilled by the lead contact, Dr. Voraphoj Nilaratanakul, (voraphoj.n@chula.ac.th).
Materials availability
This study did not produce any novel materials.
Data and code availability
-
•
Whole genome assemblies of Klebsiella (local database) have been deposited in BioProject PRJNA1169829 (https://www.ncbi.nlm.nih.gov/datasets/genome/?bioproject=PRJNA1169829). Metagenomic sequencing data of urine samples (query) have been deposited in BioProject PRJNA1171213 (https://www.ncbi.nlm.nih.gov/sra/?term=PRJNA1171213). All accession numbers are listed in the key resources table.
-
•
No original code was developed in this study. Bioinformatics tools and corresponding command lines are listed in Table S29.
-
•
Additional details needed to reanalyze the data can be obtained from the lead contact upon request.
Acknowledgments
This research was funded by Thailand Science Research and Innovation Fund Chulalongkorn University (HEAF67300012), National Research Council of Thailand (NRCT) and Chulalongkorn University (N42A660522), and Quality Improvement Fund, King Chulalongkorn Memorial Hospital, the Thai Red Cross Society (HA-67-3300-C1-052).
P.C., the first author of this research project, is supported by the Second Century Fund (C2F), Chulalongkorn University. Additionally, support was provided by the 90th Anniversary of Chulalongkorn University, Rachadapisek Sompote Fund.
K.K. was supported by Ratchadapisek Somphot Fund for Postdoctoral Fellowship, Chulalongkorn University.
N.S. was supported by Chulalongkorn University Graduate School Thesis Grant (GCUGR1225642061M).
N.S. and V.N. were supported by the Ratchadapiseksompotch Fund, Faculty of Medicine, Chulalongkorn University, grant number GA65/44.
V.N. was supported by Ratchadaphiseksomphot Fund, Chulalongkorn University (CU_GR_63_127_30_34) and Ratchadapiseksompotch Fund, Faculty of Medicine, Chulalongkorn University (RA-MF-14/62).
E.J. and F.D. are affiliated with the National Institute for Health Research Health Protection Research Unit (NIHR HPRU) in Healthcare Associated Infections and Antimicrobial Resistance at Imperial College London in partnership with the UK Health Security Agency, in collaboration with, Imperial Healthcare Partners, University of Cambridge and University of Warwick. The views expressed in this publication are those of the author(s) and not necessarily those of the NHS, the National Institute for Health Research, the Department of Health and Social Care or the UK Health Security Agency.
Author contributions
P.C. processed sequencing data, performed bioinformatic analyses (assembled genome, constructed the local database, built a search pipeline, and visualized data), interpreted the data, and wrote the paper.
K.K. and N.S. recorded sample metadata, processed samples, performed molecular lab work and nanopore sequencing, and wrote the paper.
P.T. collected samples and wrote the paper.
S.A., P.K., and N.C. performed basic bioinformatics and wrote the paper.
S.N., N.K., U.R., and T.C. contributed materials and wrote the paper.
E.J. and F.D. analyzed molecular epidemiology and wrote the paper.
V.N., S.S., and P.N.P. conceived and designed the experiments, analyzed and interpreted the data, secured funding, and wrote the paper.
Declaration of interests
The authors declared no conflict of interest.
Declaration of generative AI and AI-assisted technologies in the writing process
During the preparation of this work, the authors used ChatGPT 4o to correct the grammar. After using this tool, the authors reviewed and edited the content as needed and take full responsibility for the content of the publication.
STAR★Methods
Key resources table
| REAGENT or RESOURCE | SOURCE | IDENTIFIER |
|---|---|---|
| Bacterial strains | ||
| Klebsiella pneumoniae clinical isolates | King Chulalongkorn Memorial Hospital, Bangkok, Thailand | N/A |
| Klebsiella variicola clinical isolates | King Chulalongkorn Memorial Hospital, Bangkok, Thailand | N/A |
| Klebsiella quasipneumoniae clinical isolates | King Chulalongkorn Memorial Hospital, Bangkok, Thailand | N/A |
| Biological samples | ||
| Urine clinical samples | King Chulalongkorn Memorial Hospital, Bangkok, Thailand | N/A |
| Critical commercial assays | ||
| QIAamp PowerFecal Pro DNA Kit | QIAGEN | Cat# 51804 |
| AMPure XP Bead-Based Reagent | Beckman Coulter | Cat# A63881 |
| Rapid Barcoding Sequencing Kit (SQK-RBK004) | Oxford Nanopore Technologies | Cat# SQK-RBK004 |
| Rapid Barcoding Sequencing Kit (SQK-NBD112-24) | Oxford Nanopore Technologies | Cat# SQK-NBD112-24 |
| Flow Cell (R9.4.1) | Oxford Nanopore Technologies | Cat # FLO-MIN106 |
| Flow Cell (R10.1.4) | Oxford Nanopore Technologies | Cat # FLO-MIN106 |
| Deposited data | ||
| Whole genome assemblies of Klebsiella | This paper | https://www.ncbi.nlm.nih.gov/datasets/genome/?bioproject=PRJNA1169829 |
| KP01 | GenBank: GCA_043950235.1 | |
| KP02 | GenBank: GCA_043950255.1 | |
| KP03 | GenBank: GCA_043950265.1 | |
| KP04 | GenBank: GCA_043950275.1 | |
| KP05 | GenBank: GCA_043950295.1 | |
| KP06 | GenBank: GCA_043950305.1 | |
| KP07 | GenBank: GCA_044471005.1 | |
| KP08 | GenBank: GCA_043950315.1 | |
| KP13 | GenBank: GCA_043950325.1 | |
| KP14 | GenBank: GCA_043950335.1 | |
| KP15 | GenBank: GCA_043950345.1 | |
| KP16 | GenBank: GCA_043950355.1 | |
| KP17 | GenBank: GCA_043950365.1 | |
| KP18 | GenBank: GCA_043950375.1 | |
| KP19 | GenBank: GCA_043950385.1 | |
| KP20 | GenBank: GCA_043950395.1 | |
| KP21 | GenBank: GCA_043950405.1 | |
| KP22 | GenBank: GCA_043950415.1 | |
| KP23 | GenBank: GCA_043950425.1 | |
| KP24 | GenBank: GCA_043950435.1 | |
| KP25 | GenBank: GCA_043950445.1 | |
| KP26 | GenBank: GCA_043950455.1 | |
| KP27 | GenBank: GCA_043950465.1 | |
| KP28 | GenBank: GCA_043950475.1 | |
| KP29 | GenBank: GCA_043950485.1 | |
| KP30 | GenBank: GCA_043950495.1 | |
| KP31 | GenBank: GCA_043950505.1 | |
| KP32 | GenBank: GCA_043950515.1 | |
| KP33 | GenBank: GCA_044161085.1 | |
| KP34 | GenBank: GCA_043950525.1 | |
| KP35 | GenBank: GCA_043950535.1 | |
| KV36 | GenBank: GCA_043950545.1 | |
| KP37 | GenBank: GCA_043950555.1 | |
| KP38 | GenBank: GCA_043641835.1 | |
| KP39 | GenBank: GCA_043640565.1 | |
| KP40 | GenBank: GCA_043639595.1 | |
| KP41 | GenBank: GCA_043638925.1 | |
| KQ42 | GenBank: GCA_043638275.1 | |
| KP43 | GenBank: GCA_043636885.1 | |
| KP44 | GenBank: GCA_043636175.1 | |
| Metagenomic sequencing data of urine samples | This paper | https://www.ncbi.nlm.nih.gov/sra/?term=PRJNA1171213 |
| U03KP | SRA: SRX26449209 | |
| U04KP | SRA: SRX26449220 | |
| U12KP | SRA: SRX26449200 | |
| U13KP | SRA: SRX26449201 | |
| U16Mx | SRA: SRX26449204 | |
| U17Mx | SRA: SRX26449205 | |
| U19KP | SRA: SRX26449207 | |
| U20KP | SRA: SRX26449208 | |
| U21KP | SRA: SRX26449210 | |
| U26KP | SRA: SRX26449215 | |
| U35KP | SRA: SRX26449229 | |
| U36KP | SRA: SRX26449230 | |
| U37KP | SRA: SRX26449231 | |
| U39KP | SRA: SRX26449233 | |
| U40Mx | SRA: SRX26449234 | |
| U42KP | SRA: SRX26449237 | |
| U43KP | SRA: SRX26449238 | |
| U45KP | SRA: SRX26449240 | |
| U46KP | SRA: SRX26449241 | |
| U49KP | SRA: SRX26449244 | |
| U51KP | SRA: SRX26449247 | |
| U55KP | SRA: SRX26449251 | |
| U57KP | SRA: SRX26449253 | |
| U59KP | SRA: SRX26449255 | |
| Klebsiella genomes and phenotype data | NCBI pathogen database | https://www.ncbi.nlm.nih.gov/pathogens/isolates/# |
| Human reference genome (GRCh38.p14) | NCBI | https://www.ncbi.nlm.nih.gov/datasets/genome/GCF_000001405.40 |
| Software and algorithms | ||
| Guppy (v6.1.7, v6.5.7) | Oxford Nanopore Technologies | https://nanoporetech.com/document/Guppy-protocol |
| MinIONQC (v1.4.2) | Lanfear et al.33 | https://github.com/roblanf/minion_qc |
| pycoQC (v2.5.3.0) | Leger et al.34 | https://github.com/a-slide/pycoQC |
| NanoFilt (v2.8.0) | De Coster et al.27 | https://github.com/wdecoster/nanofilt |
| FastQC (v0.11.9) | Andrew et al.35 | https://www.bioinformatics.babraham.ac.uk/projects/fastqc |
| NanoPlot (v1.40.0) | De Coster et al.27 | https://github.com/wdecoster/NanoPlot |
| Canu (v2.2) | Koren et al.36 | https://github.com/marbl/canu |
| Flye (v2.9.1) | Kolmogorov et al.37 | https://github.com/mikolmogorov/Flye |
| Necat | Chen et al.38 | https://github.com/xiaochuanle/NECAT |
| Paoloshasta | Shafin et al.39 | https://github.com/chanzuckerberg/shasta |
| Raven (v6.1.0) | Vaser et al.40,41 | https://github.com/lbcb-sci/raven |
| Unicycler (v0.5) | Wick et al.25,26,42,43 | https://github.com/rrwick/Unicycler |
| Medaka (v1.7.1) | Oxford Nanopore Technologies | https://github.com/nanoporetech/medaka |
| Racon (v1.5.0) | Vaser et al.40,41 | https://github.com/isovic/racon |
| N50 (v4.1.0) | Telanin et al. | https://github.com/hcdenbakker/N50.sh |
| BUSCO (v5.4.3) | Manni et al.44 | https://github.com/metashot/busco |
| CheckM2 (v1.0.2) | Chklovski et al. | https://github.com/Ecogenomics/CheckM |
| Kraken2 (v2.1.3) | Wood et al.45 | https://github.com/DerrickWood/kraken2 |
| BLAST (v2.13.0) | NCBI | https://blast.ncbi.nlm.nih.gov/doc/blast-help/downloadblastdata.html |
| Minimap2 (v2.24) | Li et al.46 | https://github.com/lh3/minimap2 |
| Samtools (v1.15.1) | Danecek et al.47 | https://github.com/samtools/samtools |
| PROKKA (v1.14.6) | Seemann et al.48 | https://github.com/tseemann/prokka |
| OrthoFinder (v2.5.5) | Emms et al.49 | https://github.com/davidemms/OrthoFinder |
| Staramr (v0.10.0) | Bharat et al.50 | https://github.com/phac-nml/staramr |
| Bandage (v0.8.1) | Wick et al.25,26,42,43 | https://github.com/rrwick/Bandage |
| iTOL | Letunic et al.51 | https://itol.embl.de |
| GraphPad Prism (v9.5.1) | GraphPad Software | https://www.graphpad.com |
| bioRender | bioRender | https://www.biorender.com |
Experimental model and study participant details
Study design and participants
To address antimicrobial resistance (AMR) challenges, we developed a pipeline for rapid inference of antimicrobial susceptibility phenotypes, organized into four modules. First, we collected Antimicrobial Susceptibility Testing (AST) results to serve as reference phenotypes. Second, we created a customized database from the whole genomes of 40 Klebsiella isolates obtained from patients at King Chulalongkorn Memorial Hospital, referred to as the "Local Database", using an optimized de novo whole genome assembly protocol. Third, we prepared query libraries from metagenomes of 24 urine samples obtained from patients at the same hospital to test the inference pipeline. Finally, we developed a pipeline to infer antimicrobial susceptibility phenotypes and validated it using both self-validation and external testing with urine samples. The details of each module were as follows.
Ethical approval statement
In accordance with the Code of Ethics of the World Medical Association (Declaration of Helsinki), this study was approved by the Institutional Review Board, Faculty of Medicine, Chulalongkorn University (IRB number 511/63 and 282/64) and the Institutional Biosafety Committee, Faculty of Medicine, Chulalongkorn University (MDCU-IBC number 016/2020 and 013/2021).
Method details
Data collection and AST profiling
AST results from our routine laboratory service reports served as reference phenotypes for this study. We collected AST results for 16 antimicrobials across all samples, including Ampicillin, Amoxicillin-Clavulanic Acid, Piperacillin-Tazobactam, Cefazolin, Cefuroxime, Cefuroxime axetil, Ceftriaxone, Cefepime, Doripenem, Imipenem, Meropenem, Amikacin, Gentamicin, Trimethoprim-Sulfamethoxazole, Ciprofloxacin, and Tetracycline. Ertapenem was not on the list since only a few samples had been tested for Ampicillin was excluded during statistical analysis due to the intrinsic resistance of K. pneumoniae, resulting in AST data for 15 antimicrobials categorized as susceptible (S) or non-susceptible (R). For patient safety, Susceptible-Dose Dependent (SDD) and Increased Exposure (I) results were converted to non-susceptible (R), ensuring only antimicrobials with clear efficacy were recommended.
We classified resistance phenotypes based on antimicrobial classes into three categories:
CRE (Carbapenem-Resistant Enterobacteriaceae): Non-susceptible to at least one carbapenem (doripenem, imipenem, meropenem, ertapenem).
ESBL (Extended-Spectrum Beta-Lactamase and/or AmpC beta-lactamase producing bacteria): Susceptible to all carbapenems but non-susceptible to third-generation cephalosporins (ceftriaxone).
Non-CRE/Non-ESBL: Susceptible to all carbapenems and third-generation cephalosporins.
Additionally, we collected patient demographic data and sample metadata, including urine analysis findings and culture outcomes, from medical records and official laboratory reports from the microbiology laboratory at King Chulalongkorn Memorial Hospital.
Local Klebsiella genome database construction
Sample collection and processing
We retrieved 40 K. pneumoniae clinical isolates with known AST profiles from the microbiology laboratory at King Chulalongkorn Memorial Hospital. Each isolate was recovered on LB agar, sub-cultured in 5 mL of LB broth, and grown overnight in an incubator shaker at 37°C.
Sequencing
DNA was extracted from the LB broth cultures using the Quick-DNA HMW MagBead Kit (Zymo Research) according to the manufacturer’s protocol. The eluted DNA was purified with AMPure XP magnetic beads (Beckman Coulter) and quantified using a Qubit Fluorometer (Life Technologies). DNA extracts were barcoded with the Rapid Barcoding Kit (SQK-RBK110-96, ONT) and sequenced on four R9.4.1/FLO-MIN106 flow cells using the Oxford Nanopore MinION Mk1B platform for 72 h (Figure 1A).
De novo whole genome assembly protocol optimization
To avoid potential biases from an imperfect reference genome, we opted for de novo whole-genome assembly. We processed all FAST5 files using Guppy v6.1.7 in Super High Accuracy mode with a quality threshold of 10 for base calling, demultiplexing, and trimming of barcodes and adaptors.25 Quality evaluation of raw reads was performed with pycoQC v2.5.3.0,34 FastQC v0.11.9,35 and NanoPlot v1.40.0,27 recording key metrics such as base count, read count, read length distribution, read length N50, and read Phred quality score.
We filtered raw reads using NanoFilt v2.8.027 to eliminate low-quality regions and retain the longest high-quality regions. We optimized filtering and trimming with various thresholds (50, 100, 150, 200, 250, 300, 1000, and 3000 bp for filtering; 0, 10, 15, 20, 25, 30, and 50 bp for trimming). The quality of trimmed reads was assessed using FastQC v0.11.9 and NanoPlot v1.40.0, comparing metrics between raw and trimmed reads. The optimal threshold was chosen based on sequencing depth, mean read quality, number of retained bases, number of retained reads, mean read length, and read length N50.
For assembly, we tested six assemblers: Canu v2.2,36 Flye v2.9.2,37 Necat,38 Paoloshasta,39 Raven v6.1.0,40 and Unicycler v0.5.0.42 Polishing was performed with Medaka v1.7.125 and Racon v1.5.0,41 selected for their proficiency in handling long-read data and repetitive regions. Genome completeness, contamination, and continuity were assessed with BUSCO v5.4.3,44 CheckM2 v1.0.2,28 and N50 v4.1.0,52 respectively. Assembled genomes were visualized using Bandage v0.8.1.43 We compared the quality and computational time of each assembler to identify the most suitable for downstream applications.
Local database construction
Final assemblies were verified using Kraken245 and BLAST v2.13.0,53 removing any erroneous contigs not matching K. pneumoniae. Verified contigs were classified as either chromosomes or plasmids. The local database was built with three subtypes: a whole genome database (both chromosomes and plasmids), a chromosome database (only verified chromosomes), and a plasmid database (only verified plasmids). The database was formatted for compatibility with BLAST v2.13.0, Minimap2 v2.24-r1122,46 and Kraken2.
To understand the relationship between our local database and public Klebsiella genomes from the NCBI Pathogens Database, we performed annotation using PROKKA v1.14.6,48 generated a whole-genome phylogenetic tree based on orthogroups using OrthoFinder v2.5.5,49 and identified Multi-Locus Sequence Types (MLST) with Staramr v0.10.0.50 The phylogenetic tree was visualized using iTOL.51
Preparation of query libraries from 24 urine samples
AST profiling
In our routine laboratory service, urine samples were cultured on blood agar and CLED (cysteine lactose electrolyte deficient) agar, then incubated at 35°C ± 2°C for 24–48 h. Bacterial identification was performed using VITEK2XL and VITEKMS mass spectrometry. Antibiotic susceptibility was assessed using the Kirby-Bauer disk diffusion method and the VITEK2XL system, following the Clinical Laboratory Standard Institute guidelines (CLSI M100, 30th edition, 2020).54
Sample collection and processing
We obtained 24 urine samples identified as K. pneumoniae from a study focused on the direct identification of antimicrobial resistance (AMR) genes from 60 clinical urine samples (manuscript under review). Written informed consent was obtained from adult patients, while consent for minors (≤2 years old) was provided by parents or guardians. Leftover urine samples (up to 10 mL) from the bacterial culture process at King Chulalongkorn Memorial Hospital were collected and either processed immediately or stored at 4°C for up to 8 h.
To reduce host cell contamination, urine samples were centrifuged at 300g for 3 min, and the host-depleted supernatant was re-centrifuged at 3000g for 10 min to form a bacterial pellet, which was stored frozen at −80°C.
Sequencing
DNA was extracted from the frozen bacterial pellets using the QIAamp PowerFecal Pro DNA Kit (Qiagen), following the manufacturer’s protocol. The eluted DNA was purified with AMPure XP magnetic beads (Beckman Coulter) to achieve a final volume of 50 μL per extract and quantified using a Qubit Fluorometer (Life Technologies).
Barcoding was performed using the Rapid Barcoding Kit SQK-RBK004 for samples U03KP, U04KP, U12KP, U16Mx, U17Mx, U19KP, U20KP, U21KP, U26KP, U35KP, U36KP, U39KP, U40Mx, U42KP, U45KP, U46KP, and U49KP, and the Rapid Barcoding Kit SQK-NBD112-24 for samples U51KP, U55KP, U57KP, and U59KP. Barcoded libraries were loaded onto R9.4.1/FLO-MIN106 flow cells for the first group and R10.1.4/FLO-MIN106 flow cells for the second group. All samples were sequenced on the Oxford Nanopore MinION Mk1B platform for 72 h.
Query libraries preparation
We prepared query libraries from the metagenomes of the 24 urine samples, generating both read-query and contig-query libraries.
For read-query libraries, base calling, demultiplexing, and trimming of barcodes and adaptors were performed using Guppy v6.5.7 in Super High Accuracy mode with a quality threshold of 10. Raw reads were filtered and trimmed using NanoFilt v2.8.0, maintaining the same threshold as the database. Human reads were removed by aligning to the human reference genome GRCh38.p14 using Minimap2 v2.24-r1122, and then K. pneumoniae reads were extracted based on Kraken2 classification. The quality of raw and processed reads was evaluated using FastQC v0.11.9 and NanoPlot v1.40.0.
For contig-query libraries, processed reads were assembled using Flye v2.9.2. The workflow is depicted in Figure 1B.
Optimization and validation of a search pipeline
Search pipeline overview
We developed a three-step search pipeline to infer antimicrobial susceptibility phenotypes. The steps are as follows.
-
(1)
Alignment: Query sequences are aligned to a genome database of K. pneumoniae isolates with known susceptibility phenotypes (AST).
-
(2)
Identification: The isolate with the highest genome similarity is identified.
-
(3)
Phenotype Inference: The query’s antimicrobial susceptibility phenotype is inferred based on the identified isolate’s phenotype. Accuracy is assessed by comparing actual and inferred phenotypes.
Self-validation methods
For self-validation, we used query libraries from the same set that built the local database of 40 Klebsiella isolates.
Step1: Alignment
We utilized BLAST v2.13.0, Kraken2, and Minimap2 v2.24-r1122 to align query sequences against various local database categories (whole-genome, chromosome, and plasmid) and query types (contigs and reads).
Step 2: Searching
We identified the KP isolate in the database with the highest genome similarity based on either the highest number of hits or the highest cumulative score from each hit.
-
(1)
BLAST: A query contig was considered a hit if it aligned to an isolate’s genome with the highest bit score, percentage of identical matches (pident), and number of identical matches (nident). Nident served as the score for the KP isolate receiving from that particular contig hit. We excluded BLAST with read queries due to its resource-intensive nature.
-
(2)
Kraken2: The number of hits was determined by the fragments assigned to a KP isolate, with the number of minimizers used as the score.
-
(3)
Minimap2: A query read/contig was considered a hit if it aligned with the highest number of matched bases (m), the highest number of minimizers on the chain (cm), and the lowest approximate per-base sequence divergence (dv). The number of matched bases (m) served as the score received from that particular read/contig hit.
Step 3: Phenotype Inference
We inferred the antimicrobial resistance phenotype of KP in the query based on the AST results of the KP isolate identified in the database from Step 2.
Self-validation using Mean Reciprocal Rank (MRR)
Effectiveness was evaluated using the MRR, a metric measuring the effectiveness of search tools based on the rank at which the first relevant result is retrieved. We selected the most appropriate approach for downstream applications.
External validation methods
We used query libraries from the metagenomes of 24 urine clinical samples with known antimicrobial susceptibility phenotypes. Various factors affecting inference accuracy were examined:
Query Type Comparison: We compared non-human reads (human-unmapped reads without extraction for KP-reads) versus KP-reads (human-unmapped reads with extraction for KP-reads).
Search Method Comparison: We compared using the highest number of hits versus the highest cumulative score from each hit.
Database Comparison: We compared a local database of 40 Klebsiella versus 38 KP (excluding 1 K. variicola and 1 K. quasipneumoniae).
Public Database Comparison: To assess the impact of our local database, we compared it with the NCBI Pathogen Database, containing 436 assemblies from the "Klebsiella pneumoniae group" from Homo sapiens hosts with available AST results (accessed May 4th, 2023). These 436 Klebsiella isolates formed the "Public Database," and when combined with the 38 K. pneumoniae isolates, the "Global Database." Comparisons were made between the local, global, and public databases.
Real-time Simulation: To simulate real-time applications, we binned the query-read data based on the duration from the start of sequencing (1 min, 5 min, 10 min, 20 min, 30 min, 40 min, 50 min, 1 h, 2 h, 3 h, 4 h, 5 h, 6 h, 12 h, 24 h, and 72 h) and the number of cumulative non-human bases (2.5K, 5K, 10K, 25K, 50K, 100K, 250K, 500K, 1M, 2.5M, 10M, 25M, 50M, 100M, and total). The performance of the search was compared at each time point and for each number of cumulative non-human bases.
Quantification and statistical analysis
Accuracy analysis (external validation)
The inferred phenotypes and genotypic resistance (by AMR gene detection) of each sample were compared with actual phenotypes and classified as true positives (TP), true negatives (TN), false positives (FP), and false negatives (FN). The search pipeline’s performance, both for each antimicrobial and overall, was assessed in terms of accuracy, sensitivity, and specificity. Using prevalence data of carbapenem and ceftriaxone resistance of Enterobacteriaceae in urine from our previous study (manuscript in revision), we also calculated the positive predictive value (PPV) and negative predictive value (NPV). Agreement between each method and the actual phenotype was determined with Cohen’s kappa.
Given the limited sample size, our reference AST might not capture all possible susceptibility patterns. To address this, we determined the ground truth by ranking the similarity of antimicrobial susceptibility between the local database and the queries, providing an upper bound for results and normalizing the test accuracy. An example of the ranking process was presented in Table S13.
Performance of inference vs. AMR gene detection
We conducted statistical tests to compare the inference method with the AMR gene detection method, including.
-
(1)
95% confidence interval (CI) for the difference55 in sensitivity, specificity and accuracy = difference 1.96SE.
-
(2)
Standard McNemar test.56
-
(3)
McNemar test with Edwards correction.57
-
(4)
McNemar test with Yates correction.58
-
(5)
Exact p-value Binomial test.59
-
(6)
Mid-p-value Binomial test.59
n = number of samples used in each calculation = a+b+c+d.
nsensitivity = number of samples with actual resistance phenotype.
nspecificity = number of samples with actual susceptible phenotype.
naccuracy = number of total samples.
We defined inference method as “I”, AMR gene detection method as “G”, prediction of being resistant as “+”, prediction of being susceptible as “–”, correct prediction as “✓”, and incorrect prediction as “✕”. Note that a correct prediction could be either a true positive or a true negative, while an incorrect prediction could be either a false positive or a false negative.
asensitivity = number of I+G+ samples in a group with actual resistance phenotype, aspecificity = number of I+G+ samples in a group with actual susceptible phenotype, aaccuracy = number of I✓G✓ samples, bsensitivity = number of I + G– samples in a group with actual resistance phenotype, bspecificity = number of I + G– samples in a group with actual susceptible phenotype, baccuracy = number of I✓G✕ samples, csensitivity = number of I–G+ samples in a group with actual resistance phenotype, cspecificity = number of I–G+ samples in a group with actual susceptible phenotype, caccuracy = number of I✕G✓ samples, dsensitivity = number of I–G– samples in a group with actual resistance phenotype, dspecificity = number of I–G– samples in a group with actual susceptible phenotype daccuracy = number of I✕G✕ samples, = difference in either sensitivity, specificity, or accuracy between inference and AMR gene detection methods.
Exclusion and imputation methods for missing data
Exclusion Method
Samples in the inference method could lack data due to insufficient sequencing reads to pass quality control and the inference pipeline. For these samples, we excluded the corresponding samples in the AMR gene detection group to maintain the same sample size for both groups (Tables S21–S28).
Imputation Method
For samples lacking inference data, we assigned an incorrect antimicrobial susceptibility phenotype. In this study, all these imputed phenotypes were incidentally the same phenotypes as the AMR gene detection method. This ensured a stringent test for significant differences between methods (Tables S21–S28).
Published: June 20, 2025
Footnotes
Supplemental information can be found online at https://doi.org/10.1016/j.isci.2025.112962.
Contributor Information
Sira Sriswasdi, Email: sira.sr@chula.ac.th.
Voraphoj Nilaratanakul, Email: voraphoj.n@chula.ac.th.
Supplemental information
References
- 1.Mancuso G., Midiri A., Gerace E., Biondo C. Bacterial antibiotic resistance: the most critical pathogens. Pathogens. 2021;10:1310. doi: 10.3390/pathogens10101310. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 2.Antimicrobial Resistance Collaborators Global burden of bacterial antimicrobial resistance in 2019: a systematic analysis. Lancet. 2022;399:629–655. doi: 10.1016/s0140-6736(21)02724-0. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 3.Llor C., Bjerrum L. Antimicrobial resistance: risk associated with antibiotic overuse and initiatives to reduce the problem. Ther. Adv. Drug Saf. 2014;5:229–241. doi: 10.1177/2042098614554919. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 4.Ventola C.L. The antibiotic resistance crisis: part 1: causes and threats. P T. 2015;40:277–283. [PMC free article] [PubMed] [Google Scholar]
- 5.Melander R.J., Zurawski D.V., Melander C. Narrow-spectrum antibacterial agents. Medchemcomm. 2018;9:12–21. doi: 10.1039/c7md00528h. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 6.Kumar A., Roberts D., Wood K.E., Light B., Parrillo J.E., Sharma S., Suppes R., Feinstein D., Zanotti S., Taiberg L., et al. Duration of hypotension before initiation of effective antimicrobial therapy is the critical determinant of survival in human septic shock. Crit. Care Med. 2006;34:1589–1596. doi: 10.1097/01.CCM.0000217961.75225.E9. [DOI] [PubMed] [Google Scholar]
- 7.Datar R., Orenga S., Pogorelcnik R., Rochas O., Simner P.J., van Belkum A. Recent advances in rapid antimicrobial susceptibility testing. Clin. Chem. 2021;68:91–98. doi: 10.1093/clinchem/hvab207. [DOI] [PubMed] [Google Scholar]
- 8.Gajic I., Kabic J., Kekic D., Jovicevic M., Milenkovic M., Mitic Culafic D., Trudic A., Ranin L., Opavski N. Antimicrobial susceptibility testing: a comprehensive review of currently used methods. Antibiotics (Basel) 2022;11:427. doi: 10.3390/antibiotics11040427. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 9.van Zanten A.R.H. The golden hour of antibiotic administration in severe sepsis: avoid a false start striving for gold. Crit. Care Med. 2014;42:1931–1932. doi: 10.1097/ccm.0000000000000363. [DOI] [PubMed] [Google Scholar]
- 10.S P Galhano B., G Ferrari R., Panzenhagen P., S de Jesus A.C., A Conte-Junior C. Antimicrobial resistance gene detection methods for bacteria in animal-based foods: a brief review of highlights and advantages. Microorganisms. 2021;9:923. doi: 10.3390/microorganisms9050923. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 11.Yang S., Rothman R.E. PCR-based diagnostics for infectious diseases: uses, limitations, and future applications in acute-care settings. Lancet. 2004;4:337–348. doi: 10.1016/s1473-3099(04)01044-8. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 12.Burmeister A.R. Horizontal gene transfer. Evol. Med. Public Health. 2015;2015:193–194. doi: 10.1093/emph/eov018. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 13.Spadar A., Phelan J., Elias R., Modesto A., Caneiras C., Marques C., Lito L., Pinto M., Cavaco-Silva P., Ferreira H., et al. Genomic epidemiological analysis of Klebsiella pneumoniae from Portuguese hospitals reveals insights into circulating antimicrobial resistance. Sci. Rep. 2022;12 doi: 10.1038/s41598-022-17996-1. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 14.Pollett S., Miller S., Hindler J., Uslan D., Carvalho M., Humphries R.M. Phenotypic and molecular characteristics of carbapenem-resistant Enterobacteriaceae in a health care system in Los Angeles, California, from 2011 to 2013. J. Clin. Microbiol. 2014;52:4003–4009. doi: 10.1128/jcm.01397-14. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 15.Kerdsin A., Deekae S., Chayangsu S., Hatrongjit R., Chopjitt P., Takeuchi D., Akeda Y., Tomono K., Hamada S. Genomic characterization of an emerging bla(KPC-2) carrying Enterobacteriaceae clinical isolates in Thailand. Sci. Rep. 2019;9 doi: 10.1038/s41598-019-55008-x. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 16.Galvin S., Bergin N., Hennessy R., Hanahoe B., Murphy A.W., Cormican M., Vellinga A. Exploratory spatial mapping of the occurrence of antimicrobial resistance in E. coli in the community. Antibiotics (Basel) 2013;2:328–338. doi: 10.3390/antibiotics2030328. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 17.Atxaerandio-Landa A., Arrieta-Gisasola A., Laorden L., Bikandi J., Garaizar J., Martinez-Malaxetxebarria I., Martinez-Ballesteros I. A practical bioinformatics workflow for routine analysis of bacterial WGS data. Microorganisms. 2022;10:2364. doi: 10.3390/microorganisms10122364. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 18.Taxt A.M., Avershina E., Frye S.A., Naseer U., Ahmad R. Rapid identification of pathogens, antibiotic resistance genes and plasmids in blood cultures by nanopore sequencing. Sci. Rep. 2020;10:7622. doi: 10.1038/s41598-020-64616-x. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 19.Wrenn D.C., Drown D.M. Nanopore adaptive sampling enriches for antimicrobial resistance genes in microbial communities. GigaByte. 2023;2023 doi: 10.46471/gigabyte.103. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 20.Sauerborn E., Corredor N.C., Reska T., Perlas A., Vargas da Fonseca Atum S., Goldman N., Wantia N., Prazeres da Costa C., Foster-Nyarko E., Urban L. Detection of hidden antibiotic resistance through real-time genomics. Nat. Commun. 2024;15:5494. doi: 10.1038/s41467-024-49851-4. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 21.MacFadden D.R., Melano R.G., Coburn B., Tijet N., Hanage W.P., Daneman N. Comparing Patient Risk Factor-Sequence Type-and Resistance Locus Identification-Based Approaches for Predicting Antibiotic Resistance in Escherichia coli Bloodstream Infections. J. Clin. Microbiol. 2019;57 doi: 10.1128/JCM.01780-18. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 22.Brinda K., Callendrello A., Ma K.C., MacFadden D.R., Charalampous T., Lee R.S., Cowley L., Wadsworth C.B., Grad Y.H., Kucherov G., et al. Rapid inference of antibiotic resistance and susceptibility by genomic neighbour typing. Nat. Microbiol. 2020;5:455–464. doi: 10.1038/s41564-019-0656-6. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 23.MacFadden D.R., Coburn B., Brinda K., Corbeil A., Daneman N., Fisman D., Lee R.S., Lipsitch M., McGeer A., Melano R.G., et al. Using Genetic Distance from Archived Samples for the Prediction of Antibiotic Resistance in Escherichia coli. Antimicrob. Agents Chemother. 2020;64 doi: 10.1128/AAC.02417-19. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 24.Kawang K., Thongsuk P., Cholsaktrakool P., Anuntakarun S., Kunadirek P., Chuaypen N., Nilgate S., Chatsuwan T., Nookaew I., Sangpiromapichai N., Nilaratanakul V. Sensitivity and specificity of Nanopore sequencing for detecting carbapenem and 3rd-generation cephalosporin-resistant Enterobacteriaceae in urine samples: Real-time simulation with public antimicrobial resistance gene database. Heliyon. 2024;10 doi: 10.1016/j.heliyon.2024.e35816. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 25.Wick R.R., Judd L.M., Holt K.E. Performance of neural network basecalling tools for Oxford Nanopore sequencing. Genome Biol. 2019;20:129. doi: 10.1186/s13059-019-1727-y. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 26.Wick R.R., Judd L.M., Holt K.E. Assembling the perfect bacterial genome using Oxford Nanopore and Illumina sequencing. PLoS Comput. Biol. 2023;19 doi: 10.1371/journal.pcbi.1010905. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 27.De Coster W., D'Hert S., Schultz D.T., Cruts M., Van Broeckhoven C. NanoPack: visualizing and processing long-read sequencing data. Bioinformatics. 2018;34:2666–2669. doi: 10.1093/bioinformatics/bty149. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 28.Parks D.H., Imelfort M., Skennerton C.T., Hugenholtz P., Tyson G.W. CheckM: assessing the quality of microbial genomes recovered from isolates, single cells, and metagenomes. Genome Res. 2015;25:1043–1055. doi: 10.1101/gr.186072.114. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 29.Carattoli A., Zankari E., García-Fernández A., Voldby Larsen M., Lund O., Villa L., Møller Aarestrup F., Hasman H. In silico detection and typing of plasmids using PlasmidFinder and plasmid multilocus sequence typing. Antimicrob. Agents Chemother. 2014;58:3895–3903. doi: 10.1128/AAC.02412-14. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 30.Jacoby G.A. AmpC beta-lactamases. Clin. Microbiol. Rev. 2009;22:161–182. doi: 10.1128/CMR.00036-08. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 31.Castanheira M., Simner P.J., Bradford P.A. Extended-spectrum beta-lactamases: an update on their characteristics, epidemiology and detection. JAC. Antimicrob. Resist. 2021;3 doi: 10.1093/jacamr/dlab092. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 32.Hamzaoui Z., Ocampo-Sosa A., Fernandez Martinez M., Landolsi S., Ferjani S., Maamar E., Saidani M., Slim A., Martinez-Martinez L., Boutiba-Ben Boubaker I. Role of association of OmpK35 and OmpK36 alteration and bla(ESBL) and/or bla(AmpC) genes in conferring carbapenem resistance among non-carbapenemase-producing Klebsiella pneumoniae. Int. J. Antimicrob. Agents. 2018;52:898–905. doi: 10.1016/j.ijantimicag.2018.03.020. [DOI] [PubMed] [Google Scholar]
- 33.Lanfear R., Schalamun M., Kainer D., Wang W., Schwessinger B. MinIONQC: fast and simple quality control for MinION sequencing data. Bioinformatics. 2019;35:523–525. doi: 10.1093/bioinformatics/bty654. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 34.Leger A., Leonardi T. pycoQC, interactive quality control for Oxford Nanopore sequencing. J. Open Source Softw. 2019;4:1236. doi: 10.21105/joss.01236. [DOI] [Google Scholar]
- 35.Andrews, S. (2015). FastQC: A Quality Control Tool for High Throughput Sequence Data [Online].
- 36.Koren S., Walenz B.P., Berlin K., Miller J.R., Bergman N.H., Phillippy A.M. Canu: scalable and accurate long-read assembly via adaptive k-mer weighting and repeat separation. Genome Res. 2017;27:722–736. doi: 10.1101/gr.215087.116. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 37.Kolmogorov M., Yuan J., Lin Y., Pevzner P.A. Assembly of long, error-prone reads using repeat graphs. Nat. Biotechnol. 2019;37:540–546. doi: 10.1038/s41587-019-0072-8. [DOI] [PubMed] [Google Scholar]
- 38.Chen Y., Nie F., Xie S.Q., Zheng Y.F., Dai Q., Bray T., Wang Y.X., Xing J.F., Huang Z.J., Wang D.P., et al. Efficient assembly of Nanopore reads via highly accurate and intact error correction. Nat. Commun. 2021;12:60. doi: 10.1038/s41467-020-20236-7. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 39.Shafin K., Pesout T., Lorig-Roach R., Haukness M., Olsen H.E., Bosworth C., Armstrong J., Tigyi K., Maurer N., Koren S., et al. Nanopore sequencing and the Shasta toolkit enable efficient de novo assembly of eleven human genomes. Nat. Biotechnol. 2020;38:1044–1053. doi: 10.1038/s41587-020-0503-6. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 40.Vaser R., Šikić M. Time- and memory-efficient genome assembly with Raven. Nat. Comput. Sci. 2021;1:332–336. doi: 10.1038/s43588-021-00073-4. [DOI] [PubMed] [Google Scholar]
- 41.Vaser R., Sović I., Nagarajan N., Šikić M. Fast and accurate de novo genome assembly from long uncorrected reads. Genome Res. 2017;27:737–746. doi: 10.1101/gr.214270.116. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 42.Wick R.R., Judd L.M., Gorrie C.L., Holt K.E. Unicycler: resolving bacterial genome assemblies from short and long sequencing reads. PLoS Comput. Biol. 2017;13 doi: 10.1371/journal.pcbi.1005595. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 43.Wick R.R., Schultz M.B., Zobel J., Holt K.E. Bandage: interactive visualization of de novo genome assemblies. Bioinformatics. 2015;31:3350–3352. doi: 10.1093/bioinformatics/btv383. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 44.Manni M., Berkeley M.R., Seppey M., Simão F.A., Zdobnov E.M. BUSCO update: novel and streamlined workflows along with broader and deeper phylogenetic coverage for scoring of eukaryotic, prokaryotic, and viral genomes. Mol. Biol. Evol. 2021;38:4647–4654. doi: 10.1093/molbev/msab199. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 45.Wood D.E., Lu J., Langmead B. Improved metagenomic analysis with Kraken 2. Genome Biol. 2019;20:257. doi: 10.1186/s13059-019-1891-0. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 46.Li H. New strategies to improve Minimap2 alignment accuracy. Bioinformatics. 2021;37:4572–4574. doi: 10.1093/bioinformatics/btab705. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 47.Danecek P., Bonfield J.K., Liddle J., Marshall J., Ohan V., Pollard M.O., Whitwham A., Keane T., McCarthy S.A., Davies R.M., Li H. Twelve years of SAMtools and BCFtools. GigaScience. 2021;10:giab008. doi: 10.1093/gigascience/giab008. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 48.Seemann T. Prokka: rapid prokaryotic genome annotation. Bioinformatics. 2014;30:2068–2069. doi: 10.1093/bioinformatics/btu153. [DOI] [PubMed] [Google Scholar]
- 49.Emms D.M., Kelly S. OrthoFinder: phylogenetic orthology inference for comparative genomics. Genome Biol. 2019;20:238. doi: 10.1186/s13059-019-1832-y. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 50.Bharat A., Petkau A., Avery B.P., Chen J.C., Folster J.P., Carson C.A., Kearney A., Nadon C., Mabon P., Thiessen J., et al. Correlation between Phenotypic and In Silico Detection of Antimicrobial Resistance in Salmonella enterica in Canada Using Staramr. Microorganisms. 2022;10 doi: 10.3390/microorganisms10020292. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 51.Letunic I., Bork P. Interactive Tree of Life (iTOL) v6: recent updates to the phylogenetic tree display and annotation tool. Nucleic Acids Res. 2024;52:W78–W82. doi: 10.1093/nar/gkae268. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 52.Telatin A., Fariselli P., Birolo G. SeqFu: a suite of utilities for the robust and reproducible manipulation of sequence files. Bioengineering. 2021;8:59. doi: 10.3390/bioengineering8050059. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 53.Altschul S.F., Gish W., Miller W., Myers E.W., Lipman D.J. Basic local alignment search tool. J. Mol. Biol. 1990;215:403–410. doi: 10.1016/s0022-2836(05)80360-2. [DOI] [PubMed] [Google Scholar]
- 54.CLSI . 30th ed. CLSI supplement M100; 2020. Performance Standards for Antimicrobial Susceptibility Testing. [Google Scholar]
- 55.Hawass N.E. Comparing the sensitivities and specificities of two diagnostic procedures performed on the same group of patients. Br. J. Radiol. 1997;70:360–366. doi: 10.1259/bjr.70.832.9166071. [DOI] [PubMed] [Google Scholar]
- 56.McNEMAR Q. Note on the sampling error of the difference between correlated proportions or percentages. Psychometrika. 1947;12:153–157. doi: 10.1007/BF02295996. [DOI] [PubMed] [Google Scholar]
- 57.Edwards A.L. Note on the correction for continuity in testing the significance of the difference between correlated proportions. Psychometrika. 1948;13:185–187. doi: 10.1007/BF02289261. [DOI] [PubMed] [Google Scholar]
- 58.Stefanescu C., Berger V.W., Hershberger S.L. Yates’ Correction. 2005. [DOI]
- 59.Roldán-Nofuentes J.A., Sidaty-Regad S.B. Recommended methods to compare the accuracy of two binary diagnostic tests subject to a paired design. J. Stat. Comput. Simulat. 2019;89:2621–2644. doi: 10.1080/00949655.2019.1628234. [DOI] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Data Availability Statement
-
•
Whole genome assemblies of Klebsiella (local database) have been deposited in BioProject PRJNA1169829 (https://www.ncbi.nlm.nih.gov/datasets/genome/?bioproject=PRJNA1169829). Metagenomic sequencing data of urine samples (query) have been deposited in BioProject PRJNA1171213 (https://www.ncbi.nlm.nih.gov/sra/?term=PRJNA1171213). All accession numbers are listed in the key resources table.
-
•
No original code was developed in this study. Bioinformatics tools and corresponding command lines are listed in Table S29.
-
•
Additional details needed to reanalyze the data can be obtained from the lead contact upon request.






