View source: R/00_flowGraphSubset_constructor.R
flowGraphSubset | R Documentation |
Initializes a flowGraph
object given the cell counts
for one or more flow cytometry sample(s).
The flowGraph object returned holds meta data
for each sample, each cell population node,
edges representing how each cell population node relate to one another,
and features for these nodes and edges.
flowGraphSubset(
input_,
meta = NULL,
class = "class",
no_cores = 1,
markers = NULL,
layout_fun = "layout.reingold.tilford",
max_layer = NULL,
cumsumpos = FALSE,
path = NULL,
summary_pars = flowGraphSubset_summary_pars(),
summary_adjust = flowGraphSubset_summary_adjust(),
save_plots = TRUE
)
input_ |
a numeric matrix of the cell counts; its column/names must be the phenotype names and its rownames must be sample ID's. |
meta |
A data frame with meta data for each |
class |
A string corresponding to the column name or index
of |
no_cores |
An integer indicating how many cores to parallelize on, Default: 1 |
markers |
A string vector of marker names used in |
layout_fun |
A string of a function from the |
max_layer |
And integer indicating the maximum layer in the cell hierarchy to analyze; set to 'NULL' to analyze all layers. |
cumsumpos |
A logical variable indicating whether
or not to cumulate cell counts;
this applies only when |
path |
A string indicating the folder path to where the flowGraph object should save its elements, Default = NULL (don't save). |
summary_pars |
A list containing parameters for calculating the statistical significance summary significance that will determine whether to trim out phenotypes for this fast version of flowGraph. The lists' elements are:
|
summary_adjust |
A list of parameters on how to adjust the p-values; this also affects which phenotypes are tested. The elements in the list are:
|
save_plots |
A logical indicating whether or not to save plots. |
All node and edge features are trimmed such that only the
significant phenotypes are left; the original input is stored in the slot
etc$original_count
of the returned flowGraph object.
flowGraph object
## Not run:
if(interactive()){
data(fg_data_pos2)
fg <- flowGraph(fg_data_pos2$count, meta=fg_data_pos2$meta, no_cores=1)
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.