Changes between Version 61 and Version 62 of SOPs/atac_Seq


Ignore:
Timestamp:
06/15/21 12:45:23 (4 years ago)
Author:
byuan
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SOPs/atac_Seq

    v61 v62  
    176176     * 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]].
    177177{{{
    178     # 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
     178# convert bam to bed
     179bedtools bamtobed -i foo.bam > foo_pe.bed
     180# shift reads
     181cat 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
     184macs2 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
    185185 
    186186}}}
     
    191191
    192192{{{
    193     macs2 callpeak -f BAMPE -t NFR.bam  --keep-dup all -B -q 0.01 -g mm -n MACS_ATACSeq_Peaks
     193macs2 callpeak -f BAMPE -t NFR.bam  --keep-dup all -B -q 0.01 -g mm -n MACS_ATACSeq_Peaks
    194194}}}
    195195
     
    197197{{{
    198198
    199    macs2 callpeak -t $foo.bam -f BAM -B -q 0.01 -g hs -n foo --nomodel --shift -75 --extsize 150
     199macs2 callpeak -t $foo.bam -f BAM -B -q 0.01 -g hs -n foo --nomodel --shift -75 --extsize 150
    200200}}}
    201201