Changes between Version 41 and Version 42 of SOPs/miningSAMBAM


Ignore:
Timestamp:
03/20/19 15:57:54 (6 years ago)
Author:
gbell
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SOPs/miningSAMBAM

    v41 v42  
    106106
    107107=== Remove unmapped reads ===
    108 
    109 
    110 {{{
    111 samtools view -hS -F 4 mapped_unmapped.sam > mapped_only.sam
     108{{{
     109samtools view -h -F 4 mapped_unmapped.bam | samtools view -bS > mapped_only.bam
     110}}}
     111
     112=== Extract unmapped reads ===
     113{{{
     114samtools view -h -f 4 mapped_unmapped.bam | samtools view -bS > unmapped_only.bam
    112115}}}
    113116
     
    116119
    117120{{{
    118 samtools view -hS -f 2 mapped_unmapped.sam > mapped.properly_paired.sam
     121samtools view -h -f 2 mapped_unmapped.sam > mapped.properly_paired.sam
    119122}}}
    120123
     
    139142
    140143{{{
    141 # Using picard tools, mark duplicates only, this is the default
     144# Using Picard tools, mark duplicates only, this is the default
    142145/pathtojava/java -jar /path_to_picard-tools/picard.jar  MarkDuplicates  I=input.bam O=ouput.marked_duplicates.bam \
    143146      M=ouputFileWithStats_metrics.txt  REMOVE_DUPLICATES=FALSE
    144147
    145148
    146 # Using picard tools, remove duplicates
     149# Using Picard tools, remove duplicates
    147150/pathtojava/java -jar /path_to_picard-tools/picard.jar  MarkDuplicates  I=input.bam O=ouput.marked_duplicates.bam \
    148151      M=ouputFileWithStats_metrics.txt  REMOVE_DUPLICATES=TRUE