R/AntibodyForests_label_propagation.R
AntibodyForests_label_propagation.Rd
Performs label diffusion/propagation, using two different algorithms: if propagation.algorithm = 'diffusion', will perform label propagation using the graph heat diffusion method (http://mlg.eng.cam.ac.uk/zoubin/papers/CMU-CALD-02-107.pdf), 'neighbours' for neihbour majority voting propagation (https://arxiv.org/abs/0709.2938).
AntibodyForests_label_propagation(
trees,
features,
propagation.algorithm,
diffusion.n.iter,
diffusion.threshold,
parallel
)
nested list of AntibodyForests objects or single object, as obtained from the AntibodyForests function.
vector of strings - features to be propagated in the graph. Must be performed on sparsely-labeled graphs (with NA node attribute values).
string - label propagation/diffusion algorithm to be used. If propagation.algorithm = 'diffusion', will perform label propagation using the graph heat diffusion method (http://mlg.eng.cam.ac.uk/zoubin/papers/CMU-CALD-02-107.pdf), 'neighbours' for neihbour majority voting propagation (https://arxiv.org/abs/0709.2938).
integer - number of diffusion iteration if propagation.algorithm = 'diffusion'.
numeric - probability min. threshold for the diffusion algorithm.
boolean - whether to execute the main subroutine in parallel or not. Requires the 'parallel' R package to be installed.
Nested list of AntibodyForests objects or single object with new propagated labels added as vertex attributes (e.g., feature_label_propagation will be a new vertex attribute in the resulting AntibodyForests objects).
if (FALSE) {
AntibodyForests_label_propagation(ova_trees,
features = 'OVA_binder',
propagation.algorithm = 'diffusion', parallel = T)
}