EstimatePCACellTypeProportions: Estimate cell type proportions using first PC of expression...

Description Usage Arguments Value

View source: R/marker_based.R

Description

Estimate cell type proportions using first PC of expression matrix

Usage

1

Arguments

x

A sample by gene bulk expression matrix. Genes should be marker genes

weighted

Boolean. If weighted=TRUE, multiply scaled gene expression by gene weights

w

Numeric vector. Weights of genes

Value

ret List. Attribute pcs contains matrix of PCs, where PC1 should be used as estimates for cell type abundances Attribute sdev contains eigenvalues of eigendecomposition of var-covar matrix. The 1st eigenvalue should explain most of the variance. Attribute genes contains names of genes.


BisqueRNA documentation built on March 26, 2020, 7:48 p.m.