Question: Writing and loading expression sets to and from csv files.
0
gravatar for popantrop
18 months ago by
popantrop30
popantrop30 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 • 1.0k views
ADD COMMENTlink modified 18 months ago by Kevin Blighe42k • written 18 months ago by popantrop30
0
gravatar for Kevin Blighe
18 months ago by
Kevin Blighe42k
Republic of Ireland
Kevin Blighe42k 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 18 months ago • written 18 months ago by Kevin Blighe42k
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: 1733 users visited in the last hour