hclust_in_grp: Hierarchical Clustering in each group

View source: R/hclust_in_grp.R

hclust_in_grpR Documentation

Hierarchical Clustering in each group

Description

Hierarchical cluster analysis in each group.

Usage

hclust_in_grp(
  object,
  grp,
  sc = c("ctr", "z", "none"),
  clip = NA,
  dist.method = "euclidean",
  hc.method = "ward.D2"
)

Arguments

object

Matrix-like object with features (e.g. genes) as rows and samples as columns.

grp

Vector of sample groups. These must be valid variable names in R and the same length as ncol(object).

sc

Row scaling. Should rows be centered ('ctr'), z-scored ('z'), or neither ('none').

clip

Values with magnitude > clip are reset to value clip. If given, must be > 0.

dist.method

The distance measure to be used.

hc.method

The agglomeration method to be used.

Value

Vector of the labels.


jdreyf/jdcbioinfo documentation built on Sept. 18, 2024, 5:32 p.m.