openpathogen About

What is openpathogen, and how does it work?

openpathogen is an open-source platform for screening sequencing reads for antimicrobial resistance genes, resistance mutations, and virulence genes.

It runs KMA v1.5.1 for read mapping, fastp 0.22 for quality control, and (if you turn it on) Deacon 0.18.0 to remove human reads. All three tools are compiled from source to WebAssembly.

Your data is analysed on your own computer and is never uploaded anywhere. This makes it safe to use with clinical or unpublished data.

There is no server and no account to create. The only things downloaded to your browser are the app, the WebAssembly tools, and the databases. More details are in the privacy section.

Databases are downloaded once, verified against pinned SHA-256 hashes, and saved in your browser. Repeat runs can start right away. The first run with a large database may take a moment while it downloads from Zenodo.

Privacy

Nothing you load leaves your computer. A website still makes a few network requests, of course. Here is the full list, so you can check it against the source code or your browser's network inspector.

Your sequencing files (FASTQ)
Never uploaded and never saved to disk. Files are loaded into browser memory, processed with WebAssembly, and cleared when you close the tab. There are no cookies and no user accounts.
Page views (Cloudflare, the host)
The site is hosted on Cloudflare, which sees page requests and your IP address like any web host. Cloudflare may add scripts under /cdn-cgi/ for bot protection and its Web Analytics beacon from cloudflareinsights.com when enabled. Neither uses cookies or cross-site tracking, and there is no other analytics or tracking code in the app. The site also sends a Content-Security-Policy header that limits outgoing connections to this site, Zenodo, EMBL-EBI, and the Cloudflare beacon. You can inspect this header in your browser or check _headers in the source code.
Databases, CABBAGE data, and tools (this site or Zenodo)
The KMA, fastp, and Deacon WebAssembly tools come with the page. The ResFinder, CARD, and VFDB indexes and the CABBAGE data download once from this site or Zenodo and are cached locally. PointFinder files for your species (under 1 MB) download from this site the first time you enter a supported species. Deacon's human index (239 MB) downloads from this site the first time you check Remove human reads. Every downloaded file is checked against a pinned SHA-256 hash before use, and any file that doesn't match is rejected. After your first visit, a service worker caches the page and tools so openpathogen can also work offline with any databases you already downloaded.
Fetching a public run (only when you request one)
If you fetch a run by accession or load the example, the accession number and your IP address are sent to EMBL-EBI (ENA). ENA will know which public run you requested. Downloaded reads are cached in your browser just like the databases.

To delete all cached data (database indexes, the human index, CABBAGE data, the example, and any fetched runs), click Clear cached data under the database list on the main page.

Getting started

  1. Add your sequencing reads (.fastq or .fastq.gz, up to 1 GB per file) by dropping them on the page or using the file picker. For paired-end reads, you can select both files together and openpathogen matches R1 and R2 by filename. The read type is detected automatically (paired-end for two files, or Nanopore vs. single-end based on read length), and you can change it if needed. You can also click Try an example (MRSA) to load S. aureus USA300_TCH1516 (SRR10341524, 48 MB), or fetch any public run by its SRA/ENA accession (SRR, ERR, or DRR) with Fetch reads. For public runs, the species and read type are filled in from ENA, and any third unpaired file is skipped.
  2. Choose the databases you want to screen against. ResFinder and PointFinder are checked by default, and you can run any combination of ResFinder, CARD, and VFDB at once. Turn on fastp if you want adapter trimming and quality filtering (you can open its settings to adjust the defaults). If your sample contains human DNA, such as a swab or clinical metagenome, check Remove human reads.
  3. Enter the species if you know it. This is optional, and lets openpathogen run PointFinder (for supported species) and show CABBAGE resistance rates. You can also enter or change the species later on the results page to view CABBAGE rates.
  4. Click Run. You can follow progress in the Logs panel below, which also shows the exact KMA, fastp, and Deacon commands used.

Databases

ResFinder 2.6.0
Acquired antimicrobial resistance genes (CGE). Apache License 2.0.
CARD 4.0.1
Comprehensive Antibiotic Resistance Database, protein homolog model. Free for non-commercial research and academic use under CARD's terms; commercial use requires a licence from McMaster University.
VFDB
Virulence Factor Database, set A (core virulence factors). CC BY-NC 4.0 (non-commercial use only; contact the VFDB team for commercial use).
PointFinder 4.1.1
Chromosomal resistance mutations and their reference genes for ten species and genera: Campylobacter, E. coli (and Shigella), Enterococcus faecalis, Enterococcus faecium, Helicobacter pylori, the Klebsiella pneumoniae complex, Mycobacterium tuberculosis, Neisseria gonorrhoeae, Salmonella, and Staphylococcus aureus (CGE). Apache License 2.0. Two Klebsiella reference genes are replaced (see the notes below).

The database indexes downloaded by openpathogen are built from these sources and carry the same licence terms. See THIRD_PARTY_NOTICES for the full list of licences.

Human read removal

Reads from swabs, tissue, and other clinical samples often contain human DNA. If you check Remove human reads, Deacon removes reads that match the human pangenome before screening the databases. It runs locally on your device, right after fastp if fastp is enabled. The report shows how many reads were removed, and you can download the remaining reads from the Human reads card below the report.

Deacon compares short DNA sequences (minimizers) from each read against its panhuman-1 index, which is built from the first release of the Human Pangenome Reference Consortium, CHM13, and GRCh38, with sequences shared by bacteria and viruses removed. A read is marked as human if at least 2 of its minimizers (and at least 1% of them) match the index. For paired-end data, both reads in a pair are checked and removed together. openpathogen uses the compact index (k=31, w=61), a 239 MB filter that downloads once.

In testing, the browser build matched command-line Deacon exactly. It removed 98.5% of reads from a human genome run, 14.7% from a vaginal swab metagenome, and 26 of 515,164 reads from the MRSA example isolate. Full test details are in deacon/WASM_BUILD.md. Because Deacon requires at least two matching minimizers per read or pair, very short single-end reads are harder to catch. On a recent laptop, it filters around 15 MB of gzipped reads per second.

Keep in mind that Deacon removes most human reads, not 100% of them. Filtering alone does not make a sample anonymous, so check your local rules before sharing filtered reads.

The report and CABBAGE rates

When an analysis finishes, you see a summary report first. Resistance genes are grouped by drug class, and each gene lists the antibiotics it affects based on ResFinder's curated phenotype table. Beta-lactams are grouped the way clinicians use them (penicillins, cephalosporins by generation, and carbapenems), with common gene types labelled as ESBL, AmpC, carbapenemase, or methicillin resistance. CARD hits are matched to ResFinder genes by name, and CARD hits without a ResFinder drug class (such as efflux pumps) are listed in their own section. The report also lists drug classes where no acquired resistance gene was found, followed by virulence factors grouped by VFDB category. Click Print / save PDF to keep a copy.

A few special categories are kept separate from acquired resistance genes. If you enter a species, genes that ResFinder marks as intrinsic to that species (for example, blaOXA-51 in Acinetobacter baumannii, which only causes carbapenem resistance when ISAba1 is upstream) appear in a separate section with ResFinder's notes. Partial genes (hits that pass the identity cutoff but fall below the coverage cutoff, or have an early stop codon or frameshift) are also listed separately, showing which part is missing when depth is high enough. Called genes with read-level issues get a check alignment tag, and each gene shows how close it is to the nearest database allele (see the notes below for details).

If PointFinder supports your species, detected chromosomal mutations appear right below the resistance genes, along with their antibiotics, PointFinder notes, and CABBAGE rates. Mutations that only cause resistance together with another mutation (such as certain parC changes that also require a gyrA change) are listed separately if the partner mutation is absent, as are mutations present in only a fraction of reads. If a different amino acid change is found at a PointFinder codon (for example, gyrA S83I in K. pneumoniae, where PointFinder lists S83L and S83F), it is shown with any available CABBAGE data, but not counted as a known resistance call.

PointFinder marks its entire Klebsiella table as under development, and many of its porin and acrR entries are normal lineage differences rather than resistance mutations. Because of this, Klebsiella entries are only counted as resistance calls if NCBI's AMRFinderPlus also curates them; the rest are listed as use with caution. At the end of the section, the report shows how many listed positions were covered by reads, since an uncovered position is not the same as a wild-type call. Mutations outside PointFinder's table and expression changes are not detected, so a clean report does not rule out chromosomal resistance.

When a species is entered, each gene and mutation also shows how often isolates of that species carrying it tested resistant in CABBAGE (Comprehensive Assessment of Bacterial-Based AMR prediction from Genotypes, Dickens et al., NAR 2026). CABBAGE links 170,750 sequenced isolates to 1.7 million lab susceptibility tests, using AMRFinderPlus genotypes and 2025 CLSI and EUCAST breakpoints. For example: In CABBAGE, S. aureus with mecA tested resistant to methicillin in 97.7% of 1,792 isolates.

Resistance rates are only shown for antibiotics the gene is known to affect (from ResFinder and CABBAGE), because rates for unrelated drugs usually reflect other genes carried by the same bacterial lineages. Rates are only shown when at least 20 isolates were tested, alongside the overall resistance rate across all tested isolates of that species for context. You can switch between CLSI-first and EUCAST-first 2025 breakpoints in the report header. CABBAGE covers 28 species. For public runs and the example, the species is filled in automatically; for your own files, you can enter it on either the input page or the results page.

Remember that CABBAGE rates describe past isolates, not your sample, and include the effects of any other genes those isolates carried. They are not a substitute for lab susceptibility testing, so always confirm results that guide treatment in the laboratory. You can browse the full dataset on the EMBL-EBI AMR portal. openpathogen computes everything locally from a cached snapshot under 1 MB, and includes the table in the results ZIP as cabbage_predictions.csv.

hAMRonization

You can export all called genes and mutations in the hAMRonization format from the Public Health Alliance for Genomic Epidemiology (PHA4GE). Click hAMRonization (TSV) on the results page to download it directly, or grab both the TSV and JSON versions from the results ZIP. These files work with standard tools like hamronize summarize to combine results from different AMR callers, and were verified to match the output of hAMRonization 1.3.1.

The export contains one row per called gene and database (without merging ResFinder and CARD hits the way the summary report does). Partial genes and hits below the thresholds remain in the raw KMA files. When reads were split across two sister alleles and merged into one gene call, it is written as a single row for the closest allele using the combined read stats. input_file_name uses the sample name, and the software name is openpathogen with its build number. Coverage is template coverage and identity is alignment identity (matching the gene tables, sliders, and hAMRonization's KMA parser). Drug classes, antibiotics, and resistance mechanisms come from ResFinder's phenotype table. Because VFDB does not use version numbers, its release date (2026-05-01) is used instead.

PointFinder mutations follow hAMRonization's ResFinder convention: one row per gene with its mutations grouped together (such as p.S83L, p.D87N), labelled as protein_variant_detected, or nucleotide_variant_detected for rRNA and promoter changes (such as r.2058A>G or n.-42C>T), along with codon changes and PointFinder notes. Only counted resistance mutations are included; minority-read calls and partner-dependent mutations without their partner are left out.

Notes

  • KMA runs with ResFinder's read-mapping settings (-e 1.0 -apm p -cge -1t1) and its own default -ID 1 so every gene with mapped reads is kept. Moving the sliders applies cutoffs in the browser without re-running KMA. Identity is measured over the aligned part of the gene (Query_Identity) and coverage over its full length (Template_Coverage). The defaults (90% identity and 90% coverage) match ResFinder's standard calls. Instead of hiding incomplete matches, openpathogen lists them as partial genes if they pass identity but miss coverage (or if only part of the gene aligns cleanly). Lower the identity slider to find more distant variants, or lower coverage to call partly covered genes (with short reads, an intact gene usually only drops below 90% coverage at under 2× depth, so most 60–90% coverage hits are genuinely truncated). Both sliders apply to all selected databases.
  • openpathogen inspects KMA's per-base depth matrix and alignment (included in the ZIP) for every hit. If a stretch of a gene has zero reads, openpathogen checks whether that could happen by chance at the gene's depth. At 60× depth, missing 238 bases is not random, so that part of the gene is missing or too divergent to align, and the report notes which region is absent. At 3× depth, gaps like that are normal with thin coverage, so the gene may still be intact.
  • If your sample's allele is not in the database, KMA sometimes splits its reads between two closely related alleles, making each look partly covered. openpathogen checks the positions where those two alleles differ: if the reads only support one base at each site, they come from a single gene, so openpathogen combines them into one call and names the closest allele. If both bases are present, both alleles are kept and cross-referenced. Stray reads that spill onto related alleles in redundant databases are folded back into the main gene instead of creating duplicates. Related alleles are matched by sequence rather than name, so differently named entries for the same locus (like Serratia AmpC under blaSRT-2 and blaSST-1, or aadA1 inside ant(3'')-Ia) are also handled properly.
  • Each gene's consensus sequence is translated in frame. If most reads show a premature stop codon or frameshift, the gene is moved to partial genes (unless an immediately following start codon still produces the full protein). On Nanopore reads, where single-base indels in homopolymers are common errors, this is shown as a warning instead. When a gene is not a 100% match to the database, the report notes the closest allele and how many differences there are. Hits with much lower depth than the rest of the sample also get a note, since they may reflect a subpopulation or contamination (hits below 1/20th of the other genes' depth are tagged check alignment).
  • A called gene gets tagged check alignment in the report and tables when the underlying reads show a potential issue: an unexpected gap with zero reads, a region covering at least 10% of the gene that aligns below 85% identity, a stop codon in only a subset of reads, or a short region where reads disagree at many sites (such as two partial copies meeting). The low-identity check catches truncated genes in long reads, where flanking DNA can align poorly across a missing region while keeping overall identity above 90%. Click the gene to inspect the alignment in the gene viewer.
  • In Nanopore mode, KMA runs with ResFinder's Nanopore flags (-bcNano -mp 20 -ont -md 5), enabling indel-aware base calling, the long-read preset, and a minimum depth of 5. Without these flags, individual long reads often scatter across different alleles of the same gene. In Nanopore mode, fastp only computes quality statistics and does not trim or filter reads.
  • For PointFinder, reads are mapped to the species' reference genes using the same KMA settings. Each known resistance position is checked if at least 5 reads cover it (10 for Nanopore) and most reads agree, provided over 80% of the gene matches (as in ResFinder). Because rRNA genes occur in multiple nearly identical copies (such as seven 23S copies in E. coli), reads across copies are combined, and mutations present in only some reads show their read fraction. Insertions and deletions are matched by the resulting sequence so repeat shifts do not cause missed calls. Uncovered positions are reported as not read (unlike ResFinder, which reports them as deletions). Every checked position is saved in pointfinder_positions.tsv inside the ZIP.
  • Every PointFinder entry is validated against its reference sequence when building the indexes, fixing a template name typo and three positions written in E. coli numbering. In PointFinder's original files, the Klebsiella gyrA and parC sequences are actually E. coli genes under K. pneumoniae accessions: K. pneumoniae reads only match them at ~65% identity (below the 80% cutoff), causing common quinolone mutations to be missed. openpathogen replaces those two templates with the genes from the K. pneumoniae type strain (ATCC 13883), which match at every listed resistance position. Because K. oxytoca and K. aerogenes only share 79–89% identity with those genes, they are not screened with the Klebsiella table. Where a gene has separate templates per species (like Campylobacter gyrA), openpathogen uses whichever template the reads match.
  • These calling rules were tested on 34 sequenced isolates across 32 species with NCBI genome assemblies (mostly complete), using reads subsampled to 40× depth. openpathogen called 119 of the 120 intact genes (missing only a second, nearly identical SHV allele that short reads cannot separate), named the exact allele right for 114 of 116, and cut duplicate calls from 33 (raw KMA) down to 1. Almost all extra calls absent from the assemblies were high-depth (60–860×) plasmid genes omitted from the assemblies; the two true contamination hits (under 2× depth) were flagged in the report. PointFinder calls matched NCBI AMRFinderPlus on the same genomes for all mutations included in PointFinder's tables.
  • Click any gene name in the report or tables to open its coverage plot, consensus sequence, alignment, and variant list.
  • Click Print / save PDF to print the report with all gene tables expanded, then choose "Save as PDF" in your browser's print dialog.
  • For each database, the download ZIP includes .res, .aln, .fsa, .frag.gz, .mat.gz, .vcf.gz, and .mapstat files. It also contains the hAMRonization files (hamronized_report.tsv and .json), PointFinder results (pointfinder_results.tsv and pointfinder_positions.tsv), fastp reports, Deacon's deacon_summary.json, the CABBAGE CSV table, and the run log.
  • openpathogen works in recent versions of Chrome, Firefox, Edge, and Safari on desktop and mobile (any browser with SharedArrayBuffer support). Chrome, Edge, and Firefox use a 64-bit WebAssembly build that can use over 4 GB of memory. Safari and all browsers on iPhone and iPad use a 32-bit build that gives identical results, but has a 4 GB memory cap (and less on phones). On mobile devices, stick to smaller files (such as the example or a few hundred MB) and keep the tab open with the screen on until the run finishes.

Citation

A short paper is in preparation. In the meantime, please cite KMA, fastp, CABBAGE, Deacon (if you removed human reads), PointFinder (if you checked point mutations), and the databases you used:

Clausen PTLC, Aarestrup FM, Lund O. Rapid and precise alignment of raw reads against redundant databases with KMA. BMC Bioinformatics. 2018;19:307. doi:10.1186/s12859-018-2336-6

Chen S, Zhou Y, Chen Y, Gu J. fastp: an ultra-fast all-in-one FASTQ preprocessor. Bioinformatics. 2018;34(17):i884–i890. doi:10.1093/bioinformatics/bty560

Dickens E, et al. A comprehensive AMR genotype–phenotype database (CABBAGE). Nucleic Acids Research. 2026. doi:10.1093/nar/gkag780. Data CC-BY 4.0.

Constantinides B, Lees J, Crook DW. Deacon: fast sequence filtering and contaminant depletion. bioRxiv. 2025. doi:10.1101/2025.06.09.658732

Zankari E, Allesøe R, Joensen KG, Cavaco LM, Lund O, Aarestrup FM. PointFinder: a novel web tool for WGS-based detection of antimicrobial resistance associated with chromosomal point mutations in bacterial pathogens. J Antimicrob Chemother. 2017;72(10):2764–2768. doi:10.1093/jac/dkx217

Database citations (ResFinder, CARD, VFDB) and component licenses are listed in THIRD_PARTY_NOTICES.