PrinComp_cpp: Principal component analysis

Description Usage Arguments Value Examples

View source: R/RcppExports.R

Description

This function provides significant speed gain if the input matrix is big

Usage

1

Arguments

X

an R matrix (expression matrix), rows are genes, columns are cells

Value

a list with three list pca lists

Examples

1
2
3
mat_test <-matrix(rnbinom(1000000,mu=0.01, size=10),nrow=1000)
#library(microbenchmark)
#microbenchmark(PrinComp_cpp(mat_test), prcomp(mat_test), times=3)

scGPS documentation built on Nov. 8, 2020, 5:22 p.m.