dds,listc() vs dds(,contrast=list c()
1
0
Entering edit mode
kavator ▴ 30
@kavator-22955
Last seen 22 months ago
Singapore

Hi everyone it is not clear to me what is the difference between results(dds, contrast=list) and results(dds, list) i have been scrutinizing the online tutorials for some of the multifactorial designs for example here: https://rstudio-pubs-static.s3.amazonaws.com/329027_593046fb6d7a427da6b2c538caf601e1.html#example-4-two-conditionss-three-genotpes-with-interaction-terms they use results (dds,list) to compare mutant-treatment vs WT-treatment in a 2x2 design (mut vs wt) (treated vs control) with the following

res = results(dds, list( c("genotype_MU_vs_WT","genotypeMU.conditionTrt") ))

i was curious- are results (dds, contrast=list()) the same? let's say for the example of comparing mutant -treatment vs WT-treatment comparison

deseq2 • 477 views
ADD COMMENT
1
Entering edit mode
@mikelove
Last seen 14 hours ago
United States

In R, if you don’t name arguments (eg contrast=...) then it follows the order of the arguments in the function definition. The second argument is contrast, so there is no difference.

ADD COMMENT

Login before adding your answer.

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