fg_feat_node_prop: Generates the proportion node feature.

View source: R/02_flowgraph_features.R

fg_feat_node_propR Documentation

Generates the proportion node feature.

Description

Generates the proportion node feature and returns it inside the returned flowGraph object.

Usage

fg_feat_node_prop(fg, overwrite = FALSE)

Arguments

fg

flowGraph object.

overwrite

A logical variable indicating whether to overwrite the existing proportion node feature if it exists.

Details

Given a flowGraph object, fg_feat_node_prop returns the same flowGraph object, inside of which is an additional proportions prop node feature and its meta data. The proportions feature is made using the node count feature and is the cell count of each cell population over the total cell count.

Value

flowGraph object containing the proportion node feature.

See Also

flowGraph-class fg_feat_node_specenr fg_add_feature fg_get_feature fg_rm_feature fg_get_feature_desc

Examples


 no_cores <- 1
 data(fg_data_pos30)
 fg <- flowGraph(fg_data_pos30$count, class=fg_data_pos30$meta$class,
                 prop=FALSE, specenr=FALSE,
                 no_cores=no_cores)

 fg <- fg_feat_node_prop(fg)


aya49/flowGraph documentation built on Feb. 4, 2024, 6:40 p.m.