Skip to content

Commit

Permalink
Updated SAM.gz indexing documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
jkbonfield committed Jan 8, 2020
1 parent 2dd125d commit a2916aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions doc/samtools-index.1
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ samtools index
.RB [ -bc ]
.RB [ -m
.IR INT ]
.IR aln.bam | aln.cram
.IR aln.sam | aln.bam | aln.cram
.RI [ out.index ]

.SH DESCRIPTION
.PP
Index a coordinate-sorted BGZIP-compressed SAM, BAM or CRAM file for fast
random access.
(Note that this does not work with uncompressed SAM files.)
Note for SAM this only works if the file has been BGZF compressed first.

This index is needed when
.I region
Expand Down
9 changes: 4 additions & 5 deletions doc/samtools.1
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,11 @@ samtools index
.RB [ -bc ]
.RB [ -m
.IR INT ]
.IR aln.bam | aln.cram
.IR aln.sam.gz | aln.bam | aln.cram
.RI [ out.index ]

Index a coordinate-sorted BAM or CRAM file for fast random access.
(Note that this does not work with SAM files even if they are bgzip
compressed \(em to index such files, use tabix(1) instead.)
Index a coordinate-sorted SAM, BAM or CRAM file for fast random access.
Note for SAM this only works if the file has been BGZF compressed first.

This index is needed when
.I region
Expand All @@ -214,7 +213,7 @@ Otherwise, for a CRAM file
.IR aln.cram ,
index file
.IB aln.cram .crai
will be created; for a BAM file
will be created; for a BAM or SAM file
.IR aln.bam ,
either
.IB aln.bam .bai
Expand Down

0 comments on commit a2916aa

Please sign in to comment.