Skip to main content

bactopia_assembler

Tags: bacteria assembly hybrid shovill dragonflye unicycler illumina nanopore sample-scope

Assemble bacterial genomes using short read, long read, or hybrid strategies.

Automatically selects the appropriate assembler based on input read types:

  • Short Paired-End Reads: Uses Shovill (SKESA/SPAdes wrapper).
  • Short Single-End Reads: Uses Shovill (SKESA/SPAdes wrapper).
  • Long Reads: Uses Dragonflye (Flye/Miniasm wrapper).
  • Hybrid: Uses Unicycler or Dragonflye (with polishing).

Summary statistics for each assembly are generated using assembly-scan.

Uses named record input with explicit read slots (r1, r2, se, lr, assembly) as Path?.

When runtype is 'assembly' or 'assembly_accession' and --reassemble is not set,

the original assembly is used without re-assembly.

Inputs

record (
meta: Record,
r1: Path?,
r2: Path?,
se: Path?,
lr: Path?,
fna: Path?
)
FieldTypeDescription
metaRecordGroovy Record containing sample information
r1Path?Illumina R1 reads (paired-end)
r2Path?Illumina R2 reads (paired-end)
sePath?Single-end Illumina reads
lrPath?Long reads (ONT/PacBio) for long-read or hybrid assembly
fnaPath?Assembly file (FASTA) for assembly-based runtypes

Outputs

record (
meta: Record,
fna: Path?,
r1: Path?,
r2: Path?,
se: Path?,
lr: Path?,
tsv: Path?,
results: Set<Path>,
logs: Set<Path?>,
nf_logs: Set<Path>,
versions: Set<Path>
)
FieldTypeDescription
metaRecordSample information record
fnaPath?Assembled contigs in FASTA format
r1Path?Passthrough Illumina R1 reads
r2Path?Passthrough Illumina R2 reads
sePath?Passthrough single-end reads
lrPath?Passthrough long reads
tsvPath?Tab-delimited report of assembly statistics (N50, length, coverage)
resultsSet<Path>All output files to be published
logsSet<Path?>Optional program specific log files
nf_logsSet<Path>Nextflow-specific log files (e.g. .command.{begin
versionsSet<Path>A YAML formatted file with program versions

Parameters

Used By

Subworkflows

Workflows

  • bactopia - Comprehensive bacterial analysis pipeline for complete genomic characterization.
  • staphopia - Comprehensive analysis pipeline for Staphylococcus aureus isolates.

Citations

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

Source

View source on GitHub

Version

BACTOPIA_ASSEMBLER:
- bactopia-assembler: 1.0.5