We do not have genomic background control. We ran treated (LT1) samples and non-treated (control, LC1) samples. My task is to identify regions that are differentially methylated between control and treated. The commands adapted from here. However, this case we do not have the genomic background control so how does macs2
generate the b3tTime0_control_lambda.bdg
? And I am doing it right in order to get the differently methylated areas?
macs2 callpeak -B -t LC3.bam -n b3cTime0 -f BAM -g 2105347242 --outdir b3
macs2 callpeak -B -t LT1.bam -n b3tTime0 -f BAM -g 2105347242 --outdir b3
macs2 bdgdiff --t1 b3/b3tTime0_treat_pileup.bdg\
--c1 b3/b3tTime0_control_lambda.bdg\
--t2 b3/b3cTime0_treat_pileup.bdg\
--c2 b3/b3cTime0_control_lambda.bdg\
--d1 13141281 --d2 17278204 -g 60 -l 120 --o-prefix diff_
It may just be me, but I don't understand your post.
How can you use MACS2 to determine methylation? MACS2 is used to find enriched regions (peaks) in immunoprecipitated DNA, and does not check the methylation status of the bases, as far as I know.
To compare the immunoprecipitated regions in two ChIP-Seq experiments, without any background controls, I just run MACS2 callpeaks on both samples. I don't run MACS2 bdgdiff. So, just run MACS2 callpeak on both samples at the same time. You'll have to run it twice, inverting the treatment and the control, to get peaks enriched in both conditions.
But, this has nothing to do with methylation.
@ablanachetcohen My fault. I should mention that my libraries were generated with MeDIP-seq protocol.
Interesting. No, I guess it's just my ignorance. We always use bisulfite conversion, occasionally combined with ChIP-Seq (BisChIP-Seq). I hadn't heard of MeDIP.
My answer though would still be the same. Just run MACS2 callpeak twice, putting each sample as either treatment or control. If the background is the same in both samples, this approach is valid. I sometimes use this approach even when I have background controls for the samples, because MACS2 bdgdiff returns only a log10 probability ratio that is difficult to interpret. MACS2 callpeak returns much more detailed results that make it easier to subsequently filter the peaks.
I actually did think about using this approach, then I saw the tutorial of
bdgdiff
. And I thought it may be the better tool to do the task. Anyway, thanks for the suggestion, I will try the "flipping peakcall" approach as well.