Changes between Version 44 and Version 45 of SOPs/atac_Seq


Ignore:
Timestamp:
06/01/21 13:27:37 (4 years ago)
Author:
byuan
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SOPs/atac_Seq

    v44 v45  
    129129
    130130MACS v2 is applicable for ATAC-Seq using the appropriate options/parameters.
    131 ENCODE pipeline macs2 code:
    132 {{{
    133 
    134   # Create virtual SE file containing both read pairs
    135   bedtools bamtobed -i filtered.bam | awk 'BEGIN{OFS="\t"}{$4="N";$5="1000";print $0}'| gzip -c > tagAlign.gz
    136 
    137   # Call peaks: ENCODE using very small p-value, so it could get enough peaks for IDR
    138   macs2 callpeak -t tagAlign.gz -n foo.narrow -f BED -g ${species} -p 0.01 --nomodel --shift -75 --extsize 150 --call-summits --keep-dup all -B --SPMR --call-summits
    139 
    140 }}}
    141 
    142 MACS2 Commands used in ATAC-seq review paper:
     131
     132MACS2 [[ https://github.com/alexyfyf/atac_nf/blob/7f996b7de0e349c5a10dbbd75b2c266339517a3b/atac.nf#L341 | commands used in ATAC-seq review paper ]]: [[https://genomebiology.biomedcentral.com/articles/10.1186/s13059-020-1929-3 | From reads to insight: a hitchhiker’s guide to ATAC-seq data analysis]]
    143133{{{
    144134    # convert bam to bed
     
    148138}}}
    149139
    150 
    151 
    152 
    153 
    154 If using the 'BAMPE' option with paired-end reads, let MACS run the pileup and calculate 'extsize'; ask MACS to keep only 1 read if duplicates are present.
    155 {{{
    156 
    157 macs2 callpeak -f BAMPE -t file.sorted.bam  --keep-dup 1 -B -q 0.01 -g mm -n MACS_ATACSeq_Peaks
    158 
     140ENCODE pipeline macs2 code:
     141{{{
     142
     143  # Create virtual SE file containing both read pairs
     144  bedtools bamtobed -i filtered.bam | awk 'BEGIN{OFS="\t"}{$4="N";$5="1000";print $0}'| gzip -c > tagAlign.gz
     145
     146  # Call peaks: ENCODE uses very small p-value, so it could get enough peaks for IDR
     147  macs2 callpeak -t tagAlign.gz -n foo.narrow -f BED -g ${species} -p 0.01 --nomodel --shift -75 --extsize 150 --call-summits --keep-dup all -B --SPMR --call-summits
     148
     149}}}
     150
     151
     152If using the 'BAMPE' option with paired-end reads, let MACS run the pileup and calculate 'extsize';
    159153#note: if duplicates were removed, use --keep-dup all; if not, use --keep-dup 1.  Removing duplicates is recommended.
     154{{{
     155
     156macs2 callpeak -f BAMPE -t file.sorted.bam  --keep-dup all -B -q 0.01 -g mm -n MACS_ATACSeq_Peaks
     157
     158
    160159
    161160#BAMPE format: there is no special format for BAMPE - MACS will treat PE reads as coming from the same fragment, from the manual,