fg_get_feature: Retrieves a feature matrix.

View source: R/01_flowgraph_accessors.R

fg_get_featureR Documentation

Retrieves a feature matrix.

Description

Retrieves a feature matrix from a given flowGraph object, the feature type, and feature name.

Usage

fg_get_feature(fg, type = "node", feature = "count")

Arguments

fg

flowGraph object.

type

A string indicating feature type 'node' or 'edge'.

feature

A string indicating feature name;

Details

Returns NULL if the requested feature does not exist.

Value

A numeric matrix of the specified feature values.

See Also

flowGraph-class fg_get_feature_desc fg_add_feature fg_rm_feature fg_get_summary

Examples


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

 feature_matrix <- fg_get_feature(fg, type='node', feature='count')


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