Skip to main content

staphopia

Tags: staphylococcus-aureus assembly annotation amr mlst spa-typing agr-typing sccmec named-workflow

Comprehensive analysis pipeline for Staphylococcus aureus isolates.

This workflow performs complete bacterial analysis including quality control, assembly, annotation, antimicrobial resistance detection, MLST typing, and Staphylococcus-specific analysis using Spatyper, AgrVATE, SCCmecFinder, and StaphSCAN. It processes raw sequencing reads and produces a comprehensive genomic characterization for S. aureus isolates.

Usage

staphopia CLI:

staphopia \
--input samples.csv \
--outdir results/

Nextflow:

nextflow run bactopia/bactopia/workflows/staphopia/main.nf \
--input samples.csv \
--outdir results/

Outputs

Expected Output Files

<BACTOPIA_DIR>
├── <SAMPLE_NAME>
│ ├── main
│ │ ├── annotator
│ │ │ └── prokka
│ │ │ ├── <SAMPLE_NAME>-blastdb.tar.gz
│ │ │ ├── <SAMPLE_NAME>.faa.gz
│ │ │ ├── <SAMPLE_NAME>.ffn.gz
│ │ │ ├── <SAMPLE_NAME>.fna.gz
│ │ │ ├── <SAMPLE_NAME>.fsa.gz
│ │ │ ├── <SAMPLE_NAME>.gbk.gz
│ │ │ ├── <SAMPLE_NAME>.gff.gz
│ │ │ ├── <SAMPLE_NAME>.sqn.gz
│ │ │ ├── <SAMPLE_NAME>.tbl.gz
│ │ │ ├── <SAMPLE_NAME>.tsv
│ │ │ ├── <SAMPLE_NAME>.txt
│ │ │ └── logs
│ │ │ ├── <SAMPLE_NAME>.err
│ │ │ ├── <SAMPLE_NAME>.log
│ │ │ ├── nf.command.{begin,err,log,out,run,sh,trace}
│ │ │ └── versions.yml
│ │ ├── assembler
│ │ │ ├── <SAMPLE_NAME>.fna.gz
│ │ │ ├── <SAMPLE_NAME>.tsv
│ │ │ ├── logs
│ │ │ │ ├── nf.command.{begin,err,log,out,run,sh,trace}
│ │ │ │ ├── shovill.log
│ │ │ │ └── versions.yml
│ │ │ └── supplemental
│ │ │ ├── flash.hist
│ │ │ ├── flash.histogram
│ │ │ ├── illumina.txt
│ │ │ └── shovill.corrections
│ │ ├── gather
│ │ │ ├── <SAMPLE_NAME>-meta.tsv
│ │ │ └── logs
│ │ │ ├── nf.command.{begin,err,log,out,run,sh,trace}
│ │ │ └── versions.yml
│ │ ├── qc
│ │ │ ├── <SAMPLE_NAME>_R1.fastq.gz
│ │ │ ├── <SAMPLE_NAME>_R2.fastq.gz
│ │ │ ├── logs
│ │ │ │ ├── <SAMPLE_NAME>-fastp.log
│ │ │ │ ├── nf.command.{begin,err,log,out,run,sh,trace}
│ │ │ │ └── versions.yml
│ │ │ └── supplemental
│ │ │ ├── <SAMPLE_NAME>.fastp.html
│ │ │ ├── <SAMPLE_NAME>.fastp.json
│ │ │ ├── <SAMPLE_NAME>_R1-final.json
│ │ │ ├── <SAMPLE_NAME>_R1-final_fastqc.html
│ │ │ ├── <SAMPLE_NAME>_R1-final_fastqc.zip
│ │ │ ├── <SAMPLE_NAME>_R1-original.json
│ │ │ ├── <SAMPLE_NAME>_R1-original_fastqc.html
│ │ │ ├── <SAMPLE_NAME>_R1-original_fastqc.zip
│ │ │ ├── <SAMPLE_NAME>_R2-final.json
│ │ │ ├── <SAMPLE_NAME>_R2-final_fastqc.html
│ │ │ ├── <SAMPLE_NAME>_R2-final_fastqc.zip
│ │ │ ├── <SAMPLE_NAME>_R2-original.json
│ │ │ ├── <SAMPLE_NAME>_R2-original_fastqc.html
│ │ │ └── <SAMPLE_NAME>_R2-original_fastqc.zip
│ │ └── sketcher
│ │ ├── <SAMPLE_NAME>-k21.msh
│ │ ├── <SAMPLE_NAME>-k31.msh
│ │ ├── <SAMPLE_NAME>-mash-refseq88-k21.txt
│ │ ├── <SAMPLE_NAME>-sourmash-gtdb-rs207-k31.txt
│ │ ├── <SAMPLE_NAME>.sig
│ │ └── logs
│ │ ├── nf.command.{begin,err,log,out,run,sh,trace}
│ │ └── versions.yml
│ └── tools
│ ├── agrvate
│ │ ├── <SAMPLE_NAME>.tsv
│ │ ├── logs
│ │ │ ├── nf.command.{begin,err,log,out,run,sh,trace}
│ │ │ └── versions.yml
│ │ └── supplemental
│ │ ├── <SAMPLE_NAME>-agr_gp.tab
│ │ ├── <SAMPLE_NAME>-blastn_log.txt
│ │ ├── <SAMPLE_NAME>-hmm-log.txt
│ │ ├── <SAMPLE_NAME>-hmm.tab
│ │ └── <SAMPLE_NAME>.fna-error-report.tab
│ ├── amrfinderplus
│ │ ├── <SAMPLE_NAME>.tsv
│ │ └── logs
│ │ ├── nf.command.{begin,err,log,out,run,sh,trace}
│ │ └── versions.yml
│ ├── mlst
│ │ ├── <SAMPLE_NAME>.tsv
│ │ └── logs
│ │ ├── nf.command.{begin,err,log,out,run,sh,trace}
│ │ └── versions.yml
│ ├── sccmec
│ │ ├── <SAMPLE_NAME>.regions.blastn.tsv
│ │ ├── <SAMPLE_NAME>.regions.details.tsv
│ │ ├── <SAMPLE_NAME>.targets.blastn.tsv
│ │ ├── <SAMPLE_NAME>.targets.details.tsv
│ │ ├── <SAMPLE_NAME>.tsv
│ │ └── logs
│ │ ├── nf.command.{begin,err,log,out,run,sh,trace}
│ │ └── versions.yml
│ ├── spatyper
│ │ ├── <SAMPLE_NAME>.tsv
│ │ └── logs
│ │ ├── nf.command.{begin,err,log,out,run,sh,trace}
│ │ └── versions.yml
│ └── staphscan
│ ├── <SAMPLE_NAME>.tsv
│ └── logs
│ ├── nf.command.{begin,err,log,out,run,sh,trace}
│ └── versions.yml
└── bactopia-runs
└── staphopia-<TIMESTAMP>
├── merged-results
│ ├── agrvate.tsv
│ ├── amrfinderplus.tsv
│ ├── assembly-scan.tsv
│ ├── logs
│ │ ├── agrvate-concat
│ │ │ ├── nf.command.{begin,err,log,out,run,sh,trace}
│ │ │ └── versions.yml
│ │ ├── amrfinderplus-concat
│ │ │ ├── nf.command.{begin,err,log,out,run,sh,trace}
│ │ │ └── versions.yml
│ │ ├── assembly-scan-concat
│ │ │ ├── nf.command.{begin,err,log,out,run,sh,trace}
│ │ │ └── versions.yml
│ │ ├── meta-concat
│ │ │ ├── nf.command.{begin,err,log,out,run,sh,trace}
│ │ │ └── versions.yml
│ │ ├── mlst-concat
│ │ │ ├── nf.command.{begin,err,log,out,run,sh,trace}
│ │ │ └── versions.yml
│ │ ├── sccmec-concat
│ │ │ ├── nf.command.{begin,err,log,out,run,sh,trace}
│ │ │ └── versions.yml
│ │ ├── spatyper-concat
│ │ │ ├── nf.command.{begin,err,log,out,run,sh,trace}
│ │ │ └── versions.yml
│ │ └── staphscan-concat
│ │ ├── nf.command.{begin,err,log,out,run,sh,trace}
│ │ └── versions.yml
│ ├── meta.tsv
│ ├── mlst.tsv
│ ├── sccmec.tsv
│ ├── spatyper.tsv
│ └── staphscan.tsv
└── nf-reports
├── staphopia-dag.dot
├── staphopia-report.html
└── staphopia-timeline.html

Quality Control

FileDescription
supplemental/*_fastqc.*FastQC quality control reports for raw and cleaned reads
supplemental/*-NanoPlot.*NanoPlot reports for Nanopore reads
supplemental/*.fastp.*Fastp quality reports (when applicable)

Assembly

FileDescription
*.fnaAssembled genome sequences in FASTA format
assembly-stats.tsvAssembly quality metrics per sample

Annotation

note

Output format depends on chosen annotation tool (Bakta or Prokka)

FileDescription
*.gff.gzGenome annotation in GFF3 format (compressed)
*.gbk.gzGenome annotation in GenBank format (compressed)
*.faa.gzProtein sequences (compressed)
*.fna.gzNucleotide sequences from annotation (compressed)
annotation.tsvAnnotation summary tables

Typing

FileDescription
mlst.tsvMLST sequence type results
agrvate-*Agr locus typing results
spatyper-*spa typing results
sccmec-*SCCmec typing results (targets, regions, details)

Antimicrobial Resistance

FileDescription
amrfinderplus.tsvAMR gene detection results
amrfinderplus.mutation.tsvAMR point mutation results

Comparative Analysis

FileDescription
*-k21.mshMash sketch files (k=21)
*-k31.mshMash sketch files (k=31)
*-mash-refseq88-*.txtMash screening results against RefSeq
*.sigSourmash signatures
sourmash-*.txtSourmash classification results

Merged Results

note

Run-level aggregated results from all samples

FileDescription
merged-assembly-stats.tsvConsolidated assembly statistics
merged-mlst.tsvConsolidated MLST results
staphtyper.tsvConsolidated Staphylococcus typing summary

Audit Trail

Below are files that can assist you in understanding which parameters and program versions were used.

Logs

Each process that is executed will have a folder named logs. In this folder are helpful files for you to review if the need ever arises.

ExtensionDescription
.beginAn empty file used to designate the process started
.errContains STDERR outputs from the process
.logContains both STDERR and STDOUT outputs from the process
.outContains STDOUT outputs from the process
.runThe script Nextflow uses to stage/unstage files and queue processes based on given profile
.shThe script executed by bash for the process
.traceThe Nextflow trace report for the process
versions.ymlA YAML formatted file with program versions

Nextflow Reports

These Nextflow reports provide great a great summary of your run. These can be used to optimize resource usage and estimate expected costs if using cloud platforms.

FilenameDescription
staphopia-dag.dotThe Nextflow DAG visualization
staphopia-report.htmlThe Nextflow Execution Report
staphopia-timeline.htmlThe Nextflow Timeline Report
staphopia-trace.txtThe Nextflow Trace report

Parameters

Required Parameters

The following parameters are how you will provide either local or remote samples to be processed by Bactopia.

ParameterTypeDefaultDescription
--samplesstringA FOFN (via bactopia prepare) with sample names and paths to FASTQ/FASTAs to process
--r1stringFirst set of compressed (gzip) Illumina paired-end FASTQ reads (requires --r2 and --sample)
--r2stringSecond set of compressed (gzip) Illumina paired-end FASTQ reads (requires --r1 and --sample)
--sestringCompressed (gzip) Illumina single-end FASTQ reads (requires --sample)
--ontstringCompressed (gzip) Oxford Nanopore FASTQ reads (requires --sample)
--hybridbooleanfalseCreate hybrid assembly using Unicycler. (requires --r1, --r2, --ont and --sample)
--short_polishbooleanfalseCreate hybrid assembly from long-read assembly and short read polishing. (requires --r1, --r2, --ont and --sample)
--samplestringSample name to use for the input sequences
--accessionsstringA file containing ENA/SRA Experiment accessions or NCBI Assembly accessions to processed
--accessionstringSample name to use for the input sequences
--assemblystringA assembled genome in compressed FASTA format. (requires --sample)
--check_samplesbooleanfalseValidate the input FOFN provided by --samples

AMRFinder+ Parameters

ParameterTypeDefaultDescription
--amrfinderplus_ident_minnumber-1Minimum proportion of identical amino acids in alignment for hit (0..1)
--amrfinderplus_coverage_minnumber0.5Minimum coverage of the reference protein (0..1)
--amrfinderplus_organismstringTaxonomy group to run additional screens against
--amrfinderplus_translation_tableinteger11NCBI genetic code for translated BLAST
--amrfinderplus_noplusbooleanfalseDisable running AMRFinder+ with the --plus option
--amrfinderplus_report_commonbooleanfalseReport proteins common to a taxonomy group
--amrfinderplus_report_all_equalbooleanfalseReport all equally-scoring BLAST and HMM matches
--amrfinderplus_optsstringExtra AMRFinder+ options in quotes.
--amrfinderplus_dbstringA custom AMRFinder+ database to use, either a tarball or a folder

csvtk concat Parameters

ParameterTypeDefaultDescription
--csvtk_concat_optsstringExtra csvtk concat options in quotes

Assembler Parameters

ParameterTypeDefaultDescription
--shovill_assemblerstringskesaAssembler to be used by Shovill (choices: skesa, megahit, spades, velvet)
--dragonflye_assemblerstringflyeAssembler to be used by Dragonflye (choices: flye, miniasm, raven)
--use_unicyclerbooleanUse unicycler for paired end assembly
--min_contig_leninteger500Minimum contig length <0=AUTO>
--min_contig_covinteger2Minimum contig coverage <0=AUTO>
--contig_namefmtstringFormat of contig FASTA IDs in 'printf' style
--shovill_optsstringExtra assembler options in quotes for Shovill
--shovill_kmersstringK-mers to use <blank=AUTO>
--dragonflye_optsstringExtra assembler options in quotes for Dragonflye
--trimbooleanEnable adaptor trimming
--no_stitchbooleanDisable read stitching for paired-end reads
--no_corrbooleanDisable post-assembly correction
--unicycler_modestringnormalBridging mode used by Unicycler (choices: conservative, normal, bold)
--min_component_sizeinteger1000Graph dead ends smaller than this size (bp) will be removed from the final graph
--min_dead_end_sizeinteger1000Graph dead ends smaller than this size (bp) will be removed from the final graph
--nanohqbooleanfalseFor Flye, use '--nano-hq' instead of --nano-raw
--medaka_modelstringThe model to use for Medaka polishing
--medaka_roundsinteger0The number of Medaka polishing rounds to conduct
--racon_roundsinteger1The number of Racon polishing rounds to conduct
--no_polishbooleanSkip the assembly polishing step
--no_miniasmbooleanSkip miniasm+Racon bridging
--no_rotatebooleanDo not rotate completed replicons to start at a standard gene
--reassemblebooleanfalseIf reads were simulated, they will be used to create a new assembly.
--polypolish_roundsinteger1Number of polishing rounds to conduct with Polypolish for short read polishing
--pilon_roundsinteger0Number of polishing rounds to conduct with Pilon for short read polishing

Gather Parameters

ParameterTypeDefaultDescription
--skip_fastq_checkbooleanSkip minimum requirement checks for input FASTQs
--min_basepairsinteger2241820The minimum amount of basepairs required to continue downstream analyses.
--min_readsinteger7472The minimum amount of reads required to continue downstream analyses.
--min_coverageinteger10The minimum amount of coverage required to continue downstream analyses.
--min_proportionnumber0.5The minimum proportion of basepairs for paired-end reads to continue downstream analyses.
--min_genome_sizeinteger100000The minimum estimated genome size allowed for the input sequence to continue downstream analyses.
--max_genome_sizeinteger18040666The maximum estimated genome size allowed for the input sequence to continue downstream analyses.
--attemptsinteger3Maximum times to attempt downloads
--use_enabooleanDownload FASTQs from ENA
--no_cachebooleanSkip caching the assembly summary file from ncbi-genome-download

Sketcher Parameters

ParameterTypeDefaultDescription
--sketch_sizeinteger10000Sketch size. Each sketch will have at most this many non-redundant min-hashes.
--sourmash_scaleinteger10000Choose number of hashes as 1 in FRACTION of input k-mers
--no_winner_take_allbooleanDisable winner-takes-all strategy for identity estimates
--screen_inumber0.8Minimum identity to report.

MLST Parameters

ParameterTypeDefaultDescription
--mlst_schemestringDon't autodetect, force this scheme on all inputs
--mlst_minidinteger95Minimum DNA percent identity of full allele to consider 'similar'
--mlst_mincovinteger10Minimum DNA percent coverage to report partial allele at all
--mlst_minscoreinteger50Minimum score out of 100 to match a scheme
--mlst_nopathbooleanfalseStrip filename paths from FILE column
--mlst_dbstringA custom MLST database to use, either a tarball or a directory

QC Parameters

ParameterTypeDefaultDescription
--use_bbmapbooleanIllumina reads will be QC'd using BBMap
--use_porechopbooleanfalseUse Porechop to remove adapters from ONT reads
--skip_qcbooleanThe QC step will be skipped and it will be assumed the inputs sequences have already been QCed.
--skip_qc_plotsbooleanQC Plot creation by FastQC or Nanoplot will be skipped
--skip_error_correctionbooleanFLASH error correction of reads will be skipped.
--adaptersstringA FASTA file containing adapters to remove
--adapter_kinteger23Kmer length used for finding adapters.
--phixstringphiX174 reference genome to remove
--phix_kinteger31Kmer length used for finding phiX174.
--ktrimstringrTrim reads to remove bases matching reference kmers (choices: f, r, l)
--minkinteger11Look for shorter kmers at read tips down to this length, when k-trimming or masking.
--hdistinteger1Maximum Hamming distance for ref kmers (subs only)
--tpestringtWhen kmer right-trimming, trim both reads to the minimum length of either (choices: f, t)
--tbostringtTrim adapters based on where paired reads overlap (choices: f, t)
--qtrimstringrlTrim read ends to remove bases with quality below trimq. (choices: rl, f, r, l, w)
--trimqinteger6Regions with average quality BELOW this will be trimmed if qtrim is set to something other than f
--maqinteger10Reads with average quality (after trimming) below this will be discarded
--minlengthinteger35Reads shorter than this after trimming will be discarded
--ftminteger5If positive, right-trim length to be equal to zero, modulo this number
--tossjunkstringtDiscard reads with invalid characters as bases (choices: f, t)
--ainstringfWhen detecting pair names, allow identical names (choices: f, t)
--qoutstring33PHRED offset to use for output FASTQs (choices: 33, 64)
--maxcorinteger1Max number of corrections within a 20bp window
--sampleseedinteger42Set to a positive number to use as the random number generator seed for sampling
--ont_minlengthinteger1000ONT Reads shorter than this will be discarded
--ont_minqualinteger0Minimum average read quality filter of ONT reads
--porechop_optsstringExtra Porechop options in quotes
--nanoplot_optsstringExtra NanoPlot options in quotes
--bbduk_optsstringExtra BBDuk options in quotes
--fastp_optsstringExtra fastp options in quotes

Bakta Download Parameters

ParameterTypeDefaultDescription
--bakta_dbstringTarball or path to the Bakta database
--bakta_db_typestringfullWhich Bakta DB to download 'full' (~30GB) or 'light' (~2GB) (choices: full, light)
--bakta_save_as_tarballbooleanfalseSave the Bakta database as a tarball
--download_baktabooleanfalseDownload the Bakta database to the path given by --bakta_db

Bakta Parameters

ParameterTypeDefaultDescription
--bakta_proteinsstringFASTA file of trusted proteins to first annotate from
--bakta_prodigal_tfstringTraining file to use for Prodigal
--bakta_repliconsstringReplicon information table (tsv/csv)
--bakta_min_contig_lengthinteger1Minimum contig size to annotate
--bakta_keep_contig_headersbooleanfalseKeep original contig headers
--bakta_compliantbooleanfalseForce Genbank/ENA/DDJB compliance
--bakta_skip_trnabooleanfalseSkip tRNA detection & annotation
--bakta_skip_tmrnabooleanfalseSkip tmRNA detection & annotation
--bakta_skip_rrnabooleanfalseSkip rRNA detection & annotation
--bakta_skip_ncrnabooleanfalseSkip ncRNA detection & annotation
--bakta_skip_ncrna_regionbooleanfalseSkip ncRNA region detection & annotation
--bakta_skip_crisprbooleanfalseSkip CRISPR array detection & annotation
--bakta_skip_cdsbooleanfalseSkip CDS detection & annotation
--bakta_skip_sorfbooleanfalseSkip sORF detection & annotation
--bakta_skip_gapbooleanfalseSkip gap detection & annotation
--bakta_skip_oribooleanfalseSkip oriC/oriT detection & annotation
--bakta_optsstringExtra Bakta options in quotes. Example: '--gram +'

Prokka Parameters

ParameterTypeDefaultDescription
--prokka_proteinsstring${projectDir}/data/proteins.faaFASTA file of trusted proteins to first annotate from
--prokka_prodigal_tfstringTraining file to use for Prodigal
--prokka_compliantbooleanfalseForce Genbank/ENA/DDJB compliance
--prokka_centrestringBactopiaSequencing centre ID
--prokka_coverageinteger80Minimum coverage on query protein
--prokka_evaluestring1e-09Similarity e-value cut-off
--prokka_optsstringExtra Prokka options in quotes.
--prokka_debugbooleanfalseEnable debug mode for Prokka

AgrVATE Parameters

ParameterTypeDefaultDescription
--agrvate_typing_onlybooleanfalseagr typing only. Skips agr operon extraction and frameshift detection

spaTyper Parameters

ParameterTypeDefaultDescription
--spatyper_repeatsstringList of spa repeats
--spatyper_repeat_orderstringList spa types and order of repeats
--spatyper_do_enrichbooleanfalseDo PCR product enrichment

sccmec Parameters

ParameterTypeDefaultDescription
--sccmec_min_targets_pidentinteger90Minimum percent identity to count a target hit
--sccmec_min_targets_coverageinteger80Minimum percent coverage to count a target hit
--sccmec_min_regions_pidentinteger85Minimum percent identity to count a region hit
--sccmec_min_regions_coverageinteger93Minimum percent coverage to count a region hit

StaphSCAN Parameters

ParameterTypeDefaultDescription
--staphscan_modulesstringComma-separated list of modules to run
--staphscan_db_mlststringPath or tarball to custom MLST database
Dataset Parameters

Define where the pipeline should find input data and save output data.

ParameterTypeDefaultDescription
--speciesstringName of species for species-specific dataset to use
--ask_merlinbooleanAsk Merlin to execute species specific Bactopia tools based on Mash distances
--coverageinteger100Reduce samples to a given coverage, requires a genome size
--genome_sizeinteger0Expected genome size (bp) for all samples, required for read error correction and read subsampling
--use_baktabooleanUse Bakta for annotation, instead of Prokka
Optional Parameters

These optional parameters can be useful in certain settings.

ParameterTypeDefaultDescription
--outdirstringbactopiaBase directory to write results to
--skip_compressionbooleanfalseOutput files will not be compressed
--datasetsstringThe path to cache datasets to
--keep_all_filesbooleanfalseKeeps all analysis files created
Max Job Request Parameters

Set the top limit for requested resources for any single job.

ParameterTypeDefaultDescription
--max_retryinteger3Maximum times to retry a process before allowing it to fail.
--max_cpusinteger4Maximum number of CPUs that can be requested for any single job.
--max_memorystring128.GBMaximum amount of memory that can be requested for any single job.
--max_timestring240.hMaximum amount of time that can be requested for any single job.
--max_downloadsinteger3Maximum number of samples to download at a time
Nextflow Configuration Parameters

Parameters to fine-tune your Nextflow setup.

ParameterTypeDefaultDescription
--nfconfigstringA Nextflow compatible config file for custom profiles, loaded last and will overwrite existing variables if set.
--publish_dir_modestringcopyMethod used to save pipeline results to output directory. (choices: symlink, rellink, link, copy, copyNoFollow, move)
--infodirstring${params.outdir}/pipeline_infoDirectory to keep pipeline Nextflow logs and reports.
--forcebooleanfalseNextflow will overwrite existing output files.
--cleanup_workdirbooleanfalseAfter Bactopia is successfully executed, the work directory will be deleted.
Institutional config options

Parameters used to describe centralized config profiles. These should not be edited.

ParameterTypeDefaultDescription
--custom_config_versionstringmasterGit commit id for Institutional configs.
--custom_config_basestringhttps://raw.githubusercontent.com/nf-core/configs/masterBase directory for Institutional configs.
--config_profile_namestringInstitutional config name.
--config_profile_descriptionstringInstitutional config description.
--config_profile_contactstringInstitutional config contact information.
--config_profile_urlstringInstitutional config URL link.
Nextflow Profile Parameters

Parameters to fine-tune your Nextflow setup.

ParameterTypeDefaultDescription
--condadirstringDirectory to Nextflow should use for Conda environments
--registrystringquay.ioRegistry to pull Docker containers from.
--datasets_cachestring<HOME>/.bactopia/datasetsDirectory where downloaded datasets should be stored.
--singularity_cachestringDirectory where remote Singularity images are stored.
--singularity_pull_docker_containerbooleanInstead of directly downloading Singularity images for use with Singularity, force the workflow to pull and convert Docker containers instead.
--force_rebuildbooleanfalseForce overwrite of existing pre-built environments.
--queuestringgeneral,high-memoryComma-separated name of the queue(s) to be used by a job scheduler (e.g. AWS Batch or SLURM)
--cluster_optsstringAdditional options to pass to the executor. (e.g. SLURM: '--account=my_acct_name'
--container_optsstringAdditional options to pass to Apptainer, Docker, or Singularity. (e.g. Singularity: '-D pwd'
--disable_scratchbooleanfalseAll intermediate files created on worker nodes of will be transferred to the head node.
Helpful Parameters

Uncommonly used parameters that might be useful.

ParameterTypeDefaultDescription
--monochrome_logsbooleanDo not use coloured log outputs.
--nfdirbooleanPrint directory Nextflow has pulled Bactopia to
--sleep_timeinteger5The amount of time (seconds) Nextflow will wait after setting up datasets before execution.
--validate_paramsbooleantrueBoolean whether to validate parameters against the schema at runtime
--helpbooleanDisplay help text.
--wfstringbactopiaSpecify which workflow or Bactopia Tool to execute
--list_wfsbooleanList the available workflows and Bactopia Tools to use with '--wf'
--show_hidden_paramsbooleanShow all params when using --help
--help_allbooleanAn alias for --help --show_hidden_params
--versionbooleanDisplay version text.

Composition

This workflow uses the following subworkflows:

  • amrfinderplus - Find antimicrobial resistance genes and point mutations.
  • bactopia_assembler - Assemble bacterial genomes using automated assembler selection.
  • bactopia_datasets - Download and provide pre-compiled datasets required by Bactopia.
  • bactopia_gather - Search, validate, gather, and standardize input samples.
  • bactopia_qc - Perform comprehensive quality control on sequencing reads.
  • bactopia_sketcher - Create genomic sketches and perform rapid taxonomic classification.
  • bakta - Rapid bacterial genome annotation.
  • mlst - Determine multilocus sequence types (MLST) from bacterial assemblies.
  • prokka - Annotate bacterial genomes with functional information.
  • staphtyper - Determine the agr, spa, SCCmec types and perform genome-based surveillance for Staphylococcus aureus genomes.

Citations

If you use this in your analysis, please cite the following.

Source

View source on GitHub