Skip to main content

CLI Reference

Command-line reference for all bactopia-py CLI commands (v2.1.2).

User & Developer Commands

Commands for preparing inputs, querying databases, and developing Bactopia components.

CommandDescription
bactopia-atb-downloaderDownload All-the-Bacteria assemblies based on input query
bactopia-atb-formatterRestructure All-the-Bacteria assemblies to allow usage with Bactopia Tools
bactopia-catalogGenerate machine-readable catalog of all Bactopia components.
bactopia-citationsPrint or validate citations used throughout Bactopia.
bactopia-datasetsDownload optional datasets to supplement your analyses with Bactopia
bactopia-docsValidate reference-doc staleness across a Bactopia repo.
bactopia-downloadBuilds Bactopia environments for use with Nextflow.
bactopia-lintLint Bactopia pipeline components against style guidelines.
bactopia-merge-schemasBuilds a Nextflow Schema and/or Nextflow config for a given workflow.
bactopia-prepareCreate a 'file of filenames' (FOFN) of samples to be processed by Bactopia
bactopia-pruneRemoves stale Bactopia environments that no longer match current module versions.
bactopia-pubmlst-buildBuild PubMLST databases for use with the 'mlst' Bactopia Tool.
bactopia-pubmlst-setupOne-time setup for interacting with the PubMLST API
bactopia-review-testsReview nf-test results with grouped error analysis and timing checks.
bactopia-scaffoldScaffold Bactopia components from bioconda/conda-forge packages.
bactopia-searchQuery against ENA and SRA for public accessions to process with Bactopia
bactopia-statusShow a snapshot of the Bactopia project state.
bactopia-summaryGenerate a summary table from the Bactopia results.
bactopia-sysinfoAuto-detect host RAM and CPUs, emit Nextflow CLI fragments for local profiles.
bactopia-testRun nf-test suites for Bactopia components.
bactopia-updateCheck if modules used by Bactopia Tools have newer versions available
bactopia-workflowsOutput the path to a Bactopia workflow main.nf file.

Pipeline Utility Scripts

Internal scripts called by Nextflow modules during pipeline execution.

CommandDescription
bactopia-bracken-to-excelWrite Bracken abundances to an Excel file.
bactopia-check-assembly-accessionVerify NCBI Assembly accession is latest and still available.
bactopia-check-fastqsVerify input FASTQs meet minimum requirements.
bactopia-cleanup-coverageReduce redundancy in per-base coverage from genomeCoverageBed output.
bactopia-kraken-bracken-summaryUpdate the Bracken abundances with unclassified counts.
bactopia-mask-consensusSnippy consensus (subs) with coverage masking.
bactopia-scrubber-summaryCreate a before-and-after report from human read scrubbing.
bactopia-teton-preparePrepare sample sheets for downstream analysis in the Teton workflow.