Hi everyone, I want to extrapolate RPKM value from Diffbind. Investigated regions are TSS (± 2.5kb) but around 3500 TSS are "lost" because merged. I have read that in the new version of DiffBind is possible to use dbObj_region$config$mergeOverlap with negative value to avoid merge but I'm not able to use.
Below my code
library(DiffBind)
region <- read.csv("DiffBind_template_peaks.csv")
DBA <- dba(sampleSheet=region)
DBA$config$mergeOverlap = -1
DBA_Count <- dba.count(DBA, score=DBA_SCORE_RPKM)
rpkm <- dba.peakset(DBA_Count, bRetrieve=TRUE)
Thanks a lot in advance
ciao Giuseppe
Hi Rory,
Thanks for your suggestion, however I cannot resolve the problem.
After retrieving TSS list (n = 23069) and put this as bed file for each samples, I proceed with DiffBind
I set this parameters (as suggested)
and proceed with
dba.count
but if I check the regions I found 19996 (at beginning I have 23069)
Where I'm wrong?
Thanks in advance
ciao
Giuseppe