how to convert expression set data into matrix data ?
2
0
Entering edit mode
Anne Sauve ▴ 10
@anne-sauve-396
Last seen 10.2 years ago
Hello, I am trying to convert some expression set data into a matrix format in order to do computations on them. The way I do it now is in 3 steps: write.exprs(B[,14],file="B.txt") B = read.table("B.txt") Bmat = as.matrix(Bmat) where B is an expression set with 15 samples and 12626 genes. Is there a more direct way of doing that conversion ? Thanks for your help, Anne _______________________________________________ Bioconductor mailing list Bioconductor@stat.math.ethz.ch https://www.stat.math.ethz.ch/mailman/listinfo/bioconductor
convert convert • 2.5k views
ADD COMMENT
0
Entering edit mode
@rafael-a-irizarry-205
Last seen 10.2 years ago
yes! the method exprs gives you back the matrix of expressions in an instace of the exprSet class. in you example simply use: Bmat <- exprs(B) On Fri, 1 Aug 2003, Anne Sauve wrote: > Hello, > > I am trying to convert some expression set data into a matrix format > in order to do computations on them. > > The way I do it now is in 3 steps: > > write.exprs(B[,14],file="B.txt") > B = read.table("B.txt") > Bmat = as.matrix(Bmat) > > where B is an expression set with 15 samples and 12626 genes. > > Is there a more direct way of doing that conversion ? > > Thanks for your help, > > Anne > > _______________________________________________ > Bioconductor mailing list > Bioconductor@stat.math.ethz.ch > https://www.stat.math.ethz.ch/mailman/listinfo/bioconductor > > _______________________________________________ > Bioconductor mailing list > Bioconductor@stat.math.ethz.ch > https://www.stat.math.ethz.ch/mailman/listinfo/bioconductor >
ADD COMMENT
0
Entering edit mode
@jean-yee-hwa-yang-104
Last seen 10.2 years ago
Hi Anne, Use data <- exprs(B) You will find more information from the Biobase vignettes. Jean On Fri, 1 Aug 2003, Anne Sauve wrote: > Hello, > > I am trying to convert some expression set data into a matrix format > in order to do computations on them. > > The way I do it now is in 3 steps: > > write.exprs(B[,14],file="B.txt") > B = read.table("B.txt") > Bmat = as.matrix(Bmat) > > where B is an expression set with 15 samples and 12626 genes. > > Is there a more direct way of doing that conversion ? > > Thanks for your help, > > Anne > > _______________________________________________ > Bioconductor mailing list > Bioconductor@stat.math.ethz.ch > https://www.stat.math.ethz.ch/mailman/listinfo/bioconductor > > _______________________________________________ > Bioconductor mailing list > Bioconductor@stat.math.ethz.ch > https://www.stat.math.ethz.ch/mailman/listinfo/bioconductor >
ADD COMMENT

Login before adding your answer.

Traffic: 589 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6