read.flowSet(files=NULL, path=".", pattern=NULL, phenoData, descriptions,name.keyword, alter.names=FALSE, transformation = "linearize", which.lines=NULL, column.pattern = NULL, invert.pattern = FALSE, decades=0, sep="\t", as.is=TRUE, name, ncdf=FALSE, dataset=NULL, min.limit=NULL, emptyValue=TRUE, ignore.text.offset = FALSE, ...)dir, see details. AnnotatedDataFrame,
character or a list of values to be extracted from the
flowFrame object, see
details.flowSet.read.FCS for details.read.FCS for details.read.FCS for details.read.FCS for
details.read.FCS for details.read.FCS for details.read.AnnotatedDataFrame.read.AnnotatedDataFrame. This
controls the automatic coercion of characters to factors in the
phenoDataslot. read.FCS for details.read.FCS for details.read.FCS for details.read.FCS for details.read.AnnotatedDataFrame, see details.phenoData is present and is of class
AnnotatedDataFrame, then the
file names are obtained from its sample names (i.e. row names of the underlying data.frame).
Also column name will be generated based on sample names if it is not there. This column is mainly used by visualization methods in flowViz.
Alternatively, the argument phenoData can
be of class character, in which case this function tries to
read a AnnotatedDataFrame object from the file with that name
by calling
read.AnnotatedDataFrame(file.path(path,phenoData),...).
In some cases the file names are not a reasonable selection criterion
and the user might want to import files based on some keywords within
the file. One or several keyword value pairs can be given as the phenoData
argument in form of a named list. Third, if the argument phenoData is not present and
the argument files is not NULL, then files
is expected to be a character vector with the file names.
Fourth, if neither the argument phenoData is present nor
files is not NULL, then the file names are obtained by
calling dir(path, pattern).
fcs.loc <- system.file("extdata",package="flowCore")
file.location <- paste(fcs.loc, dir(fcs.loc), sep="/")
samp <- read.flowSet(file.location[1:3])
Run the code above in your browser using DataLab