Changes between Version 13 and Version 14 of SOPs/miningSAMBAM


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

--

Legend:

Unmodified
Added
Removed
Modified
  • SOPs/miningSAMBAM

    v13 v14  
    9393bsub "qualimap bamqc -bam myFile.bam -outdir output_qualimap"
    9494}}}
     95
     96=== Get a list of multi-mapped reads, including the number of times each one was mapped ===
     97
     98Tophat/bowtie mappers create the tag NH:i:XXX where XXX is the number of times the read has mapped.
     99{{{
     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.sam"
     101# Output format:
     102# read_ID<tab>read<tab>number times mapped
     103}}}