Changes between Version 14 and Version 15 of SOPs/miningSAMBAM


Ignore:
Timestamp:
06/02/14 15:58:58 (11 years ago)
Author:
gbell
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SOPs/miningSAMBAM

    v14 v15  
    9898Tophat/bowtie mappers create the tag NH:i:XXX where XXX is the number of times the read has mapped.
    9999{{{
    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"
     100bsub "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"
    101101# Output format:
    102102# read_ID<tab>read<tab>number times mapped