sigp: Significance for first split using sigclust2

View source: R/hclustDepart.R

sigpR Documentation

Significance for first split using sigclust2

Description

This function returns a list with elements mainly generated from sigclust2.

Usage

sigp(test_dat, minSize = 10, sim = 100)

Arguments

test_dat

A UMI count matrix with samples as rows and features as columns.

minSize

Numeric, the minimal allowable cluster size (default 10).

sim

Numeric, the number of Monte Carlo simulations (default 100).

Details

This is a function used to calculate the significance level of the first split from hierarchical clustering based on euclidean distance and Ward's linkage.

Value

A list with the following elements:

p

P-value for the first split.

z

Z-score for the first split.

shc_result

An S3 object of class shc, as defined in the sigclust2 package.

clust2

A vector of group indices for each cell.

clust_dat

A matrix used as input for hierarchical clustering.

References

\insertRef

kimes2017statisticalscpoisson \insertRefRclusterppscpoisson


scpoisson documentation built on Dec. 20, 2025, 1:07 a.m.