powered by
Function to add node features to an AntibodyForests-object
Af_add_node_feature(AntibodyForests_object, feature.df, feature.names)
Returns an AntibodyForests-object with the features added to the nodes.
AntibodyForests-object, output from Af_build()
Dataframe with features for each node. Must contain columns sample_id, clonotype_id, barcode and the features to be added.
Character vector with the names of the features to be added.
af <- Af_add_node_feature(AntibodyForests::small_af, feature.df = AntibodyForests::small_vdj, feature.names = c("VDJ_dgene", "VDJ_jgene"))
Run the code above in your browser using DataLab