Entering edit mode
Trying to retrieve my raw peaks . Here trying to get peaks called by macs2 for sample L13S13
I should have 94888 but I get 269818 . Seems to be the number of consensus when taking the whole object.
show(dba_chip_init) ID Tissue Factor Condition Treatment Replicate Caller Intervals 1 L13S13 MCF10 K27AC T1 Tamoxifen 1 macs 94888 2 L142S14 MCF10 K27AC T1 Tamoxifen 3 macs 100680 3 L17S17 MCF10 K27AC T7 Tamoxifen 1 macs 106629 .... 19 T1_INPUT MCF10 Control T1 Tamoxifen c1 269818 20 T7_INPUT MCF10 Control T7 Tamoxifen c2 269818 21 unT7_INPUT MCF10 Control unT7 unTreated c3 269818
raw_peak <- dba.peakset(dba_chip_init,sampID="L13S13",consensus=F,bRetrieve=T,DataType=DBA_DATA_GRANGES,minOverlap=0.99) export.bed(raw_peak, paste0(c(dir_output,"/peaksPerSampleInBed/",opt$output,".peaks.bed"),collapse=""))
EDIT : Or just how can can get the path of raw files to then retrieve via dba.peasket(dbaObject=NULL,peaks=pathToFile,bRetrieve=T
) juste the peaks called with any consensus added.
Thnaks
Got the following error :
UPDATE : Also tried another strategy :
I get :
whereas I should retrieve 94888 raw peaks for this sample:
I'm not sure I understand your code -- what is the call to
peaks()
on the third line?-R