Skip to content

Contaminant Removal

Introduction

When working with host-associated studies, it is often necessary to isolate the host-related DNA from the sequencing data.

It is very likely that reads that contain host DNA can not be classified with Kraken 2 and simply increase the noise of the dataset. Mapping the read data to the host genome can help to reduce the number of unclassified reads. This process can be repeated to refine the data every time a bit more (e.g. with different phylogenetically close target genomes).

  • Sequencing Data: Choose the type of input data: fasta, single-end, or paired-end. If paired-end is selected, two files per sample are required and the file pattern has to be provided.
  • Reads:Select files that contain the desired input data.
  • Paired-end configuration: When working with paired-end libraries, a so-called pattern has to be established to help the software distinguish between upstream and downstream read files. Per default, we assume the following pattern:

  • upstream: SampleA_1.fastq

  • downstream: SampleA_2.fastq

For SRR037717_1.fastq and SRR037717_2.fastq as up and downstream files, please select "_1" and "_2" respectively for the patterns.

  • Database Index: Choose from one of the included target genomes (Homo sapiens, Mus musculus, PhiX, etc.), or select Create database from genome and provide your own genome.
  • Target Genome: Select the target genome in Fasta format to map the selected read data against.

Figure 1

  • Save Results: Choose whether to save only contaminant, non-contaminant, or both types of sequences.

Figure 2

OmicsBox Engine

This tool can be run from the command line via the OmicsBox Engine.

Command: omicsbox cont-rem [options]

Inputs

Flag Type Required Description
--i-read-files-single-end file (multiple) No Single-End
--i-read-files-paired-end file (multiple) No Paired-End
--i-target-genome file No Target Genome

Parameters

Flag Type Default Range / Candidates Required Description
--sequencing enum fastq_pe fasta
fastq_se
fastq_pe
No Sequencing Data
--upstream-pattern string _1 No Upstream Files Pattern
--downstream-pattern string _2 No Downstream Files Pattern
--target-index enum Homo sapiens (grch38) Create database from genome
Homo sapiens (grch38)
Mus musculus (grcm39)
Arabidopsis thaliana (tair10_1)
PhiX
No Database Index
--result-mode enum only_other only_aligned
only_other
both
No Save Results

Parameter relationships

Flag When Effect Affected flags
--result-mode only_aligned enables ContRemParameters.outputAligned
--result-mode only_aligned disables ContRemParameters.outputOther
--result-mode both enables ContRemParameters.outputAligned

Note: --upstream-pattern, --downstream-pattern, --i-target-genome are context-dependent — they apply, and their valid values are determined, only for certain input configurations.

Global options (--local-folder, --cloud-folder, --output-format, --config, --detach, --verbose, …) are shared by every Engine tool and are not repeated here — see the OmicsBox Engine reference.

References

  • Langmead B. and Salzberg SL. (2012). Fast gapped-read alignment with Bowtie 2. Nature methods, 9(4), 357-9.
  • Li H., Handsaker B., Wysoker A., Fennell T., Ruan J., Homer N., Marth G., Abecasis G. and Durbin R. (2009). The Sequence Alignment/Map format and SAMtools. Bioinformatics (Oxford, England), 25(16), 2078-9.
  • Okonechnikov K., Conesa A. and Garcia-Alcalde F. (2016). Qualimap 2: advanced multi-sample quality control for high-throughput sequencing data. Bioinformatics (Oxford, England), 32(2), 292-4.