I am trying to use the DADA2 package on fastQ files (human microbiome samples), but when trying to run this code: (this is for time point 1 , "T1")
fqT1 <- sort(list.files(path, pattern="T1.fastq", full.names=TRUE)) sample.names <- sapply(strsplit(basename(fqT1),".T"), "[", 1) filt_T1 <- file.path(path, "filtered", paste0(sample.names, ".T1.filt.fastq.gz")) out_T1 <- filterAndTrim(fqT1, filt_T1, truncLen = 280, maxN=0, maxEE = 2, rm.phix=TRUE, compress=TRUE, multithread=FALSE) out_T1
I get: Error in normalizePath(path.expand(path), winslash, mustWork) : path="./reads/IAM01.T1.fastq": Access is denied
Does this mean I don't have full permission to these fastQ files or does it have to do with something else?
Thanks in advance!