code

Open-source tools from the Treangen Lab

Tools and source code

The lab’s open-source tools, grouped by main programming language. Hover over a tool, or scroll to it, to watch it run and see its output.

Language breakdown is loading.

    C

    onsight

    Pathogen detection directly from nanopore raw signal, on CPU, during the run.

    • Pathogen Genomics and Wastewater Surveillance
    • Biosecurity and Synthetic DNA Screening
    • Scalable Algorithms and AI for Microbial Genomics
    • Led by Eddy Huang
    $ onsight --pore r10 --panel-dir example/panel -o example_out/ -t 4 example/reads.pod5
    ✓ done
    $ cut -f 1,2,6,7 example_out/target_calls.tsv | grep -e entry -e neighbor_check
    entry        rule                        called  first_call_reads
    S. aureus    read_pvalue+neighbor_check  1       4
    E. faecalis  read_pvalue+neighbor_check  1       9
    
    Run onsight yourself

    These run on your own computer. Nothing on this page runs the tool.

    1. Set up
      git clone https://github.com/treangenlab/onsight.git && cd onsight
      conda env create -f environment.yml && conda activate onsight
      make -j 8 && make install
    2. Run the example
      onsight --pore r10 --panel-dir example/panel -o example_out/ -t 4 example/reads.pod5
      cut -f 1,2,6,7 example_out/target_calls.tsv | grep -e entry -e neighbor_check
    3. Compare Your output should look like the replay above.

    The example reads and panel are in the repository.

    Drawn from a run of onsight on its example data (160 simulated reads, two-target panel): the signal traces are the reads' raw signal and the calls are the ones onsight wrote. The full 24-target panel covers the ESKAPE pathogens.

    C++

    Gingr2

    Interactive viewer for genome alignments and phylogenetic trees, part of the Harvest suite.

    • Scalable Algorithms and AI for Microbial Genomics
    • Pathogen Genomics and Wastewater Surveillance
    • Led by Michael Nute

    The repository card and the recording show the original Gingr.

    $ parsnp -r examples/mers_virus/ref/England1.fna -d examples/mers_virus/genomes/*.fna -o examples-out
    ✓ done
    $ gingr examples-out/parsnp.ggr
    (Gingr opens the alignment, variants and tree in a window)
    
    Run Gingr2 yourself

    These run on your own computer. Nothing on this page runs the tool.

    1. Set up
      conda install -c bioconda parsnp
      git clone https://github.com/marbl/parsnp.git && cd parsnp
    2. Run the example
      parsnp -r examples/mers_virus/ref/England1.fna -d examples/mers_virus/genomes/*.fna -o examples-out
      gingr examples-out/parsnp.ggr
    3. Compare Your output should look like the replay above.

    Gingr is a desktop application; get it from the Gingr repository. The example genomes are in the Parsnp repository.

    Screen recording of Gingr on Parsnp's core-genome alignment of 47 MERS-CoV genomes (parsnp.ggr from the Harvest documentation), zooming from the whole genome to single bases.

    KOMB

    K-core based characterization of copy number variation in microbiomes, straight from reads.

    • Microbiome Profiling and Metagenomics
    • Scalable Algorithms and AI for Microbial Genomics
    • Led by Advait Balaji
    $ KOMB.py -i reads1.fastq -j reads2.fastq -k 51
    ✓ done
    $ head -4 output/kcore.tsv
    #VID  Name    Coreness  Degree
    0     43505   2         2
    1     104790  3         6
    2     157574  3         3
    $ head -3 output/CoreA_anomaly.txt
    0  0.060455
    1  0.974224
    2  0.178875
    
    Run KOMB yourself

    These run on your own computer. Nothing on this page runs the tool.

    1. Set up
      git clone https://github.com/treangenlab/komb.git && cd komb
    2. Run the example
      KOMB.py -i reads1.fastq -j reads2.fastq -k 51
      head -4 output/kcore.tsv
      head -3 output/CoreA_anomaly.txt
    3. Compare Your output should look like the replay above.

    KOMB is built from source and needs ggcat, bwa-mem2 and igraph; the README has the steps. Use your own paired reads in place of reads1.fastq and reads2.fastq.

    Two plots from a KOMB run. Left: the KOMB profile, the number of unitigs in each k-core shell, with most unitigs in low shells and a few dense shells out to 700. Right: unitig degree against coreness, with 12,261 anomalous unitigs highlighted below the main trend.

    From a KOMB run on the first 600,000 read pairs of the Shakya et al. mock community (SRR606249). Left: the KOMB profile. Right: anomalous unitigs, those with a CORE-A score above Q3 + 1.5 IQR.

    Mash

    Fast genome and metagenome distance estimation using MinHash.

    • Scalable Algorithms and AI for Microbial Genomics
    • Microbiome Profiling and Metagenomics
    • Pathogen Genomics and Wastewater Surveillance
    • Led by Brian Ondov and Todd Treangen
    $ mash sketch -o genomes genome1.fna genome2.fna genome3.fna
    ✓ done
    $ mash screen genomes.msh reads1.fastq reads2.fastq > screen.tab
    ✓ done
    $ cut -f1-5 screen.tab
    0.861792	44/1000	1	5.00742e-229	genome1.fna
    0.853596	36/1000	1	1.7048e-184	genome2.fna
    0.861792	44/1000	1	5.00742e-229	genome3.fna
    
    Run Mash yourself

    These run on your own computer. Nothing on this page runs the tool.

    1. Set up
      conda install -c bioconda mash
      git clone https://github.com/marbl/Mash.git && cd Mash/test
    2. Run the example
      mash sketch -o genomes genome1.fna genome2.fna genome3.fna
      mash screen genomes.msh reads1.fastq reads2.fastq > screen.tab
      cut -f1-5 screen.tab
    3. Compare Your output should look like the replay above.

    The three genomes and two read files are the test data in the Mash repository.

    Parsnp2

    Rapid core-genome alignment and SNP detection for thousands of microbial genomes.

    • Pathogen Genomics and Wastewater Surveillance
    • Scalable Algorithms and AI for Microbial Genomics
    • Led by Bryce Kille

    Open parsnp.ggr in Gingr to browse the alignment and tree: see the Gingr2 recording.

    $ parsnp -r examples/mers_virus/ref/England1.fna -d examples/mers_virus/genomes/*.fna -o examples-out
    ✓ done
    Aligned 47 genomes in 2.93 seconds
    $ ls examples-out
    England1.fna.ref  config  log  parsnp.ggr  parsnp.maf
    parsnp.snps.mblocks  parsnp.tree  parsnp.xmfa  parsnpAligner.ini
    $ head -c 96 examples-out/parsnp.tree
    (((Riyadh_4_2013.fna:0.01917180179598590092,(Riyadh_3_2013.fna:0.03704946230388730249,(Wadi-Ad-D
    
    Run Parsnp2 yourself

    These run on your own computer. Nothing on this page runs the tool.

    1. Set up
      conda install -c bioconda parsnp
      git clone https://github.com/marbl/parsnp.git && cd parsnp
    2. Run the example
      parsnp -r examples/mers_virus/ref/England1.fna -d examples/mers_virus/genomes/*.fna -o examples-out
      ls examples-out
      head -c 96 examples-out/parsnp.tree
    3. Compare Your output should look like the replay above.

    The example genomes are in the repository.

    Phylogenetic tree of 47 MERS-CoV genomes from Parsnp, with the Al-Hasa 2013 genomes forming one tight cluster and camel-derived genomes another.

    The tree Parsnp wrote for its MERS-CoV example (parsnp.tree), drawn with Biopython.

    Seqwin

    Ultrafast identification of signature sequences in microbial genomes.

    • Pathogen Genomics and Wastewater Surveillance
    • Biosecurity and Synthetic DNA Screening
    • Scalable Algorithms and AI for Microbial Genomics
    • Led by Michael X. Wang
    $ seqwin --tar-paths targets.txt --neg-paths non-targets.txt
    INFO | Running Seqwin v0.5.0
    INFO | Loaded 72 target assemblies and 99 non-target assemblies, 171 in total.
    INFO | Building minimizer graph from 171 assemblies...
    INFO |  - Found 8346500 minimizers
    INFO |  - Found 469602 nodes (unique minimizers)
    $ head -4 seqwin-out/signatures.csv | cut -d, -f1,2
    fasta_header,length
    0-VXJV01000007.1-292041:292440,399
    0-VXJV01000007.1-45226:45439,213
    0-VXJV01000015.1-52097:52442,345
    
    Run Seqwin yourself

    These run on your own computer. Nothing on this page runs the tool.

    1. Set up
      conda create -n seqwin seqwin --channel conda-forge --channel bioconda --strict-channel-priority
      conda activate seqwin
    2. Run the example
      seqwin --tar-paths targets.txt --neg-paths non-targets.txt
      head -4 seqwin-out/signatures.csv | cut -d, -f1,2
    3. Compare Your output should look like the replay above.

    targets.txt and non-targets.txt list the paths of your own genome files.

    Nextflow

    SeqScreen

    Functional screening of sequences: flags functions of sequences of concern (FunSoCs) in each query, with taxonomy and gene annotation.

    SeqScreen is hosted on GitLab; SeqScreen2 is coming to GitHub.

    $ seqscreen --fasta example_data/test_seqs.fasta --databases /path/to/seqscreen_databases/ --working output_directory
    ✓ done
    $ grep -e '^#' -e Oct29_255 -e Oct29_194 -e Oct29_142 output_directory/report_generation/seqscreen_report.tsv | cut -f 1,7-10
    #query     evasion  cytotoxicity  degrade_ecm  disable_organ
    Oct29_142  0        0             0            0
    Oct29_255  0        1             0            1
    Oct29_194  1        0             0            0
    $ ls output_directory/report_generation
    seqscreen_html_report.zip  seqscreen_report.tsv
    
    Run SeqScreen yourself

    These run on your own computer. Nothing on this page runs the tool.

    1. Run the example
      seqscreen --fasta example_data/test_seqs.fasta --databases /path/to/seqscreen_databases/ --working output_directory
      grep -e '^#' -e Oct29_255 -e Oct29_194 -e Oct29_142 output_directory/report_generation/seqscreen_report.tsv | cut -f 1,7-10
      ls output_directory/report_generation
    2. Compare Your output should look like the replay above.

    Installing SeqScreen and its databases (hundreds of gigabytes) is described in the SeqScreen wiki.

    SeqScreen HTML report: a table with one row per query sequence, its organism, gene name and GO terms, and one column per function of concern, with a red 1 where a function is present.

    SeqScreen's HTML report, from the SeqScreen wiki: one row per sequence and one column per FunSoC, with a 1 where the function is present. The report can be sorted and filtered.

    somatem

    A modular, open-source Nextflow toolkit for long-read microbiome analysis: preprocessing, 16S and metagenomic profiling, assembly and MAG recovery, isolate analysis, pathogen screening and genome dynamics, each with an HTML summary.

    Other workflows: pre_processing, taxonomic_profiling, assembly_mags, isolate_analysis, seqscreen and genome_dynamics. Each writes an HTML summary report.

    $ somatem examples --outdir somatem-examples
    ✓ done
    $ somatem 16S --outdir results
    [PROCESS 02/d8c805] ORCHESTRATE_SOMATEM:SOMATEM:PREPROCESSING:RawNanoPlot (mock1)
    [PROCESS 4a/467bf4] ORCHESTRATE_SOMATEM:SOMATEM:PREPROCESSING:CHOPPER (mock1)
    [PROCESS 0d/abcb1e] ORCHESTRATE_SOMATEM:SOMATEM:PREPROCESSING:FinalNanoPlot (mock1)
    [PROCESS 4b/7642d7] ORCHESTRATE_SOMATEM:SOMATEM:TAXONOMIC_PROFILING:EMU_ABUNDANCE (mock1)
    ...
    $ ls results/summary_reports
    16S_summary_report.html  pre_processing_summary_report.html
    
    Run somatem yourself

    These run on your own computer. Nothing on this page runs the tool.

    1. Set up
      micromamba create -n somatem -c bioconda somatem
      micromamba activate somatem
    2. Run the example
      somatem examples --outdir somatem-examples
      somatem 16S --outdir results
      ls results/summary_reports
    3. Compare Your output should look like the replay above.

    The first command of the example downloads the example data; the first run of a workflow also downloads its database.

    Python

    Crykey

    Cryptic lineage detection for SARS-CoV-2 wastewater surveillance.

    • Pathogen Genomics and Wastewater Surveillance
    • Scalable Algorithms and AI for Microbial Genomics
    • Led by Yunxi Liu
    $ python crykey_wastewater.py -i demo/test_metadata.tsv -r demo/SARS-CoV-2-reference.fasta -d crykey_dbs -o crykey_output
    ✓ done
    $ python crykey_query.py -d crykey_dbs -o crykey_output
    ✓ done
    $ head -3 crykey_output/final_result.csv | cut -d, -f1-6
    Date,Site,Nt Mutations,AA Mutations,Support DP,Total DP
    1012023,Test,C6402T;G6456A,ORF1a:P2046L;ORF1a:C2064Y,7,60
    1012023,Test,C27131T;T27176C,M:N203N;M:A218A,13,289
    
    Run Crykey yourself

    These run on your own computer. Nothing on this page runs the tool.

    1. Set up
      git clone https://github.com/treangenlab/crykey.git && cd crykey
    2. Run the example
      python crykey_wastewater.py -i demo/test_metadata.tsv -r demo/SARS-CoV-2-reference.fasta -d crykey_dbs -o crykey_output
      python crykey_query.py -d crykey_dbs -o crykey_output
      head -3 crykey_output/final_result.csv | cut -d, -f1-6
    3. Compare Your output should look like the replay above.

    The dependencies are listed in the README; the demo data is in the repository.

    Emu

    Species-level microbial community profiling for full-length 16S reads.

    • Microbiome Profiling and Metagenomics
    • Scalable Algorithms and AI for Microbial Genomics
    • Led by Kristen Curry
    $ emu abundance example/full_length.fa
    ✓ done
    $ cut -f 1-3 results/full_length_rel-abundance.tsv | head -4
    tax_id   abundance  species
    2420510  0.5        Sphingobacterium puteale
    220927   0.25       Mycobacterium saskatchewanense
    1310     0.25       Streptococcus sobrinus
    
    Run Emu yourself

    These run on your own computer. Nothing on this page runs the tool.

    1. Set up
      conda config --add channels bioconda && conda config --add channels conda-forge
      conda install emu
      git clone https://github.com/treangenlab/emu.git && cd emu
      export EMU_DATABASE_DIR=$PWD/emu_database
    2. Run the example
      emu abundance example/full_length.fa
      cut -f 1-3 results/full_length_rel-abundance.tsv | head -4
    3. Compare Your output should look like the replay above.

    The example reads and a default database are in the repository.

    Redrawn from the benchmark data behind the Emu paper (the per-iteration results in treangenlab/emu-benchmark): full-length 16S nanopore reads from the ZymoBIOMICS mock community. Each expectation-maximization iteration moves the estimates toward the ground truth; false positive species drop from 43 to 6 and L1 error from 0.254 to 0.034.

    Harvest

    A suite of core-genome alignment and visualization tools (Parsnp, Gingr, HarvestTools) for thousands of microbial genomes.

    • Scalable Algorithms and AI for Microbial Genomics
    • Pathogen Genomics and Wastewater Surveillance
    • Led by Todd Treangen and Brian Ondov
    $ parsnp -r examples/mers_virus/ref/England1.fna -d examples/mers_virus/genomes/*.fna -o examples-out
    ✓ done
    Aligned 47 genomes in 2.93 seconds
    $ harvesttools -i examples-out/parsnp.ggr -V variants.vcf
    Loading examples-out/parsnp.ggr...
    Writing variants.vcf...
    $ grep -v '^##' variants.vcf | cut -f 2,4,5,7 | head -4
    POS  REF  ALT  FILTER
    300  C    T    PASS
    340  C    A    PASS
    380  C    T    PASS
    $ gingr examples-out/parsnp.ggr
    (opens the alignment and tree in Gingr: see the Gingr2 recording)
    
    Run Harvest yourself

    These run on your own computer. Nothing on this page runs the tool.

    1. Set up
      conda install -c bioconda parsnp harvesttools
      git clone https://github.com/marbl/parsnp.git && cd parsnp
    2. Run the example
      parsnp -r examples/mers_virus/ref/England1.fna -d examples/mers_virus/genomes/*.fna -o examples-out
      harvesttools -i examples-out/parsnp.ggr -V variants.vcf
      grep -v '^##' variants.vcf | cut -f 2,4,5,7 | head -4
      gingr examples-out/parsnp.ggr
    3. Compare Your output should look like the replay above.

    Gingr is a desktop application; get it from the Gingr repository.

    Kente

    A graph-based pangenomic approach for horizontal gene transfer detection in microbiomes.

    • Microbiome Profiling and Metagenomics
    • Scalable Algorithms and AI for Microbial Genomics
    • Led by Natalie Kokroko
    $ ./kente_kraken2.sh contigs/ out/ /path/to/kraken2_database 16
    ✓ done
    $ ./kente_minigraph_alignment.sh contigs/ out/ /path/to/pangenome_graphs 16 4
    ✓ done
    $ python3 Kente_extract_genusblocks.py --gaf_dir out/gaf_by_genus --out results/sample_genus_blocks.tsv --win 500
    ✓ done
    $ ls results
    sample_genus_blocks.tsv
    
    Run Kente yourself

    These run on your own computer. Nothing on this page runs the tool.

    1. Set up
      git clone https://github.com/treangenlab/Kente.git && cd Kente
    2. Run the example
      ./kente_kraken2.sh contigs/ out/ /path/to/kraken2_database 16
      ./kente_minigraph_alignment.sh contigs/ out/ /path/to/pangenome_graphs 16 4
      python3 Kente_extract_genusblocks.py --gaf_dir out/gaf_by_genus --out results/sample_genus_blocks.tsv --win 500
      ls results
    3. Compare Your output should look like the replay above.

    Kente needs Kraken2 with a database, minigraph, and the Kente pangenome graph database (2.5 GB), which comes with example contigs.

    Lemur

    Lightweight taxonomic profiling of long-read metagenomic datasets.

    • Microbiome Profiling and Metagenomics
    • Scalable Algorithms and AI for Microbial Genomics
    • Led by Nicolae Sapoval
    $ lemur -i examples/example-data/example.fastq -o example-output -d examples/example-db --tax-path examples/example-db/taxonomy.tsv -r species
    ✓ done
    $ cut -f1,2,9 example-output/relative_abundance-species.tsv
    species	genus	F
    Listeria monocytogenes	Listeria	1.0
    
    Run Lemur yourself

    These run on your own computer. Nothing on this page runs the tool.

    1. Set up
      conda install -c bioconda lemur
      git clone https://github.com/treangenlab/lemur.git && cd lemur
    2. Run the example
      lemur -i examples/example-data/example.fastq -o example-output -d examples/example-db --tax-path examples/example-db/taxonomy.tsv -r species
      cut -f1,2,9 example-output/relative_abundance-species.tsv
    3. Compare Your output should look like the replay above.

    The example reads and database are in the repository.

    MAGnet

    Reference-based refinement of taxonomic profiles, with presence and absence calls for each genome.

    $ magnet -c lemur_report.tsv -i reads.fastq -o magnet_out -m ont
    ✓ done
    $ cut -d, -f 10,17,22,23 magnet_out/cluster_representative.csv | grep -e Species -e Listeria -e Pseudomonas -e FMQ74
    Species                 Primary Breadth       Combined PS and ANI  Presence/Absence
    Listeria sp. LM90SB2    1.0                   99.79                Present
    Pseudomonas aeruginosa  0.9736029157761855    96.34                Present
    Bacillus sp. FMQ74      0.002592275317516481  10.36                Absent
    
    Run MAGnet yourself

    These run on your own computer. Nothing on this page runs the tool.

    1. Set up
      git clone https://github.com/treangenlab/magnet.git && cd magnet
      conda env create -n magnet -f magnet_env.yml && conda activate magnet
    2. Run the example
      magnet -c lemur_report.tsv -i reads.fastq -o magnet_out -m ont
      cut -d, -f 10,17,22,23 magnet_out/cluster_representative.csv | grep -e Species -e Listeria -e Pseudomonas -e FMQ74
    3. Compare Your output should look like the replay above.

    Use a Lemur report and your own reads in place of the file names.

    MethPhaser

    Methylation-based long-read haplotype phasing of human genomes.

    • Scalable Algorithms and AI for Microbial Genomics
    • Led by Yilei Fu
    $ meth_phaser_parallel -b test_data/HLA.R10.haplotagged.bam -r test_data/GCA_000001405.15_GRCh38_no_alt_analysis_set.chr6.fna -g test_data/LSK.filtered.gtf -vc test_data/HLA.R10.phased.vcf.gz -o test_data/work
    ✓ done
    $ cut -d, -f 2,3,6,7,8 test_data/work/chr6/0_3.csv
    snp_phased_block_1,snp_phased_block_2,myth_phasing_relationship,same_hap_num,diff_hap_num
    "(30927529, 31700433)","(29000000, 30738854)",cannot decide,,
    "(29000000, 30738854)","(30798118, 30854714)",not same,7,140
    "(30798118, 30854714)","(30927529, 31700433)",cannot decide,,
    $ meth_phaser_post_processing -ib test_data/HLA.R10.haplotagged.bam -if test_data/work/ -ov test_data/output.vcf -ob test_data/output -vc test_data/HLA.R10.phased.vcf.gz
    ✓ done
    $ ls test_data | grep output
    output.chr6.methtagged.bam
    output.vcf
    
    Run MethPhaser yourself

    These run on your own computer. Nothing on this page runs the tool.

    1. Set up
      mamba install -c bioconda methphaser
    2. Run the example
      meth_phaser_parallel -b test_data/HLA.R10.haplotagged.bam -r test_data/GCA_000001405.15_GRCh38_no_alt_analysis_set.chr6.fna -g test_data/LSK.filtered.gtf -vc test_data/HLA.R10.phased.vcf.gz -o test_data/work
      cut -d, -f 2,3,6,7,8 test_data/work/chr6/0_3.csv
      meth_phaser_post_processing -ib test_data/HLA.R10.haplotagged.bam -if test_data/work/ -ov test_data/output.vcf -ob test_data/output -vc test_data/HLA.R10.phased.vcf.gz
      ls test_data | grep output
    3. Compare Your output should look like the replay above.

    Download the test data (about 335 MB) into a folder named test_data.

    Mimic

    A metagenome simulator that creates nanopore reads mirroring an existing microbial community.

    • Microbiome Profiling and Metagenomics
    • Scalable Algorithms and AI for Microbial Genomics
    • Led by Ryan Doughty and Yin Min Thant
    $ python mimic.py -i sample.fastq -o output -r 100000 --db lemur_db -t 8
    ✓ done
    $ head -5 output/nanosim/abundances.tsv
    Size                          100000
    Paraburkholderia fungorum     0.97
    Paraburkholderia phenazinium  2.9
    Caballeronia udeis            2.42
    Paraburkholderia sp. BCC1885  0.48
    $ ls output/simulated_data
    simulated.fasta
    
    Run Mimic yourself

    These run on your own computer. Nothing on this page runs the tool.

    1. Set up
      git clone https://github.com/treangenlab/Mimic.git && cd Mimic
      conda env create -f mimic_env.yml && conda activate mimic
    2. Run the example
      python mimic.py -i sample.fastq -o output -r 100000 --db lemur_db -t 8
      head -5 output/nanosim/abundances.tsv
      ls output/simulated_data
    3. Compare Your output should look like the replay above.

    Use your own reads and a Lemur database in place of the names shown.

    Olivar

    Automated variant-aware primer design for multiplex tiled amplicon sequencing.

    • Pathogen Genomics and Wastewater Surveillance
    • Scalable Algorithms and AI for Microbial Genomics
    • Led by Michael X. Wang
    $ olivar build -f example_input/EPI_ISL_402124.fasta -v example_input/delta_omicron_loc.csv -d example_input/Human/GRCh38_primary -o example_output -p 1
    ✓ done
    $ olivar tiling example_output/EPI_ISL_402124.olvr -o example_output --max-amp-len 420 --min-amp-len 252 --check-var --seed 10 -p 1
    ✓ done
    $ head -3 example_output/olivar-design.primer.bed
    EPI_ISL_402124	99	117	EPI_ISL_402124_1_LEFT_1	1	+	CGGCTGCATGCTTAGTGC
    EPI_ISL_402124	288	309	EPI_ISL_402124_2_LEFT_1	2	+	CAACGAGAAAACACACGTCCA
    EPI_ISL_402124	360	379	EPI_ISL_402124_1_RIGHT_1	1	-	GACCTCCTCCACGGAGTCT
    
    Run Olivar yourself

    These run on your own computer. Nothing on this page runs the tool.

    1. Set up
      conda create -n olivar olivar --channel conda-forge --channel bioconda --strict-channel-priority
      conda activate olivar
      git clone https://github.com/treangenlab/Olivar.git && cd Olivar
    2. Run the example
      olivar build -f example_input/EPI_ISL_402124.fasta -v example_input/delta_omicron_loc.csv -d example_input/Human/GRCh38_primary -o example_output -p 1
      olivar tiling example_output/EPI_ISL_402124.olvr -o example_output --max-amp-len 420 --min-amp-len 252 --check-var --seed 10 -p 1
      head -3 example_output/olivar-design.primer.bed
    3. Compare Your output should look like the replay above.

    The example input is in the repository. Cloning the example BLAST database (example_input/Human) needs Git LFS.

    Olivia

    Learned sequence representations for automated primer design.

    • Pathogen Genomics and Wastewater Surveillance
    • Scalable Algorithms and AI for Microbial Genomics
    • Led by Dongwei Li
    $ olivia build -m example/hepatitis_e_aln.fasta -o example/out/ref -p 16
    ✓ done
    $ olivia tiling example/out/ref/hepatitis_e_aln.olvr -o example/out/nondeg -p 16
    ✓ done
    $ head -4 benchmark/output/HEV_400amp_newer/designed_primers.csv
    tool,amplicon_size,pool,name,direction,primer
    Olivia,400,1,hev_stratified_aligned_1_LEFT,forward,ACTACTGCCATTGAGCAGGC
    Olivia,400,1,hev_stratified_aligned_1_RIGHT,reverse,ACGGGTGGGGGCAGAA
    Olivia,400,2,hev_stratified_aligned_2_LEFT,forward,GCCCACCCAAGATCCATTAATG
    
    Run Olivia yourself

    These run on your own computer. Nothing on this page runs the tool.

    1. Set up
      git clone https://github.com/treangenlab/Olivia.git && cd Olivia
      conda env create -f environment.yml && conda activate olivia
      pip install -e .
    2. Run the example
      olivia build -m example/hepatitis_e_aln.fasta -o example/out/ref -p 16
      olivia tiling example/out/ref/hepatitis_e_aln.olvr -o example/out/nondeg -p 16
      head -4 benchmark/output/HEV_400amp_newer/designed_primers.csv
    3. Compare Your output should look like the replay above.

    Olivia also needs NUPACK, installed separately as the README describes.

    PlasmidScreen

    Fast detection of engineered DNA in sequencing reads.

    • Biosecurity and Synthetic DNA Screening
    • Scalable Algorithms and AI for Microbial Genomics
    • Led by Felix Quintana
    $ plasmidscreen screen tests/fixtures/reads.fa report.txt /path/to/kraken/db --skip-codon-usage --no-run-kraken --kraken-output-path tests/fixtures/kraken.out
    ✓ done
    Screen complete: 1/3 read(s) engineered overall → report.txt
    $ cut -f 1-5 report.txt
    Label       Read_ID            Methods               P-Value                  Eng-Coverage Percentage
    Natural     read_natural_1     NA                    1.0                      0.00%
    Engineered  read_synthetic_1   engineered_kmer_scan  1.0000000000000014e-198  100.00%
    Natural     read_unclassified  NA                    1.0                      0.00%
    
    Run PlasmidScreen yourself

    These run on your own computer. Nothing on this page runs the tool.

    1. Set up
      git clone https://github.com/treangenlab/PlasmidScreen.git && cd PlasmidScreen
      pip install .
    2. Run the example
      plasmidscreen screen tests/fixtures/reads.fa report.txt /path/to/kraken/db --skip-codon-usage --no-run-kraken --kraken-output-path tests/fixtures/kraken.out
      cut -f 1-5 report.txt
    3. Compare Your output should look like the replay above.

    This example uses the test files in the repository, so it needs no Kraken database; the database path is only a placeholder.

    QuaID

    Earlier detection of recently emerged SARS-CoV-2 variants of concern in wastewater, using quasi-unique mutations.

    • Pathogen Genomics and Wastewater Surveillance
    • Scalable Algorithms and AI for Microbial Genomics
    • Led by Nicolae Sapoval
    $ ./run_analyses.sh TST08082022
    ✓ done
    $ python quaid.py MSA_precomputed/vdb_lineage_df_week.csv MSA_precomputed/metadata.tsv ./Variant-calling-combined ./Coverage --concat-output --occurence-cutoff 2 --inclusion-cutoff 0.5 --exclusion-cutoff 0.5 --time-window 4 --level 4
    ✓ done
    $ head -1 output/*.csv
    Date,Plant,Total AF,Total QU count,# QU possible,Fraction covered,WHO name
    
    Run QuaID yourself

    These run on your own computer. Nothing on this page runs the tool.

    1. Set up
      git clone https://gitlab.com/treangenlab/quaid.git && cd quaid
      conda create -n quaid-env --file quaid-env-list.txt && conda activate quaid-env
    2. Run the example
      ./run_analyses.sh TST08082022
      python quaid.py MSA_precomputed/vdb_lineage_df_week.csv MSA_precomputed/metadata.tsv ./Variant-calling-combined ./Coverage --concat-output --occurence-cutoff 2 --inclusion-cutoff 0.5 --exclusion-cutoff 0.5 --time-window 4 --level 4
      head -1 output/*.csv
    3. Compare Your output should look like the replay above.

    QuaID needs SARS-CoV-2 lineage data from GISAID, which requires your own GISAID access.

    Rhea

    Reference-free structural variant detection in microbiomes.

    • Microbiome Profiling and Metagenomics
    • Scalable Algorithms and AI for Microbial Genomics
    • Led by Kristen Curry

    The output shown is from the published results on the cheese time series. The current release writes one file per pair of time points (structural_variants-c0.tsv, structural_variants-c1.tsv, ...).

    $ python rhea.py week02.fasta week03.fasta week04.fasta week09.fasta week13.fasta
    ✓ done
    $ head -3 rhea_results/structual_variants.tsv | cut -f 1-6
    node    node_id  node_length  t0-SV_type  t0-neighbor1  t0-neighbor2
    edge_1  1        585290       deletion    22            20
    edge_2  2        1227         insertion   1             2780
    
    Run Rhea yourself

    These run on your own computer. Nothing on this page runs the tool.

    1. Set up
      git clone https://github.com/treangenlab/rhea.git && cd rhea
      conda env create -f environment.yml && conda activate rhea
    2. Run the example
      python rhea.py week02.fasta week03.fasta week04.fasta week09.fasta week13.fasta
      head -3 rhea_results/structual_variants.tsv | cut -f 1-6
    3. Compare Your output should look like the replay above.

    Use your own time-series read files, in order, in place of the file names.

    Drawn from rhea's published results on a washed-rind cheese time series (weeks 2, 3, 4, 9 and 13): the co-assembly graph, with each piece coloured by rhea's coverage colour for that week.

    Strainify

    Strain-level microbiome profiling for low-coverage short-read metagenomic datasets.

    • Microbiome Profiling and Metagenomics
    • Scalable Algorithms and AI for Microbial Genomics
    • Led by Rossie Luo
    $ ./strainify --genome_folder example/genomes --fastq_folder example/fastqs/single --read_type single --outdir example/results
    ✓ done
    $ cat example/results/abundance_estimates_combined.csv
    strain name,10x_ratio_2
    E24377A,23.7987
    H10407,24.8376
    Sakai,24.9406
    UTI89,26.423
    
    Run Strainify yourself

    These run on your own computer. Nothing on this page runs the tool.

    1. Set up
      git clone https://github.com/treangenlab/Strainify.git && cd Strainify
      conda env create -f environment.yml && conda activate strainify
    2. Run the example
      ./strainify --genome_folder example/genomes --fastq_folder example/fastqs/single --read_type single --outdir example/results
      cat example/results/abundance_estimates_combined.csv
    3. Compare Your output should look like the replay above.

    The example genomes and reads are in the repository.

    Rust

    bronko

    Ultrafast, alignment-free detection of viral genome variation.

    • Pathogen Genomics and Wastewater Surveillance
    • Scalable Algorithms and AI for Microbial Genomics
    • Led by Ryan Doughty
    $ bronko call -d test_data/hpv.bkdb -1 test_data/rep1_R1.fastq.gz -2 test_data/rep1_R2.fastq.gz -o out
    ✓ done
    $ grep -w 4784 out/rep1_R1.vcf | cut -f 1,2,4,5,8 | cut -d';' -f1-2
    HPV16REF  4784  T    A    DP=24072;AF=0.014
    $ cut -f 2,7,8 out/bronko_overview.tsv
    selected_genome  breadth_coverage  depth_coverage
    HPV16            0.9947            34288.2668
    
    Run bronko yourself

    These run on your own computer. Nothing on this page runs the tool.

    1. Set up
      conda create -n bronko -c conda-forge -c bioconda bronko && conda activate bronko
      git clone https://github.com/treangenlab/bronko.git && cd bronko
    2. Run the example
      bronko call -d test_data/hpv.bkdb -1 test_data/rep1_R1.fastq.gz -2 test_data/rep1_R2.fastq.gz -o out
      grep -w 4784 out/rep1_R1.vcf | cut -f 1,2,4,5,8 | cut -d';' -f1-2
      cut -f 2,7,8 out/bronko_overview.tsv
    3. Compare Your output should look like the replay above.

    The test data is in the repository.

    Checked against an alignment: the same test reads mapped with minimap2 and viewed in IGV. At position 4,784, 307 of 26,135 reads (1.2%) carry the A that bronko calls at 1.4% (333 of 24,072) from k-mers alone.

    mft-tools

    The Min-Frame Transformation: a sequence transformation that masks point mutations for more sensitive viral genome alignment.

    • Pathogen Genomics and Wastewater Surveillance
    • Scalable Algorithms and AI for Microbial Genomics
    • Led by Ryan Doughty
    $ mft define-order -k 3 -s 42 -o order_seed42.txt
    ✓ done
    $ mft transform -g England1.fna -k 3 -w 5 -m mapping_tables/k3_XX-.txt -b order_seed42.txt -o genome_mft.fasta
    ✓ done
    $ sed -n 2p England1.fna | cut -c 1-60
    ATTTAAGTGAATAGCTTGGCTATCTCACTTCCCCTCGTTCTCTTGCAGAACTTTGATTTT
    $ grep -v '>' genome_mft.fasta | head -c 60
    PPAAAOPPPAHHAPPPFHHHDIIIOAAAPKFIIIAAAIIAPJJJJPAAAAPPPOAAPPAA
    
    Run mft-tools yourself

    These run on your own computer. Nothing on this page runs the tool.

    1. Set up
      mamba create -n mft-tools -c conda-forge -c bioconda mft-tools && mamba activate mft-tools
      git clone https://github.com/treangenlab/mft-tools.git && cd mft-tools
    2. Run the example
      mft define-order -k 3 -s 42 -o order_seed42.txt
      mft transform -g England1.fna -k 3 -w 5 -m mapping_tables/k3_XX-.txt -b order_seed42.txt -o genome_mft.fasta
      sed -n 2p England1.fna | cut -c 1-60
      grep -v '>' genome_mft.fasta | head -c 60
    3. Compare Your output should look like the replay above.

    England1.fna stands for any genome in FASTA format; the mapping tables are in the repository.

    Web app

    Omi

    An LLM-powered copilot for metagenomics analysis: ask about tools, parameters and results, and Omi configures and launches Somatem pipelines and returns live reports.

    • Microbiome Profiling and Metagenomics
    • Scalable Algorithms and AI for Microbial Genomics
    • Led by Dongwei Li

    Built by the Treangen Lab and RushLab at Rice.

    How Omi works, in five steps, using screenshots of Omi from the team's slides.

    The terminal demos replay commands from each tool's own documentation; nothing runs in your browser. Output lines come from running the tool on its example data, or from example files and documentation in its repository; a few tools that need large databases show their documented output files instead. Clips and plots are described under each one. The set-up commands in each "Run it yourself" panel come from the tool's README.