How to save results of each step from ChAMP pipeline?
1
0
Entering edit mode
Federica ▴ 10
@federica-24874
Last seen 2.9 years ago
Italy

Hi everyone,

I'm trying to test a pipeline to analyse methylation array data using ChAMP package.

I'm following the follow tutorial:

https://www.bioconductor.org/packages/release/bioc/vignettes/ChAMP/inst/doc/ChAMP.html

Now, I'm wondering: how can I save the results of each step of ChAMP pipeline? It seems to me that it'd be necessary to do it manually using a command in R.

For example, I've performed the filtering step by running the following commands:

myImport <- champ.import(testDir)
myLoad <- champ.filter()

The results of the previous commands are simply reported on the shell of R and they aren't saved in any format in my working directory. How can I save these results? And which format should I use to save them?

Thank u!

Bioconductor ChAMP • 1.0k views
ADD COMMENT
2
Entering edit mode
Yuan Tian ▴ 270
@yuan-tian-13904
Last seen 2.6 years ago
United Kingdom

Hi Federica:

Each step in ChAMP pipeline should generate a R object, which could be list, dataframe, vector. etc. You can save it like a normal R objects like save(myLoad, file="myLoad.RData"), then you can reload them anytime you want.

However, it's not easy to save them into a "easy to open" format like Excel, txt, because as I said there are lists, dataframe, vectors in it. Personally I suggest people firstly check what are these returned result via R, like using head() function, and read manual. Then for some key results, for example dataframe result from champ.DMP(), you may save it into Excel like: write_xls(myDMP[[1]], "DMPExcelTable.xlsx")

Best Tian

ADD COMMENT

Login before adding your answer.

Traffic: 555 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