Question: How to export rld (rlog) or vsd values from DESeq2?
0
gravatar for LuisNagano
3 months ago by
LuisNagano10
University of Campinas
LuisNagano10 wrote:

Hi guys, i want to export the rlog values from DESeq2 or vsd, but i only got the dds counts, using the following script:

countsdds <- counts(dds, normalized = TRUE)
write.csv(countsdds, file="dds_norm_counts.csv")

Is there a way to export rlog values?

Thanks for your help!

rna-seq deseq2 vsd rlog • 304 views
ADD COMMENTlink modified 3 months ago by WouterDeCoster37k • written 3 months ago by LuisNagano10
0
gravatar for WouterDeCoster
3 months ago by
Belgium
WouterDeCoster37k wrote:

Googling rld DESeq2 already gives me the answer, e.g. here

ADD COMMENTlink written 3 months ago by WouterDeCoster37k

Thank you, WouterDeCoster, but i don't want to apply the functions "rlog" or "vst", I just did that. I want to export the output values after run the function, like .csv or .xlsx format table to my directory.

ADD REPLYlink written 3 months ago by LuisNagano10

And what about something like

rld <- rlog(dds, blind=FALSE)
write.csv(rld, file="rld.csv")
ADD REPLYlink written 3 months ago by WouterDeCoster37k

I tried, but happens that error:

rld <- rlog(dds, blind=FALSE)
write.csv(rld, file="rld.csv")

Error in as.vector(x) : no method for coercing this S4 class to a vector
ADD REPLYlink written 3 months ago by LuisNagano10

Right, what about

rld <- assay(rlog(dds, blind=FALSE))
ADD REPLYlink written 3 months ago by WouterDeCoster37k

Worked it out! Thank you, WouterDeCoster

ADD REPLYlink written 3 months ago by LuisNagano10
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1203 users visited in the last hour