From Genome Analysis Wiki
Overview of the
dumpHeader function of
dumpHeader option on the bamUtil executable prints the header of the specified SAM/BAM file to cout.
Required Parameters: filename : the sam/bam filename whose header should be printed.
./bam dumpHeader <inputFile>
- 0: the header was successfully read and printed.
- non-0: the header was not successfully read or was not printed. (Returns the SamStatus.)
@SQ SN:1 LN:247249719 @SQ SN:2 LN:242951149 @SQ SN:3 LN:199501827