I have very basic knowledge in R, and I am following a workflow to do gene expression analysis of an already existing data set from GEO. The following commands are used for unzipping the cels.
untar("GSE27447_RAW.tar", exdir="data")
cels = list.files("data/", pattern = "CEL")
sapply(paste("data", cels, sep="/"), gunzip)
ERROR
cels = list.files("data/", pattern = "CEL")
I am using the commands above to unzip the files, but I am getting the following error message after sapply. Could somebody please tell me what this means?
Error in FUN(X[[i]], ...) :
Argument 'filename' and 'destname' are identical: data/