Changes between Version 48 and Version 49 of SOPs/miningSAMBAM
- Timestamp:
- 10/29/20 11:54:59 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SOPs/miningSAMBAM
v48 v49 98 98 {{{ 99 99 # Method 2 (one chromosome at a time, for example, chr2) 100 # From SAM101 awk -F"\t" '$3 == "chr2" {print $1}' mapped_reads.sam | sort -u | wc -l102 # From BAM103 100 samtools view mapped_reads.bam chr2 | cut -f 1 | sort -u | wc -l 104 101 }}} … … 118 115 119 116 {{{ 120 samtools view -h -f 2 mapped_unmapped.sam > mapped.properly_paired.sam 121 }}} 122 117 samtools view -h -f 2 mapped_unmapped.bam | samtools view -bS > mapped.properly_paired.bam 118 }}} 119 120 === Extract spliced reads === 121 122 {{{ 123 samtools view -h All_reads.bam | awk '$0 ~ /^@/ || $6 ~ /N/' | samtools view -bS > Spliced_reads.bam 124 }}} 123 125 124 126 === How many multiple/uniquely mapped reads are in a bam/sam file? ===