Saba
Saba

Reputation: 21

read.gct function in R. which package will support the function read.gct("file path") in R. How to read gct file in R

I have a gct file which I want to read in R for gene expression analysis. however the read.gct("file path") is not being recognized. Do I need a package which supports the function. if yes then what is the package called. thanks

Upvotes: 2

Views: 8344

Answers (1)

Axel Künstner
Axel Künstner

Reputation: 51

This thread is slightly older. Anyhow, another solution is to use read.table() with no need for any other library. GCT files are just plain text files. One just has to skip the header lines:

dat.gct <- read.delim(file="GTEx_Analysis.gct.gz", skip=2)

Upvotes: 5

Related Questions