unable to load quant.sf files
1
0
Entering edit mode
5.5 years ago

Hi, I am am trying to use tximport, but running into:

all(file.exists(files))
[1] FALSE

I started like this:

I imported the libraries

library("tximport")

then

library("readr")

I refered to directory, containig the quant.sf files

dir <- '/home/dell/Desktop/quant'

inside directory quant

> list.files(dir)

[1] "gencode.v28.annotation.sqlite" "quant3.sf"                    
[3] "quant4.sf"                     "quant5.sf"                    
[5] "quant6.sf"                     "quant7.sf"                    
[7] "sample.txt"

then, sample.txt file

> samples <- read.table(file.path(dir, "sample.txt"), header = TRUE)

veiw of sample.txt

> samples

  run_id condition
1 quant3  NormalF5
2 quanr4  NormalM7
3 quant5   TumorM7
4 quant6   TumorF6

tried this

> files <- c("'/home/dell/Desktop/quant/quant3.sf'","'/home/dell/Desktop/quant/quant4.sf'","'/home/dell/Desktop/quant/quant5.sf'","'/home/dell/Desktop/quant/quant6.sf'")

then

> names(files) <- paste0("run_id", 1:4)

and got

> all(file.exists(files))
[1] FALSE

Kindly suggest possible solution. Thanks in advance

R tximport • 2.2k views
ADD COMMENT
0
Entering edit mode

Hello shivyasoni1994 ,

Please use the formatting bar (especially the code option) to present your post better. I've done it for you this time.
code_formatting

Thank you!

ADD REPLY
0
Entering edit mode

Thankyou ......................!

ADD REPLY
3
Entering edit mode
5.5 years ago
rizoic ▴ 250

Can you add the output when you enter files on the terminal. You should not have both double/single quotes when you initialize files. Try removing the single quotes and changing the statement where you initialize files to files <- c("/home/dell/Desktop/quant/quant3.sf", {same for other files}).

ADD COMMENT
0
Entering edit mode

Thankyou so much, it solved my problem.. thankyou!!!!

ADD REPLY

Login before adding your answer.

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