tximport: not all(file.exists(files)) are true
1
0
Entering edit mode
• 0
@1e548362
Last seen 2.2 years ago
Hong Kong

I used the standard protocol of Cold Spring Harb, and get some .genes.results after most procedures. when I want to import RSEM data, I found that the Rstudio software warned all(file.exists(files)) are true, so how can I solve the problem.

dir <- "/Users/Documents/eQTL_analysis traning"

library(tximport)

library(DESeq2)

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

files <- file.path (dir, samples$Sample, paste0(samples$Sample, ".genes.results"))

names(files) <- samples$Sample

txi <- tximport (files, type = "rsem", txIn = FALSE, txOut = FALSE)
tximport • 860 views
ADD COMMENT
0
Entering edit mode
@mikelove
Last seen 11 hours ago
United States

Check files to see what files are listed and then figure out which (or all) are not on your machine at the location you specified.

file.exists(files)

R will not guess the right location for you. You have to specify the correct location, relative to your current working directory or using absolute paths.

ADD COMMENT

Login before adding your answer.

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