Changes between Version 61 and Version 62 of SOPs/atac_Seq
- Timestamp:
 - 06/15/21 12:45:23 (4 years ago)
 
Legend:
- Unmodified
 - Added
 - Removed
 - Modified
 
- 
      
SOPs/atac_Seq
v61 v62 176 176 * If you are working with other species or don't have replicates, you can run macs2 with pair-end bed as an input. It considers ends of both mates, focus on [[https://twitter.com/XiChenUoM/status/1336658454866325506|cutting/insertion sites enrichment in ATAC-seq]]. 177 177 {{{ 178 # convert bam to bed179 bedtools bamtobed -i foo.bam > foo_pe.bed180 # shift reads181 cat foo.pe.bed | awk -F $'\t' 'BEGIN {OFS = FS}{ if ($6 == "+") {$2 = $2 + 4} else if ($6 == "-") {$3 = $3 - 5} print $0}' >| foo_tn5_pe.bed182 # call peaks.183 # --keep-dup all: since duplicates have been removed in previous step184 macs2 callpeak -t foo_tn5_pe.bed -n foo -f BED -g mm -q 0.01 --nomodel --shift -75 --extsize 150 --call-summits --keep-dup all178 # convert bam to bed 179 bedtools bamtobed -i foo.bam > foo_pe.bed 180 # shift reads 181 cat foo.pe.bed | awk -F $'\t' 'BEGIN {OFS = FS}{ if ($6 == "+") {$2 = $2 + 4} else if ($6 == "-") {$3 = $3 - 5} print $0}' >| foo_tn5_pe.bed 182 # call peaks. 183 # --keep-dup all: since duplicates have been removed in previous step 184 macs2 callpeak -t foo_tn5_pe.bed -n foo -f BED -g mm -q 0.01 --nomodel --shift -75 --extsize 150 --call-summits --keep-dup all 185 185 186 186 }}} … … 191 191 192 192 {{{ 193 macs2 callpeak -f BAMPE -t NFR.bam --keep-dup all -B -q 0.01 -g mm -n MACS_ATACSeq_Peaks193 macs2 callpeak -f BAMPE -t NFR.bam --keep-dup all -B -q 0.01 -g mm -n MACS_ATACSeq_Peaks 194 194 }}} 195 195 … … 197 197 {{{ 198 198 199 macs2 callpeak -t $foo.bam -f BAM -B -q 0.01 -g hs -n foo --nomodel --shift -75 --extsize 150199 macs2 callpeak -t $foo.bam -f BAM -B -q 0.01 -g hs -n foo --nomodel --shift -75 --extsize 150 200 200 }}} 201 201  
