Hello,
I am running a fairly extensive flow cytometry experiment. I am very new to Rstudio and I'm having a difficult time to loading my data so I can begin my analyses. I used a partial 96-well plate to run my experiment. I was able to export each wells data as a .fcs file. None of my samples have been gated yet... I was hoping to perform this analysis with Rstudio. I was able to load what looks like my full data set using "read.flowSet". Calling this object (I've called it "c") it reveals there are 84 experiments and there are column names with FSC-A SSC-A FL1-A, etc...Ok, great, I have all my experiments in a single object.
c <- read.flowSet(path = "170113 HTB1-CC503 AOvPI", transformation = F)
Now, I have all this metaData that I would like to attach to each sample. In the first column of this metadata file is the name of the .fcs file/sample (i.e A01 Xx Xx.fcs), the corresponding meta data for each sample, and the remaining columns are empty but labeled with the names of the columns from my "c" (flowSet data). According to this tutorial on a Flow Work flow, it looks like I should be able to associate this metaData by adding "phenoData" command. So I read this metadata table with "read.table" and converted it to an annotated data (as(r,"AnnotatedDataFrame"))
txt", header=T, sep="\t")
s <- as(r, "AnnotatedDataFrame")
Now, when I try to add the phenoData command I get one of several warning messages
c <- read.flowSet(path = "170113 HTB1-CC503 AOvPI", phenoData = s, transformation = F)
Error in read.flowSet(path = "170113 HTB1-CC503 AOvPI", phenoData = s, :
Not all files given by phenoData could be found in 170113 HTB1-CC503 AOvPI
I then tried more iterations on this theme
c <- read.flowSet(path = "170113 HTB1-CC503 AOvPI", phenoData(s), transformation = F)
Error in (function (classes, fdef, mtable) :
unable to find an inherited method for function ‘phenoData’ for signature ‘"AnnotatedDataFrame"’
Any help to get this to work would then be appreciated. I may also have some follow up questions and inquiries.
Thank you
Sam