corheat: Gene clustering and cutting cluster with dynamic cut

View source: R/corheat.R

corheatR Documentation

Gene clustering and cutting cluster with dynamic cut

Description

Gene clustering for RNA-seq data and cutting cluster with dynamic cut

Usage

corheat(dat, distm, clm, method_dycut, draw)

Arguments

dat

RNA-seq count data(row:sample, column:gene)

distm

select from c("pearson", "abspearson", "squarepearson", "spearman")

clm

clustering method of hclust

method_dycut

method of 'cutreeDynamic' select from "tree", or "hybrid

draw

logical draw heatmap or nod.

Value

draw heatmap and results of dynamic cut

Examples

## Not run: 
# data: normalized fpkm
nfpkm <- as.data.frame(rskodat::nfpkm)
res.dcut <-cornet::dycutdf(nfpkm[-1:-4], distm = "correlation")
cl_dat <- res.dcut$cluster_dat
corheat with dynamic tree cut
res <- corheat(dat = nfpkm[-1:-4], distm = "correlation", clm = "average",
               method_dycut = "tree", draw = TRUE)

## End(Not run)

shkonishi/rsko documentation built on Feb. 21, 2023, 5:12 a.m.