Changes between Version 22 and Version 23 of SOPs/miningSAMBAM
- Timestamp:
- 12/12/14 16:29:44 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SOPs/miningSAMBAM
v22 v23 1 == S ummarizing, processing and quality control(QC) of SAM/BAM files==1 == SAM/BAM summarizing, processing and quality control(QC) == 2 2 3 Many of these involve [http://samtools.sourceforge.net/samtools.shtml |samtools]3 Many of these involve [http://samtools.sourceforge.net/samtools.shtml samtools] 4 4 5 5 === Convert, sort, and/or index === … … 30 30 /nfs/BaRC_Public/BaRC_code/Perl/SAM_to_BAM_sort_index/SAM_to_BAM_sort_index.pl 31 31 }}} 32 33 === Differences between SAM and BAM files === 34 35 * A BAM file is a binary version of a SAM file. 36 * Both contain identical information about reads and their mapping. 37 * A BAM file requires a header but a SAM file may not have one. (Use 'samtools view -h reads.bam' to print the header with the mapped reads.) 38 * Many operations (such as sorting and indexing) work only on BAM files. 39 * For almost any application that requires SAM input, this can be created on the fly from a BAM file (using 'samtools view reads.bam |'). 40 * BAM files take up much less space than SAM files. 41 * For archiving purposes, keep only the BAM file. The SAM file can easily be regenerated (if ever needed). 32 42 33 43 === Modify a BAM file into another BAM file ===