Estimate cell type proportions using first PC of expression matrix
EstimatePCACellTypeProportions(x, weighted = FALSE, w = NULL)
A sample by gene bulk expression matrix. Genes should be marker genes
Boolean. If weighted=TRUE, multiply scaled gene expression by gene weights
Numeric vector. Weights of genes
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.