read.series.FCS {rflowcyt} | R Documentation |
Reads a serie of raw Flow Cytometry Standard (FCS) files and outputs several "FCS" R object.
read.series.FCS(fcsfiles,path=NULL,ext=NULL,...)
fcsfiles |
names of the FCS files without any extension |
path |
a character vector of full path names; the default corresponds to the working directory getwd |
ext |
character string giving optional extension to be added to each file name |
... |
any other arguments are passed to read.FCS |
This function read several FCS files by the means of the
read.FCS
function. Thus,this function can also checks if there are discrepancies between
the data and the metadata in terms of range and size (MY.DEBUG=TRUE). If there is,
then the data is re-read with different fcs.byte.size (1,2,4,8) and
fcs.signed (TRUE, FALSE) combinations until there is no discrepancy
between the data and the metadata. If there is still a discrepancy,
then the routine is halted. Note: For FCS version 3.0 files, only the
range of the data is checked against what is stated in the metadata
because FCS version 3.0 files have extra elements that are read into
the data.
No value is returned. However a series of "FCS" object are created on
the current environment with names of the form filename. The files names are given by the elements of slides. Each object is
composed of the same data and metadata return by the read.FCS
function.
N. Le Meur
read.FCS
,
summary
,
print
,
extractGatedData
,
addParameter
,
"[-methods"
,
"[[-methods"
,
fcs.type
if (require(rfcdmin)) { ##obtaining the location of the fcs files in the data pathFiles<-system.file("bccrc", package="rfcdmin") drugFiles<-dir(pathFiles) ## reading in the FCS files drugData<-read.series.FCS(drugFiles,path=pathFiles,MY.DEBUG=FALSE) }