Man page - samtools-head(1)
Packages contas this manual
- samtools-cram-size(1)
- samtools-addreplacerg(1)
- samtools-mpileup(1)
- ace2sam(1)
- wgsim(1)
- samtools-consensus(1)
- samtools-phase(1)
- samtools(1)
- samtools-reset(1)
- samtools-ampliconclip(1)
- samtools-depth(1)
- samtools-flagstat(1)
- samtools-coverage(1)
- samtools-dict(1)
- samtools-head(1)
- samtools-sort(1)
- samtools-flags(1)
- samtools-fastq(1)
- samtools-ampliconstats(1)
- samtools-calmd(1)
- samtools-bedcov(1)
- samtools-index(1)
- samtools-merge(1)
- samtools-fasta(1)
- samtools-fqidx(1)
- samtools-collate(1)
- samtools-view(1)
- samtools-split(1)
- samtools-quickcheck(1)
- samtools-samples(1)
- samtools-idxstats(1)
- samtools-fixmate(1)
- samtools-reheader(1)
- samtools-rmdup(1)
- samtools-markdup(1)
- samtools-targetcut(1)
- samtools-depad(1)
- samtools-tview(1)
- samtools-faidx(1)
- samtools-stats(1)
- samtools.pl(1)
- samtools-import(1)
- samtools-cat(1)
- samtools-reference(1)
apt-get install samtools
Manual
| samtools-head(1) | Bioinformatics tools | samtools-head(1) |
NAME
samtools-head - view SAM/BAM/CRAM file headers
SYNOPSIS
samtools head [-h INT] [-n INT] [FILE]
DESCRIPTION
By default, prints all headers from the specified input file to standard output in SAM format. The input alignment file may be in SAM, BAM, or CRAM format; if no FILE is specified, standard input will be read. With appropriate options, only some of the headers and/or additionally some of the alignment records will be printed.
The samtools head command outputs SAM headers exactly as they appear in the input file; in particular, it never adds an @PG header itself. (Other samtools commands add such @PG headers to facilitate provenance tracking in analysis pipelines, but because samtools head never outputs more than a handful of alignment records it is unsuitable for use in such contexts anyway.)
OPTIONS
- -h, --headers INT
- Display only the first INT header lines. By default, all header lines are displayed.
- -n, --records INT
- Also display the first INT alignment records. By default, no alignment records are displayed.
AUTHOR
Written by John Marshall from the University of Glasgow.
SEE ALSO
samtools(1), samtools-view(1)
| 12 September 2024 | samtools-1.21 |