Computes the depth at each position or region.
meta
:map
Groovy Map containing sample information e.g. [ id:‘test’, single_end:false ]
bam
:file
sorted BAM/CRAM/SAM file
*.{bam,cram,sam}
index
BAM/CRAM index file
*.{bai,crai}
intervals
list of positions or regions in specified bed file
*.{bed}
meta2
Groovy Map containing reference information e.g. [ id:‘test’, genome:‘hg38’ ]
fasta
Reference genome in FASTA format
*.{fasta,fa,fna}
fai
Index file for the reference genome
*.{fai}
tsv
*.tsv
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
${task.process}
:string
The process the versions were collected from
samtools
The tool name
samtools version | sed "1!d;s/.* //"
:eval
The expression to obtain the version of the tool
versions
Tools for dealing with SAM, BAM and CRAM files; samtools depth – computes the read depth at each position or region