get_random_CRD: Get random values from permutation test, the mean of which as...

View source: R/get_random_CRD.R

get_random_CRDR Documentation

Get random values from permutation test, the mean of which as baseline to calculate CRD score.

Description

Get random values from permutation test, the mean of which as baseline to calculate CRD score.

Usage

get_random_CRD(input.list, genes.dist.bins, b.sign, num.rounds = 1000)

Arguments

input.list

A list of variables containing scaled gene expression matrix, giving number of bins.

genes.dist.bins

A matrix of giving expression bins within genes, which were binned according to their average expression across cells or samples.

b.sign

A logical value to indicate the overlapped features between target features and the features derived from gene expressio matrix.

num.rounds

A integer value to indicate the permutation times of iteration; 1000 by default and 10000 will be better for reproducibility.

Value

Continuous numerical variables with values, named by cells or samples.

Examples


## Not run: 
r.scores <- get_random_CRD(input.list, input.list$genes.dist.bins, b.sign, num.rounds = num.rounds)

## End(Not run)


leihe2021/CRDscore documentation built on April 22, 2022, 8:45 p.m.