Skip to main content

defensefinder_run

Tags: bacteria defense-systems antiviral phage crispr restriction-modification hmm macsyfinder sample-scope

Detect anti-phage defense systems using HMM profiles.

Uses DefenseFinder to systematically search protein sequences for known antiviral defense systems (e.g., CRISPR-Cas, Restriction-Modification, TA systems, CBASS) using MacSyFinder and a dedicated database of HMM models.

Database Required

Requires the DefenseFinder HMM database to be available.

Inputs

record (
meta: Record,
faa: Path
)
FieldTypeDescription
metaRecordGroovy Record containing sample information
faaPathProtein sequences in FASTA format (amino acids)
db: Path
NameTypeDescription
dbPathDirectory containing the DefenseFinder models database

Outputs

record (
meta: Record,
genes_tsv: Path,
hmmer_tsv: Path,
systems_tsv: Path,
proteins: Path?,
proteins_index: Path?,
macsydata_raw: Path?,
results: Set<Path>,
logs: Set<Path?>,
nf_logs: Set<Path>,
versions: Set<Path>
)
FieldTypeDescription
metaRecordSample information record
genes_tsvPathTab-delimited list of detected defense genes
hmmer_tsvPathTab-delimited list of HMMER hits used for detection
systems_tsvPathTab-delimited summary of detected defense systems
proteinsPath?Protein sequences of the detected defense genes
proteins_indexPath?Index file for the protein sequences
macsydata_rawPath?Compressed tarball of raw MacSyFinder data
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

defense-finder Parameters

ParameterTypeDefaultDescription
--defensefinder_coveragenumber0.4Minimal percentage of coverage for each profiles
--defensefinder_dbtypestringordered_repliconThe macsyfinder --db-type option (choices: ordered_replicon, gembase, unordered)

Used By

Subworkflows

  • defensefinder - Systematically search for anti-phage defense systems.

Workflows

  • defensefinder - Systematic identification of anti-phage defense systems.

Citations

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

Source

View source on GitHub

Version

DEFENSEFINDER_RUN:
- defense-finder: 2.0.1