Description Usage Arguments Details Value See Also
Similar to read.flowSet
, this takes a list of FCS filenames
and returns a cytoset
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | load_cytoset_from_fcs(
files = NULL,
path = ".",
pattern = NULL,
phenoData = NULL,
descriptions,
name.keyword,
transformation = "linearize",
which.lines = NULL,
alter.names = FALSE,
column.pattern = NULL,
invert.pattern = FALSE,
decades = 0,
is_h5 = NULL,
h5_dir = NULL,
backend = get_default_backend(),
backend_dir = tempdir(),
min.limit = NULL,
truncate_max_range = TRUE,
dataset = NULL,
emptyValue = TRUE,
num_threads = 1,
ignore.text.offset = FALSE,
sep = "\t",
as.is = TRUE,
name,
file_col_name = NULL,
...
)
|
files |
Optional character vector with filenames. |
path |
Directory where to look for the files. |
pattern |
This argument is passed on to
|
phenoData |
An object of class |
descriptions |
Character vector to annotate the object of class
|
name.keyword |
An optional character vector that specifies which FCS keyword to use as the sample names. If this is not set, the GUID of the FCS file is used for sampleNames, and if that is not present (or not unique), then the file names are used. |
transformation |
see |
which.lines |
see |
alter.names |
see |
column.pattern |
see |
invert.pattern |
see |
decades |
see |
is_h5 |
logical indicating whether the data should be stored in h5 format |
h5_dir |
String specifying a name for the h5 directory
for the h5 files if |
min.limit |
see |
truncate_max_range |
see |
dataset |
see |
emptyValue |
see |
num_threads |
Integer allowing for parallelization of the parsing operation by specifiying a number of threads |
ignore.text.offset |
see |
sep |
Separator character that gets passed on to
|
as.is |
logical that gets passed on to
|
name |
An optional character scalar used as name of the object. |
file_col_name |
optionally specify the column name that stores the fcs filename when phenoData is supplied
|
... |
Further arguments that get passed on to |
There are four different ways to specify the file from which data is to be imported:
First, if the argument 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)
.
An object of class cytoset
.
Other cytoframe/cytoset IO functions:
cf_get_uri()
,
cf_write_disk()
,
cf_write_h5()
,
cf_write_tile()
,
cs_get_uri()
,
load_cytoframe_from_fcs()
,
load_cytoframe()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.