I am trying to create a ballgown object, and I would like to set a phenodata information. For that I do
phenodata <- read.csv('l002.csv')
and my l002.csv file contains the following info
id,state RNA-CCC_8N_S5_L002,control RNA-CCC_8T1_S6_L002,tube RNA-CCC_12N_S7_L002,control RNA-CCC_12T_S8_L002,tube RNA-CCC_13N_S105_L002,control RNA-CCC_13T_S106_L002,tube RNA-CCC_23N_S107_L002,control RNA-CCC_23T_S108_L002,tube
A ballgown folder contains folders that have exactly the same names, e.g. RNA-CCC_8N_S5_L002, RNA-CCC_8T1_S6_L002, etc... Then, I use this piece of code for bg object creation
bg = ballgown(dataDir = "ballgown", samplePattern = "RNA-CCC_", pData = phenodata )
but every time I run it, I have the same error every time:
Error in ballgown(dataDir = "ballgown", samplePattern = "RNA-CCC_", pData = phenodata) : first column of pData does not match the names of the folders containing the ballgown data.
What can be a problem since first column of pData matches exactly the names of the folders containing the ballgown data..
If I get rid of phenodata ballgown object creation works, but I need this phenodata for further manipulations.