choose.sfttp: Chooses a soft-tresholding power

View source: R/softthreshold.R

choose.sfttpR Documentation

Chooses a soft-tresholding power

Description

This function examines the data to find a suitable soft-thresholding power. It also helps to know if there is a scale-free topology.

Usage

choose.sfttp(datexpr)

Arguments

datexpr

A matrix of gene expression. Thi SHOULD BE the expression data normally stores under @assays$RNA@data for single cell objects or ´@assays$RNA@counts´ for pseudocells. This has to contain ONLY the genes used for analysis.

Value

A number representing the soft-thresholding power with the highest scale-free topology fit index. And a message about it

Examples

ps.pbmc_small=choose.sfttp(SeuratObject::pbmc_small@assays$RNA@data)

CFeregrino/scWGCNA documentation built on Nov. 21, 2022, 2:31 a.m.