Af_add_node_feature: Function to add node features to an AntibodyForests-object

View source: R/Af_add_node_feature.R

Af_add_node_featureR Documentation

Function to add node features to an AntibodyForests-object

Description

Function to add node features to an AntibodyForests-object

Usage

Af_add_node_feature(AntibodyForests_object, feature.df, feature.names)

Arguments

AntibodyForests_object

AntibodyForests-object, output from Af_build()

feature.df

Dataframe with features for each node. Must contain columns sample_id, clonotype_id, barcode and the features to be added.

feature.names

Character vector with the names of the features to be added.

Value

Returns an AntibodyForests-object with the features added to the nodes.

Examples

af <- Af_add_node_feature(AntibodyForests::small_af,
                          feature.df = AntibodyForests::small_vdj,
                          feature.names = c("VDJ_dgene", "VDJ_jgene"))

AntibodyForests documentation built on April 4, 2025, 4:45 a.m.