Dear Rory,
I read peaksets to DiffBind as follows:
wt <- dba.peakset(NULL, peaks = system.file("/home/labs/shlush/avivdm/chipseq31375/9macsbroad/wt1ipchip7-5.NOMODpeaks.broadPeak", package = "DiffBind"), peak.caller = "narrow", sampID="WT1_75", tissue = "K562", factor = "H3K9Me3", condition = "75", replicate = 1)
wt <- dba.peakset(wt, peaks = system.file("/home/labs/shlush/avivdm/chipseq31375/9macsbroad/wt2ipchip7-5.NOMODpeaks.broadPeak", package = "DiffBind"), peak.caller = "narrow", sampID="WT2_75", tissue = "K562", factor = "H3K9Me3", condition = "75", replicate = 2)
wt <- dba.peakset(wt, peaks = system.file("/home/labs/shlush/avivdm/chipseq31375/9macsbroad/wt1ipchip31-3.NOMODpeaks.broadPeak", package = "DiffBind"), peak.caller = "narrow", sampID="WT1_313", tissue = "K562", factor = "H3K9Me3", condition = "313", replicate = 3)
wt <- dba.peakset(wt, peaks = system.file("/home/labs/shlush/avivdm/chipseq31375/9macsbroad/wt2ipchip31-3.NOMODpeaks.broadPeak", package = "DiffBind"), peak.caller = "narrow", sampID="WT2_313", tissue = "K562", factor = "H3K9Me3", condition = "313", replicate = 4)
and then:
wt_consensus <- dba.peakset(wt, 1:4, minOverlap = 4, bRetrieve = TRUE)
wt_consensus
NULL
wt
4 Samples, 0 sites in matrix:
ID Tissue Factor Condition Replicate Caller Intervals
1 WT1_75 K562 H3K9Me3 75 1 narrow 0
2 WT2_75 K562 H3K9Me3 75 2 narrow 0
3 WT1_313 K562 H3K9Me3 313 3 narrow 0
4 WT2_313 K562 H3K9Me3 313 4 narrow 0
Since all the previous stages of the analysis (according to your tutorial) were OK, this baffles me. What is wrong in what I am doing? Sincerely, Aviv.
Thanks, Rory, for your prompt answer. What solved it was passing the path w/o
system.file()
and w/opackage="DiffBind"
. And I do have peaks when I setminOverlap=4
, which I have to look deeper into. Thanks again.