Description

Bamcmp (Bam Compare) is a tool for assigning reads between a primary genome and a contamination genome. For instance, filtering out mouse reads from patient derived xenograft mouse models (PDX).

Input

name:type
description
pattern

meta:map

Groovy Map containing sample information e.g. [ id:‘test’]

primary_aligned_bam:file

BAM/CRAM/SAM file with the reads aligned to the primary genome (the one you want to keep)

*.{bam,cram,sam}

contaminant_aligned_bam:file

BAM/CRAM/SAM file with the reads aligned to the contaminant genome (the one you want to filter out)

*.{bam,cram,sam}

Output

name:type
description
pattern

primary_filtered_bam

meta:file

Bam file containing the reads which align better to the primary genome.

*.{bam,cram,sam}

${prefix}.bam:file

Bam file containing the reads which align better to the primary genome.

*.{bam,cram,sam}

contamination_bam

meta:file

Bam file containing the reads which align better to the contaminant genome.

*.{bam,cram,sam}

${prefix2}.bam:file

Bam file containing the reads which align better to the contaminant genome.

*.{bam,cram,sam}

versions

versions.yml:file

File containing software versions

versions.yml

Tools

bamcmp
GPL v3

Bamcmp is a tool for deconvolving host and graft reads, using two bam files. Reads should be mapped to two genomes, and the mapped, sorted bam files supplied to the tool. It is highly recommended to use the "-s as" option not the "-s mapq" option, else reads which multimap to the contamination genome will be spuriously kept.