dendrospect_model: dendrospect_model Copyright (c) 2019. Kaleido Biosciences....

View source: R/dendrospect_model.R

dendrospect_modelR Documentation

dendrospect_model Copyright (c) 2019. Kaleido Biosciences. All Rights Reserved

Description

Allows the user to easily acess the modeling data corresponding with a given cluster. This is intended to allow for easier examination of the underlying data that is produced with the dendrospect function. Note that the phgrofit_data should first be scaled before using this function. This can be acomplished with scale_phgrofit() function.

Usage

dendrospect_model(phgrofit_data, k = 8)

Arguments

phgrofit_data

This is the data origniating from phgrofit or one of it's modifying functions such as scale_phgrofit or avg_phgrofit.

k

The number of clusters.

Value

a dataframe containing the phgrofit data with a column named dendrogram_cluster that represents the cluster the observations correspond to.

Examples


#Returns a dataframe mapping which of the 8 clusters each Sample.ID belongs to.
## Not run: df = dendrospect_model(phgrofit_data,k = 8)

baynec2/phgrofit documentation built on March 24, 2024, 7:10 a.m.