Reading TCGA methylation .txt files in R
0
0
Entering edit mode
5.3 years ago

Dear all,

I am trying to analyze Methylation data of cancer patients and compare them with normal samples.

Since the size of methylation data was so huge, I decided to download the entire data as .tar.gz instead of using "GDCdownload" function available in TCGABiolinks.

However I cannot find out how should I read the large number of .txt methylation files after extraction.

Any advice is appreciated

Nazanin

Methylation analysis TCGA • 1.7k views
ADD COMMENT
1
Entering edit mode

Open a single TXT file and then find out which column(s) that you need to retain. Then, perform the following:

  1. create a vector that contains the path of each TXT file
  2. create a loop that will pass over the contents of the vector
  3. in each loop cycle, read in the desired column(s) and bind these together into a single data-frame
ADD REPLY
1
Entering edit mode

Hi Kevin,

Happy new year 2019. Wishing you a prosperous year.

Thank you for your comment.

I will merge the files as you suggest me and let you know the results

ADD REPLY
0
Entering edit mode

Hello Nazanin, I know this is an old post but would you be able to share the script you used to accomplish this?

ADD REPLY

Login before adding your answer.

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