Venn diagram using contrasts in DiffBind
1
0
Entering edit mode
Silvia • 0
@silvia-7163
Last seen 3.4 years ago
United Kingdom

Hi Rory,

I was trying to plot, using DiffBind_2.2.12, a Venn diagram for the following contrast (the only one present in my DBA object):

1 Contrast:
  Group1 Members1 Group2 Members2 DB.edgeR
1  CondA        3  CondB        3    64883

...which I generated using these commands:

> db_analysis = dba.contrast(db_analysis, minMembers=3, categories=DBA_TREATMENT)
> db_analysis = dba.analyze(db_analysis, method=DBA_EDGER)

However, I got the following error:

> dba.plotVenn(db_analysis, contrast=1, th=0.05, method=DBA_EDGER)
Error in dba.plotVenn(db_analysis, contrast = 1, th = 0.05, method = DBA_EDGER) :
  Only one peakset meets specified criteria.

Could you please help me to find out what I am doing wrong?

Thanks a lot!

Silvia

diffbind • 2.5k views
ADD COMMENT
0
Entering edit mode
Rory Stark ★ 5.2k
@rory-stark-5741
Last seen 4 weeks ago
Cambridge, UK

Hi Silvia-

When you specify contrasts to dba.plotVenn(), it will show the overlap of differentially bound sites in the results for the contrasts. Therefore you need to specify more than one contrast (or alternatively, more than one analysis method for a contrast) to have something to overlap. You have specified a single contrast (contrast=1) and a single analysis method (method=DBA_EDGER), so there is only one set of differentially bound sites -- hence nothing to show the overlap for.

Cheers-

Rory

ADD COMMENT
0
Entering edit mode

Hi Rory,

How to add more than one contrast?

I tried to plot Venn using 4 . contrasts, but I got error like this:

Error in dba.plotVenn(all, contrasts(b)) : Too many peaksets in mask.

Thanks!  

ADD REPLY
0
Entering edit mode

Can you show me the precise call you made to dba.plotVenn() (and any context that may be of use)? Is it the same as above except you set contrast=1:4?

ADD REPLY

Login before adding your answer.

Traffic: 751 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6