CreateHieR: The main function for creating a reference model.

Description Usage Arguments

View source: R/CreateHier_functions.R

Description

The main function for creating a reference model.

Usage

1
pbmc.refmod <- CreateRef(RefData = as.matrix(pbmc@data), ClassLabels = pbmc@meta.data$ClusterNames_0.6, TreeFile = pbmc3k_tree)

Arguments

RefData

Reference data from which class labels will be projected on Query data.

ClassLabels

A list of class labels for cells/samples in the Data matrix (Ref). Same length as colnames(Ref).

method

The model training method, "rf" for random forest, "svmLinear" for support vector machine, "hrf" for hierarchical random forest. Default is "hrf"

TreeFile

An input file to create a hierarchical tree for relationship between class labels. Default is null but required if method 'hrf' is chosen.


yasinkaymaz/HieRFIT documentation built on June 1, 2021, 9:37 a.m.