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
Hello shivyasoni1994 ,
Please use the formatting bar (especially the
code
option) to present your post better. I've done it for you this time.Thank you!
Thankyou ......................!