Dear Anshul and IDR community,
I'm having issues trying to calculate peaks for one of the histone modification ChIP-seq datasets released by NIH Epigenomics Roadmap. This time I'm interested in H3K4me1 in embryonic stem cells (data downloaded from
here). I've tried using the two BI replicates and two of the three UCSD replicates, running always into the same bug, which I describe below.
I initially tried macs2 with the input parameters that
you suggest. This is what I get, for instance, when using replicate UCSD.H1.H3K4me1.LL311.bed.gz:
INFO @ Sat, 24 Aug 2013 14:47:18: #2 Build Peak Model...
INFO @ Sat, 24 Aug 2013 14:47:44: #2 number of paired peaks: 0
WARNING @ Sat, 24 Aug 2013 14:47:44: Too few paired peaks (0) so I can not build the model! Broader your MFOLD range parameter may erase this error. If it still can't build the model, we suggest to use --nomodel and --extsize 147 or other fixed number instead.
So obviously the peak-caller isn't being able to come up with a model for peak-pairing. This happens not only with this replicate but also with three others that I've tried so far, which makes me feel that maybe the data quality is low. One solution to this could be to estimate the fragment length and give it to macs2 as a fixed parameter. I tried to figure this out by using spp, following your guidance, but I run into a bug once again:
Error in if ((crosscorr$rel.phantom.coeff >= 0) & (crosscorr$rel.phantom.coeff < :
argument is of length zero
Execution halted
This happens in the run_spp.R script, in the block "# Compute phantom peak coefficient". Obviously, the crosscorr$rel.phantom.coeff is not being successfully calculated, therefore the evaluation throws an error. I wonder if this is happening, again, because the data quality is low.
Anyway, I went on and tried to do peak-calling directly using spp (command exactly as you use it in your pipeline), but the same error was thrown.
I notice someone else had previously
reported this bug, but I didn't find an answer to it.
Any ideas? Have you been able to successfully call peaks on this cell type, for this histone mark?
Thanks a lot!
- Alvaro.