Changes between Version 14 and Version 15 of SOPs/miningSAMBAM
- Timestamp:
- 06/02/14 15:58:58 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SOPs/miningSAMBAM
v14 v15 98 98 Tophat/bowtie mappers create the tag NH:i:XXX where XXX is the number of times the read has mapped. 99 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"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.txt" 101 101 # Output format: 102 102 # read_ID<tab>read<tab>number times mapped