add_clust2enrich: Add clustering assignments to extended data

View source: R/enrichment.R

add_clust2enrichR Documentation

Add clustering assignments to extended data

Description

Add clustering assignments from clustering output to pre-processed extended/enrichment data frame.

Usage

add_clust2enrich(enrich, clustdat)

Arguments

enrich

Preprocessed enrichment data frame (also see function: add_enrich)

clustdat

Object of type list storing clustering data (also see function: clust_matrix)

Value

Processed data frame with added column indicating cluster assignments

Examples

list <- patient_list(
"https://raw.githubusercontent.com/MrMaximumMax/FBCanalysis/master/demo/phys/data.csv",
GitHub = TRUE)
#Sampling frequency is supposed to be daily
clustering <- clust_matrix(matrix, method = "kmeans", nclust = 3)
enr <- add_enrich(list,
'https://raw.githubusercontent.com/MrMaximumMax/FBCanalysis/master/demo/enrich/enrichment.csv')
enr <- add_clust2enrich(enr, clustering)


MrMaximumMax/FBCanalysis documentation built on June 23, 2022, 8:21 p.m.