RPmat: Obtain a random matrix and its related information

Description Usage Arguments Examples

View source: R/RPmat.R

Description

This function is to generate a random matrix according to a sparse-version Achlioptas distribution (see our paper for details), given the input matrix and the dimension we want to reduce to.

Usage

1
RPmat(scdata, p, seedn)

Arguments

scdata

input single-cell expression matrix

p

the dimension to be reduced to

Examples

1
newE = RPmat(E, p)

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