Biostar Beta. Not for public use.
Question: unable to load quant.sf files
0
Entering edit mode

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

ADD COMMENTlink 16 months ago shivyasoni1994 • 0
Entering edit mode
0

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 REPLYlink 16 months ago
finswimmer
11k
Entering edit mode
0

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

ADD REPLYlink 16 months ago
shivyasoni1994
• 0
3
Entering edit mode

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 COMMENTlink 16 months ago rizoic • 190
Entering edit mode
0

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

ADD REPLYlink 16 months ago
shivyasoni1994
• 0

Login before adding your answer.

Similar Posts
Loading Similar Posts
Powered by the version 2.0