Description

Replace the header in the bam file with the header generated by the command. This command is much faster than replacing the header with a BAM→SAM→BAM conversion.

Input

Name (Type)
Description
Pattern

meta (map)

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

bam (file)

BAM/CRAM file to be reheaded

*.{bam,cram}

Output

Name (Type)
Description
Pattern

meta (map)

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

versions (file)

File containing software versions

versions.yml

bam (file)

Reheaded BAM/CRAM file

*.{bam,cram}

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.