Dear author,
I am using your package Diffbind to perform chip-seq analysis of my data. In my analysis, I used three different peak callers for each sample, and I used Diffbind to retrieve the consensus. Now, I would like to center the consensus peaks in order to perform a motif analysis. I read (https://www.biostars.org/p/87925/) that you say that Diffbind allows it by using the dba.count function and using the "summits" argument.
I tried to perform this analysis, here the the script:
sample1 = dba.peakset(sample1, minOverlap=3,sampID="sample1_consensus")
sample1<-dba.count(sample1,peaks=sample1$masks$Consensus,summits=200)
but the following error appears:
Error in pv$peaks[[i]] : index out of bound
I don't know how to solve this error. I would also like t ask you how I can retrieve the genomic coordinates of the centered peaks after dba.count function.
Thank you in advance for your help.
Best regards,
Paola