- Hi, I am finding the differential peaks using DiffBind, but my sample has two replicates. And my code is
library("DiffBind")
siDDX5 <-dba(sampleSheet="siDDX5.csv")
siDDX5 <- dba.count(summits=FALSE,siDDX5, bUseSummarizeOverlaps=TRUE)
siDDX5 <- dba.contrast(siDDX5, categories=DBA_TREATMENT,minMembers =2)
siDDX5 <- dba.analyze(siDDX5, method=DBA_ALL_METHODS)
comp1.deseq <- dba.report(siDDX5, method=DBA_DESEQ2, contrast = 1, th=1)
out <- as.data.frame(comp1.deseq) deseq.bed <- out[ which(out$FDR < 0.1), c("seqnames", "start", "end", "strand", "Fold")] write.table(deseq.bed,file="results/siDDX5/siDDX5_vs_control_deseq2_sig.bed", sep="\t", quote=F, row.names=F, col.names=F)
- But When performing the differential analysis, I got the following failure:
Analyzing...
Adding contrasts(s)...
Analyze error: Error in pv.DBA(DBA, method, bTagwise = bTagwise, minMembers = 3, bParallel = bParallel): Unable to perform analysis: no contrasts specified.
- But I didn't have the same problem using DiffBind 3.0.15, my
samplesheet
is :siDDX5 <- dba(sampleSheet="siDDX5.csv")
siDDX5
4 Samples, 43921 sites in matrix (87804 total):
ID Treatment Replicate Intervals
1 Control1 Control 1 42372
2 Control2 Control 2 50406
3 siDDX5-1 siDDX5 1 66390
4 siDDX5-2 siDDX5 2 61316
- I had another problem using DiffBind 3.0.15, but I find an a method a developer provided in biostar, that is a problem about Nomolize with default. I used
dba.blacklist()
beforedba.count()
. It works. I saw developers would solve the problem in DiffBind 3.2, so I have a try.Now I have a new problem. I can only use DiffBind 3.0.15 back
I have added
dba.show(siDDX5, bContrasts=TRUE)
, but I got the same failure. Warning messages:siDDX5
4 Samples, 43710 sites in matrix:
ID Treatment Replicate Reads FRiP
1 Control1 Control 1 25177288 0.18
2 Control2 Control 2 34144959 0.26
3 siDDX5-1 siDDX5 1 29878083 0.29
4 siDDX5-2 siDDX5 2 31768685 0.32
The call to
dba.show()
isn't meant to change anything, only to report if a contrast was added. What was returned from the call? WithminMembers=2
, a contrast should be added (Control vs siDDX5). Ifdba.show()
returnsNULL
then there are no valid contrasts, which is why thedba.analyze()
call is failing.I still suspect that a contrast is being added, but the object passed in to
dba.analyze()
is not the same one as is being returned fromdba.contrast()
.I'd need to have access to the
siDDX5
DBA object itself to see if I can reproduce this. You can save it to a file usingdba.save()
and either email it to me if it is not too large, or send me a link where I can download it (eg Dropbox).content contained a link only that has been edited by a moderator.
the content has been classified as spam by an automated moderation system as it contained little more than a link.
I have now reverted that spam classification but also removed the link.
in general, asking people to download Rdata files off the web is not a good idea. the problem should be worked out with a toy example rather than the entire dataset
Alright, I have a link(OneDirve) this is a file using
dba.save()