mobsuite
Tags: plasmid reconstruction annotation mobile-genetic-elements typing bactopia-tool
Reconstruction and annotation of plasmids from bacterial genome assemblies.
This Bactopia Tool uses MOB-suite to identify, reconstruct, and annotate plasmid sequences from draft genome assemblies. It separates plasmid from chromosomal contigs, groups plasmid sequences into clusters, and provides comprehensive plasmid typing and mobility information.
Usage
Bactopia CLI:
bactopia --wf mobsuite \
--bactopia /path/to/your/bactopia/results
Nextflow:
nextflow run bactopia/bactopia/workflows/bactopia-tools/mobsuite/main.nf \
--bactopia /path/to/your/bactopia/results
Outputs
Expected Output Files
<BACTOPIA_DIR>
├── <SAMPLE_NAME>
│ └── tools
│ └── mobsuite-<TIMESTAMP>
│ ├── <SAMPLE_NAME>-chromosome.fasta.gz
│ ├── <SAMPLE_NAME>-contig_report.txt
│ ├── <SAMPLE_NAME>-mobtyper.txt
│ ├── logs
│ │ ├── nf.command.{begin,err,log,out,run,sh,trace}
│ │ └── versions.yml
│ └── plasmid_AA840.fasta.gz
└── bactopia-runs
└── mobsuite-<TIMESTAMP>
├── merged-results
│ ├── logs
│ │ └── mobsuite-concat
│ │ ├── nf.command.{begin,err,log,out,run,sh,trace}
│ │ └── versions.yml
│ └── mobsuite.tsv
└── nf-reports
├── mobsuite-dag.dot
├── mobsuite-report.html
└── mobsuite-timeline.html
Per-Sample Results
| File | Description |
|---|---|
chromosome.fasta | FASTA file containing all contigs identified as chromosomal |
contig_report.txt | Report assigning each contig to chromosome or plasmid group |
plasmid_*.fasta | Individual FASTA files for each reconstructed plasmid |
*-mobtyper.txt | MOB-typer report with plasmid typing and mobility information |
Merged Results
| File | Description |
|---|---|
mobsuite.tsv | Merged TSV file containing MOB-suite results from all samples |
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.
| Extension | Description |
|---|---|
| .begin | An empty file used to designate the process started |
| .err | Contains STDERR outputs from the process |
| .log | Contains both STDERR and STDOUT outputs from the process |
| .out | Contains STDOUT outputs from the process |
| .run | The script Nextflow uses to stage/unstage files and queue processes based on given profile |
| .sh | The script executed by bash for the process |
| .trace | The Nextflow trace report for the process |
| versions.yml | A 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.
| Filename | Description |
|---|---|
| mobsuite-dag.dot | The Nextflow DAG visualization |
| mobsuite-report.html | The Nextflow Execution Report |
| mobsuite-timeline.html | The Nextflow Timeline Report |
| mobsuite-trace.txt | The Nextflow Trace report |
Parameters
Required Parameters
Define where the pipeline should find input data and save output data.
| Parameter | Type | Default | Description |
|---|---|---|---|
--bactopia | string | The path to bactopia results to use as inputs |
MOB-suite Recon Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
--mobsuite_max_contig_size | integer | 310000 | Maximum size of a contig to be considered a plasmid |
--mobsuite_min_contig_size | integer | 1000 | Minimum length of contigs to classify |
--mobsuite_max_plasmid_size | integer | 350000 | Maximum size of a reconstructed plasmid |
Filtering Parameters
Use these parameters to specify which samples to include or exclude.
| Parameter | Type | Default | Description |
|---|---|---|---|
--include | string | A text file containing sample names (one per line) to include from the analysis | |
--exclude | string | A text file containing sample names (one per line) to exclude from the analysis |
Optional Parameters
These optional parameters can be useful in certain settings.
| Parameter | Type | Default | Description |
|---|---|---|---|
--outdir | string | bactopia | Base directory to write results to |
Nextflow Profile Parameters
Parameters to fine-tune your Nextflow setup.
| Parameter | Type | Default | Description |
|---|---|---|---|
--datasets_cache | string | <HOME>/.bactopia/datasets | Directory where downloaded datasets should be stored. |
Helpful Parameters
Uncommonly used parameters that might be useful.
| Parameter | Type | Default | Description |
|---|---|---|---|
--wf | string | bactopia | Specify which workflow or Bactopia Tool to execute |
--list_wfs | boolean | List the available workflows and Bactopia Tools to use with '--wf' | |
--help_all | boolean | An alias for --help --show_hidden_params | |
--version | boolean | Display version text. |
Composition
This workflow uses the following subworkflows:
- mobsuite - Reconstruct and type plasmids from bacterial genome assemblies.
Citations
If you use this in your analysis, please cite the following.
-
Bactopia
Petit III RA, Read TD Bactopia - a flexible pipeline for complete analysis of bacterial genomes. mSystems 5 (2020) -
csvtk
Shen, W csvtk: A cross-platform, efficient and practical CSV/TSV toolkit in Golang. (GitHub) -
MOB-suite
Robertson J, Nash JHE MOB-suite: software tools for clustering, reconstruction and typing of plasmids from draft assemblies. Microbial Genomics 4(8). (2018) -
MOB-suite Database
Robertson J, Bessonov K, Schonfeld J, Nash JHE. Universal whole-sequence-based plasmid typing and its utility to prediction of host range and epidemiological surveillance. Microbial Genomics, 6(10)(2020)