Changes between Version 13 and Version 14 of SOPs/miningSAMBAM
- Timestamp:
- 06/02/14 15:58:16 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SOPs/miningSAMBAM
v13 v14 93 93 bsub "qualimap bamqc -bam myFile.bam -outdir output_qualimap" 94 94 }}} 95 96 === Get a list of multi-mapped reads, including the number of times each one was mapped === 97 98 Tophat/bowtie mappers create the tag NH:i:XXX where XXX is the number of times the read has mapped. 99 {{{ 100 bsub "samtools view accepted_hits.bam | grep -v NH:i:1 | perl -pe 's/AS.+(NH:i:\d+)/\$1/' | cut -f1,10,12 | perl -pe 's/NH:i://' | sort -u -k3,3nr > Multi-mapped.sorted.sam" 101 # Output format: 102 # read_ID<tab>read<tab>number times mapped 103 }}}