Directory provided does not exist
1
0
Entering edit mode
29 days ago
nuorain ▴ 30

Hello, I don't have problem in reading single sample by the script:

GSM4837523.data <- Read10X(data.dir = "GSM4837523_02dat20190515tisCARconDIS_featurebcmatrixfiltered\\outs\\filtered_feature_bc_matrix")

But when I use the script to read all samples, I encounter the error: Directory provided does not exist.

dirs <- dir("C:\\Users\\nuora\\OneDrive\\Desktop\\GSE159677", full.names = TRUE)
length(dirs)

SRRs <- lapply(dirs, function(dir){
  CreateSeuratObject(counts = Read10X(paste(dir,"GSM4837523_02dat20190515tisCARconDIS_featurebcmatrixfiltered\\outs\\filtered_feature_bc_matrix", sep="/")), project = dir, min.cells = 3, min.features = 200)
})
Read10x • 400 views
ADD COMMENT
0
Entering edit mode

You are on windows, don't sep="/", use sep="\\"

ADD REPLY
0
Entering edit mode

Hi Bastien Herve, Thank you for your message. I got the same error.

Error in Read10X(paste(dir, "GSM4837523_02dat20190515tisCARconDIS_featurebcmatrixfiltered\\outs\\filtered_feature_bc_matrix",  : 
  Directory provided does not exist
ADD REPLY
2
Entering edit mode
28 days ago

Please consider being acquainted with basic level debugging. If the computer tells you that it cannot find the directory, make sure that the directory exist on your computer, or that the path to that directory is correct.

Put a print in your lapply and check if the directories exist.

ADD COMMENT
0
Entering edit mode

Thanks. I deleted the extra file under the directory. Now it works. Have a nice day!!!

ADD REPLY

Login before adding your answer.

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