Subtype_ID: Subtype_ID

View source: R/Subtype_ID.R

Subtype_IDR Documentation

Subtype_ID

Description

this function takes the proximity matrix from RF_optimal_test and creates a proximity graph, then utilizes infomap for community detection

Usage

Subtype_ID(
  proximity_matrix = proximity_matrix,
  mode = mode,
  weighted = weighted,
  diag = diag
)

Arguments

proximity_matrix

the resulting proximity matrix from RF_prediction

mode

specifies how igraph should interpret the supplied matrix

weighted

whether or not to create a weighted graph from supplied matrix

diag

whether or not to include the diagonal of the supplied matrix in the calculation

Examples

proximity_matrix <- RF_prediction$proximity
mode = "undirected"
weighted = TRUE
diag = FALSE
subtypes = Subtype_ID(proximity_matrix=proximity_matrix, mode=mode, weighted=weighted, diag=diag)

DCAN-Labs/RFRF documentation built on March 15, 2024, 2:33 p.m.