Entering edit mode
3.5 years ago
xxxxxxxx
▴
20
While importing data from a database(ArrayExpress) using this -
anno_AE <- getAE("accessionid", path = raw_data_dir, type = "raw")
sdrf_location <- file.path(raw_data_dir, "accessionid.sdrf.txt")
SDRF <- read.delim(sdrf_location, stringsAsFactors = FALSE)
rownames(SDRF) <- SDRF$Array.Data.File
After this-
SDRF <- AnnotatedDataFrame(SDRF)
Cannot able to find column 'Array.data.file' in SDRF
How to solve this issue?
can you post output from
colnames(SDRF)
here?I am confused after finding similar question on https://stackoverflow.com/questions/67514240/gpr-txt-really-a-cel-file-error-in-read-celfile-headerx by xyzzz. This post has different input for
rownames(SDRF)
compared to here, but rest of the content is same.in this post:
rownames(SDRF) <- SDRF$Array.Data.File
In SO post;
rownames(SDRF) <- make.unique(SDRF$Array.Data.File)
Please note that the volunteers here spend their time to address an issue and please respect their time.
Please post the output from
colnames(SDRF)
Maybe check the spelling you have
[37] "Array.Data.File"
, and it expects"Array.data.file"
when I am trying to write this -
after $ when I click on tab it is not showing the colnames?
Thanks for posting the colnames output. can you post output from
SDRF$Array.Data.File
here? Btw, is there any reason whyAnnotatedDataframe
is built from only onedataframe
unless you are supplying phenodata elsewhere? My understanding is that it is created from data frame and corresponding metadata. In addition open youraccessionid.sdrf.txt
and check the entries underArray.Data.File
column. They must all be cel files. If you have checked theE-MTAB-2967.sdrf.txt
mentioned in the tutorial you are following, you would find only cel files in that column.