×

nf-core/samtools/flagstat @ 0.0.0-6c4ed3a

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

Latest version: 0.0.0-6c4ed3a
Total downloads: 8
Source: nf-core/modules
Authors: @drpatelh
Maintainers: @drpatelh @matthdsm

Summary

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

Get started

Add the following snippet to your workflow script to include this module.

include { SAMTOOLS_FLAGSTAT } from 'nf-core/samtools/flagstat'

License

MIT License

Process
Name SAMTOOLS_FLAGSTAT
Input 1 channel
#1 tuple
meta map

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

bam file

BAM/CRAM/SAM file

*.{bam,cram,sam}
bai file

Index for BAM/CRAM/SAM file

*.{bai,crai,sai}
Output 2 channels
#1 flagstat tuple
meta map

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

*.flagstat file

File containing samtools flagstat output

*.{flagstat}
#2 versions_samtools tuple
${task.process} string

The name of the process

samtools string

The name of the tool

samtools version | sed '1!d;s/.* //' eval

The expression to obtain the version of the tool

Tool Description Homepage
samtools 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. http://www.htslib.org/
Version 0.0.0-6c4ed3a
Commit ID 6c4ed3a220310b905a1fc9d04f05be2e0837142b
Release Date 23 Apr 2026 15:42:24 (UTC)
Download URL https://registry.nextflow.io/api/v1/modules/nf-core%2Fsamtools%2Fflagstat/0.0.0-6c4ed3a/download
OCI Store URL https://public.cr.seqera.io/v2/nextflow/plugin/modules/nf-core/samtools/flagstat/blobs/sha256:ccc2dff7ad24ca2479a3fc4b3e0df30826dbcf583d9eba1d560a82cd3fb7665a
Size 2.6 KB
Checksum sha256:ccc2dff7ad24ca2479a3fc4b3e0df30826dbcf583d9eba1d560a82cd3fb7665a
Downloads 3
Version Date Status Downloads Size
0.0.0-6c4ed3a 23 Apr 2026 15:42:24 (UTC) 3 2.6 KB
0.0.0-0c7146d 08 Apr 2026 19:33:49 (UTC) 5 2.6 KB