testlog: Test if log-transformation is necessary.

Description Usage Arguments Examples

View source: R/SHARP.R

Description

Somtimes log-transformation can boost the clustering performance; however, it is not always the case. By this function, SHARP can automatically determine whether a log-transformation is necessary.

Usage

1
testlog(scExp, ncells, p, sncells, n.cores)

Arguments

scExp

input single-cell expression matrix

ncells

number of cells in the expression matrix

p

number of reduced dimensions by random projection

sncells

number of cells randomly selected for checking log-transform. By default, sncells = 100

Examples

1
flag = testlog(scExp)

shibiaowan/SHARP documentation built on April 28, 2021, 1:56 p.m.