Hello everybody,
I am trying to read some files from temporary path to do differential expression using codlink package. I have phenotype files on the same path which i read by
pdata = read.AnnotatedDataFrame(lst[i],path=newpath,sep="")
and it works happily
Now when i call
codset = readCodelinkSet(filename = pdata$FileName,phenoData = pdata)
It gives an error saying cannot open connection, which is quite obvious as my files are not in the local directory but on the temporary path. So is there an option to set the path which currently i don't find in readCodelinkSet(). I mean something like
codset = readCodelinkSet(filename = pdata$FileName,path=...,phenoData = pdata)
Or is there an alternate option to do it.
Hi dear Diego,
I tried your code but got an error:
My pdata looks like
In my example the column with the file names is called "FileNames" in your data is called "FileName" hence the error. Try fixing the column name:
pdata$FileName <- file.path(newpath, pdata$FileName)
Oh... !! Yes you are absolutely right . Thanks