Truwl

BETA
Home / Tools / samtools view

Back to samtools

Back To Tools

Overview
samtools view [options] in.sam|in.bam|in.cram [region...] With no options or regions specified, prints all alignments in the specified input alignment file (in SAM, BAM, or CRAM format) to standard output in SAM format (with no header). You may specify one or more space-separated region specifications after the input filename to restrict output to only those alignments which overlap the specified region(s). Use of region specifications requires a coordinate-sorted and indexed input file (in BAM or CRAM format). The -b, -C, -1, -u, -h, -H, and -c options change the output format from the default of headerless SAM, and the -o and -U options set the output file name(s). The -t and -T options provide additional reference data. One of these two options is required when SAM input does not contain @SQ headers, and the -T option is required whenever writing CRAM output. The -L, -M, -r, -R, -s, -q, -l, -m, -f, -F, and -G options filter the alignments that will be included in the output to only those alignments that match certain criteria. The -x and -B options modify the data which is contained in each alignment. Finally, the -@ option can be used to allocate additional threads to be used for compression, and the -? option requests a long help message.
Associations
Tool Uses
Workflows

No workflows found

Meta
Authors
  • HL
    Heng Li

    wrote most of the initial source codes of SAMtools and various converters.

  • BH
    Bob Handsaker

    A major contributor to the SAM/BAM specification. He designed and implemented the BGZF format, the underlying indexable compression format for the BAM format. BGZF does not support arithmetic between file offsets.

  • JR
    Jue Ruan

    Designed and implemented the RAZF format, an alternative indexable compression format. RAZF is no longer used by or provided with SAMtools. Source code remains available in older SAMtools 0.1.x releases and from the standalone branch in the repository.

  • CH
    Colin Hercus

    updated novo2sam.pl to support gapped alignment by novoalign.

  • PD
    Petr Danecek

    contributed the header parsing library sam_header.c and sam2vcf.pl script.

Websites