Description

Computes the depth at each position or region.

Input

name:type
description
pattern

meta1{:bash}

:map

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

bam{:bash}

:file

sorted BAM/CRAM/SAM file

*.{bam,cram,sam}

index{:bash}

:file

BAM/CRAM index file

*.{bai,crai}

meta2{:bash}

:map

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

intervals{:bash}

:file

list of positions or regions in specified bed file

*.{bed}

Output

name:type
description
pattern

tsv{:bash}

meta1{:bash}

:map

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

*.tsv{:bash}

:file

The output of samtools depth has three columns - the name of the contig or chromosome, the position and the number of reads aligned at that position

*.{tsv}

versions_samtools{:bash}

${task.process}{:bash}

:string

The process the versions were collected from

samtools{:bash}

:string

The tool name

samtools version | sed "1!d;s/.* //"{:bash}

:eval

The expression to obtain the version of the tool

Topics

name:type
description
pattern

versions{:bash}

${task.process}{:bash}

:string

The process the versions were collected from

samtools{:bash}

:string

The tool name

samtools version | sed "1!d;s/.* //"{:bash}

:eval

The expression to obtain the version of the tool

Tools

samtools
MIT

Tools for dealing with SAM, BAM and CRAM files; samtools depth – computes the read depth at each position or region