Description

Counts the number of alignments in a BAM/CRAM/SAM file for each FLAG type

Input

name:type
description
pattern

meta{:bash}

:map

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

bam{:bash}

:file

BAM/CRAM/SAM file

*.{bam,cram,sam}

bai{:bash}

:file

Index for BAM/CRAM/SAM file

*.{bai,crai,sai}

Output

name:type
description
pattern

flagstat{:bash}

meta{:bash}

:map

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

*.flagstat{:bash}

:file

File containing samtools flagstat output

*.{flagstat}

versions_samtools{:bash}

${task.process}{:bash}

:string

The name of the process

samtools{:bash}

:string

The name of the tool

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 name of the process

samtools{:bash}

:string

The name of the tool

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

:eval

The expression to obtain the version of the tool

Tools

samtools
MIT

SAMtools is a set of utilities for interacting with and post-processing short DNA sequence read alignments in the SAM, BAM and CRAM formats, written by Heng Li. These files are generated as output by short read aligners like BWA.