Skip to contents

Set up conda

Create the conda environments that run each tool, and find the conda executable.

setup_conda_sra() setup_conda_sylph() setup_conda_sourmash() setup_conda_funprofiler() setup_conda_rgi()
Set up conda environments for SRA download and profiling tools
conda_bin()
Locate the conda executable

Document conda environments

Save each environment’s exact package versions, for methods sections and reproducible workflows.

Find SRA runs

List the SRA runs in a BioProject, with their BioSample metadata.

get_bioproject_runs()
Get SRA run metadata for a BioProject

Process SRA runs

Download each SRA run in turn and sketch it with sourmash, profile its taxa with sylph, or profile its KEGG Orthology groups with fmh-funprofiler.

smash_runs()
Sketch SRA runs with sourmash, one run at a time
sylph_runs()
Profile SRA runs with sylph, one run at a time
funprofiler_runs()
Functionally profile SRA runs with fmh-funprofiler, one run at a time

Stream SRA runs

Sketch, profile or find resistance genes in SRA runs without saving any reads, by streaming each run straight into the tool. These need a steady internet connection.

smash_stream()
Sketch SRA runs with sourmash, streaming the reads
sylph_stream()
Profile SRA runs with sylph, streaming the reads
funprofiler_stream()
Profile the KEGG Orthology groups of SRA runs, streaming the reads
rgi_stream()
Find antibiotic resistance genes in SRA runs with RGI, streaming the reads

Process local reads

Do the same for paired-end reads already on disk, found by specimen ID.

smash_local() sylph_local() funprofiler_local()
Sketch, profile or functionally profile local paired-end reads

Find antibiotic resistance genes

Map SRA runs or local reads to the Comprehensive Antibiotic Resistance Database (CARD) with RGI.

rgi_runs() rgi_local()
Find antibiotic resistance genes in SRA runs or local reads with RGI

Run several pathways at once

Run any combination of the sourmash, sylph, funprofiler and RGI pathways on each run or read pair, from a single download.

multiprocess_runs() multiprocess_local()
Run several processing pathways on each SRA run or local read pair