Entering edit mode
Matan G.
▴
60
@matan-g-22483
Last seen 3.3 years ago
Hi,
Is there a way to set the input in the design section of DESeq2 as variables?
The aim is that the colname chosen will be a variable that can be changed elsewhere in the script rather than the location of the design itself.
Best
Hi Michael, Thank you for replying.
I'm getting the message:
Tried in various ways to apply your suggestion with no success. According to the error I understand that I have to define colData before running
dds <- DESeqDataSetFromMatrix
...And then make sure that the variable in the design section would be a column in colData.
This is one of the methods I've tried:
I'm obviously using it wrong, I thought it has to do either with the fact that it has to be in the context of a dataset and not a seperate data frame. or with the fact that the column subsetting I'm using is not equivalent to using "$".
Hope you can help me solve this.
All the best
I don’t think you got my suggestion. The design argument takes a formula. So you can provide a character string to formula() to pass to
design
.Hi thank you for the input.
Unfortunately i still can't mange to apply it. struggling with the information about formula() usage.
Best regards
I guess this is a bit out of scope for the support site, as there isn't an issue with using DESeq2 per se, but you want to write a program that calls DESeq2 programmatically. As you are stuck at this stage, I would recommend consulting with someone at your institute who has R programming experience.
Ok sure,
Thank you for your time and explanation.
Best
For whoever is interested, what worked for me was:
Best