How to save results of each step from ChAMP pipeline?
Entering edit mode
Federica ▴ 10
Last seen 16 months ago

Hi everyone,

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

I'm following the follow tutorial:

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 • 373 views
Entering edit mode
Yuan Tian ▴ 250
Last seen 12 months 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


Login before adding your answer.

Traffic: 312 users visited in the last hour
Help About
Access RSS

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

Powered by the version 2.3.6