Skip to main content

deacon_filter

Tags: host contamination decontamination depletion filtering minimizer reads deacon sample-scope

Filter host reads from sequencing data using minimizer-based comparison.

Uses deacon to identify and remove host reads from FASTQ files using SIMD-accelerated minimizer comparison against a pre-built or custom reference index. Supports paired-end, single-end, and long reads.

Database Required

Requires a deacon minimizer index. Use the deacon/fetch module to download a pre-built index (e.g., panhuman-1) or deacon/index to build one from a reference FASTA.

Inputs

record (
meta: Record,
r1: Path?,
r2: Path?,
se: Path?,
lr: Path?
)
FieldTypeDescription
metaRecordGroovy Record containing sample information
r1Path?Illumina R1 reads (paired-end forward)
r2Path?Illumina R2 reads (paired-end reverse)
sePath?Single-end Illumina reads
lrPath?Long reads (ONT/PacBio)
db: Path
NameTypeDescription
dbPathDeacon minimizer index file (.idx) for host read filtering

Outputs

record (
meta: Record,
special_meta: Record,
r1: Path?,
r2: Path?,
se: Path?,
lr: Path?,
scrub_report: Path,
json_summary: Path,
results: Set<Path>,
logs: Set<Path?>,
nf_logs: Set<Path>,
versions: Set<Path>
)
FieldTypeDescription
metaRecordSample information record
special_metaRecordA simplified metadata record for downstream report joining
r1Path?Filtered paired-end forward reads
r2Path?Filtered paired-end reverse reads
sePath?Filtered single-end reads
lrPath?Filtered long reads
scrub_reportPathSummary report of reads removed during filtering
json_summaryPathDeacon JSON summary of the filtering run
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

Deacon Filter Parameters

ParameterTypeDefaultDescription
--deacon_abs_thresholdinteger2Minimum absolute number of minimizer hits for a match
--deacon_dbstringPath to a pre-existing deacon index (.idx) for host read filtering
--deacon_depletebooleantrueDiscard matching sequences instead of keeping them
--deacon_optsstringAdditional deacon filter options not covered by other parameters
--deacon_prefix_lengthinteger0Search only the first N nucleotides per sequence (0 for all)
--deacon_rel_thresholdnumber0.01Minimum relative proportion (0.0-1.0) of minimizer hits for a match

Used By

Subworkflows

  • deacon - Remove host reads from sequencing data using deacon.

Citations

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

Source

View source on GitHub

Version

DEACON_FILTER:
- bactopia-teton: 1.1.4