Question: How to export rld (rlog) or vsd values from DESeq2?
0
gravatar for LuisNagano
9 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 • 855 views
ADD COMMENTlink modified 9 months ago by WouterDeCoster41k • written 9 months ago by LuisNagano10
0
gravatar for WouterDeCoster
9 months ago by
Belgium
WouterDeCoster41k wrote:

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

ADD COMMENTlink written 9 months ago by WouterDeCoster41k

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 9 months ago by LuisNagano10

And what about something like

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

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 9 months ago by LuisNagano10
0
gravatar for WouterDeCoster
9 months ago by
Belgium
WouterDeCoster41k wrote:

Right, what about

rld <- assay(rlog(dds, blind=FALSE))
ADD COMMENTlink written 9 months ago by WouterDeCoster41k

Worked it out! Thank you, WouterDeCoster

ADD REPLYlink written 9 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: 813 users visited in the last hour