Hi, I have downloaded 450k data and want to read in minfi. When i downloaded the file it comes with csv, txt and excel files, but it does not have any idat files.
I have tried to read the csv file in minfi according to the tuitorial. But i get below error. Did anybody have the same problem and knows how to solve this? Thank you in advance!
targets <- read.metharray.sheet("/home/GSE36278/", pattern="sample.csv") ##The csv file had been renamed [read.metharray.sheet]
Found the following CSV files: [1] "/home/GSE36278/sample.csv"
Warning messages:
1: In FUN(X[[i]], ...) : Could not infer array name for file: /home/GSE36278//sample.csv
2: In FUN(X[[i]], ...) : Could not infer slide name for file: /home/GSE36278//sample.csv
rgSet <- read.metharray.exp(targets=targets)
Error in read.metharray.exp(targets = targets) :
Need 'Basename' amongst the column names of 'targets'
I had to create the sample sheet myself today because my data came without it and I realized that in my case the read function did actually not use the Basename column but inferred the filenames by pasting slide + "_" + array together and then + "Red"/"Grn". So without those 2 columns which should be the basenames (withoug _Red/Grn) it did not work.
Example: One of my basenames was 4841860009C so I had to put 4841860009 under $Slide and $C under Array. The filenames were accordingly 4841860009CRed.idat and 4841860009C_Grn.idat
Best wishes