Changes between Version 28 and Version 29 of SOPs/miningSAMBAM
- Timestamp:
- 07/17/15 12:59:34 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SOPs/miningSAMBAM
v28 v29 90 90 bam_stat.py -i mapped_reads.bam >& bam_stat.out.txt 91 91 }}} 92 93 === Get only uniquely mapped reads from sam/bam files generated by bowtie2 === 94 95 {{{ 96 # For sam files: 97 grep -v "XS:i" | grep "AS:i" foo.sam >| foo_uniquely_mapped.sam 98 # For bam files: 99 samtools view -h foo.bam |grep -E -v "XS:i"|grep -E "@|AS:i" |samtools view -b - >| foo_uniquely_mapped.bam 100 }}} 101 92 102 93 103 === View alignment with samtools ===