diffbind change conditions dinamically
2
0
Entering edit mode
inzirio ▴ 10
@inzirio-13571
Last seen 13 months ago
Italy

Hi,

once loaded a dba object, and already computed the counts, is there a way to change only the design conditions column in order to perform the further steps?

I just want to shuffle the sample conditions without computing the counts again in order to perform the contrasts.

Thanks, inzirio

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

You can add contrasts via dba.contrast(), and when you call dba.analyze(), the new contrasts will be computed without recounting.

If you want to clear all the previous contrasts, you can set myDBA$contrasts=NULL before calling dba.contrast() and/or dba.analyze().

ADD COMMENT
0
Entering edit mode
inzirio ▴ 10
@inzirio-13571
Last seen 13 months ago
Italy

Hi Rory, thanks for replying!

I know about the contrasts, but I'd like to dinamically change the labels for each sample in the conditions column.

Is there a way to do that on the dba object? It is because I need to do some permutation of the samples in order to do some tests with some fake data.

I tried to assign a new factor to the dbaObj$samples$Condition, but it doesn't store my changes.

Thanks!

ADD COMMENT
0
Entering edit mode

You can re-set dbaObj$class[DBA_CONDITION,].

ADD REPLY

Login before adding your answer.

Traffic: 366 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