nb_tranfer: Transfer of Netboost clustering to new data.

Description Usage Arguments Value Examples

Description

Transfer of Netboost clustering to new data.

Usage

1
2
nb_transfer(nb_summary = NULL, new_data = NULL, scale = FALSE,
  robust_PCs = FALSE, only_module_membership = FALSE)

Arguments

nb_summary

Netboost results as generated by the nb_summary function.

new_data

Data frame were rows correspond to samples and columns to features.

scale

Logical. Should data be scaled and centered?

robust_PCs

Should PCA be calculated on ranked data (Spearman PCA)? Rotations will not correspond to original data if this is applied.

only_module_membership

Logical. Should only module memberships be transfered and PCs be newly computed?

Value

List

Examples

1
2
3
4
5
6
7
8
data('tcga_aml_meth_rna_chr18',  package='netboost')
results <- netboost(datan = tcga_aml_meth_rna_chr18, stepno = 20L,
    soft_power = 3L, min_cluster_size = 10L, n_pc = 2, scale=TRUE,
    ME_diss_thres = 0.25, qc_plot=FALSE)
ME_transfer <- nb_transfer(nb_summary = results,
    new_data = tcga_aml_meth_rna_chr18,
    scale = TRUE)
all(round(results[["MEs"]], 12) == round(ME_transfer, 12))

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