tree_search: Extracts independent trees from nb_mcupgma results (external...

Description Usage Arguments Value Examples

View source: R/netboost.R

Description

Extracts independent trees from nb_mcupgma results (external wrapper for internal C++ function)

Usage

1
tree_search(forest = NULL)

Arguments

forest

Raw dendrogram-matrix as generated by the nb_mcupgma function.

Value

List

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
   data('tcga_aml_meth_rna_chr18',  package='netboost')
   cores <- as.integer(getOption('mc.cores', 2))
   datan <- as.data.frame(scale(tcga_aml_meth_rna_chr18, center=TRUE,
                                scale=TRUE))
   filter <- nb_filter(datan=datan, stepno=20L, until=0L, progress=1000L,
                       cores=cores,mode=2L)
   dist <- nb_dist(datan=datan, filter=filter, soft_power=3L, cores=cores)
   max_singleton = dim(tcga_aml_meth_rna_chr18)[2]
   forest <- nb_mcupgma(filter=filter, dist=dist,
                        max_singleton=max_singleton, cores=cores)
   trees <- tree_search(forest)
   str(trees[[length(trees)]])

netboost documentation built on Nov. 8, 2020, 4:58 p.m.