Question: Writing and loading expression sets to and from csv files.
0
gravatar for popantrop
3.0 years ago by
popantrop40
popantrop40 wrote:

One can write an expression set into a csv file using csv.write. For example, using the standard bladderbatch bioconductor package the following code writes a csv file to the current working drectory:

library("bladderbatch")
data("bladderdata")
write.csv(bladderEset, "bladderEset.csv")

Is there a tool which can read the produced csv file back into R as an expressionSet?

If not, is there a eset ↔ csv serialiser/deserialiser, which can both output esets as csv files and read csv files as esets?

The reason I'm asking is because I need to interact with esets with python and java code, and I can easily work with "csv" files, but not with ".rda", ".CEL" or other binary files.

microarray bioconductor R • 2.0k views
ADD COMMENTlink modified 3.0 years ago by Kevin Blighe68k • written 3.0 years ago by popantrop40
0
gravatar for Kevin Blighe
3.0 years ago by
Kevin Blighe68k
Republic of Ireland
Kevin Blighe68k wrote:

To read it back in, use read.csv("bladderEset.csv").

To convert to an eset object, use the ExpressionSet package and function, and supply your data-matrix as the assayData parameter. You can also set the phenotype data.

Further reading: https://www.rdocumentation.org/packages/Biobase/versions/2.32.0/topics/ExpressionSet

ADD COMMENTlink modified 3.0 years ago • written 3.0 years ago by Kevin Blighe68k
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: 2139 users visited in the last hour