Learn R Programming

Seurat (version 2.1.0)

PCALoad: PCA Gene Loadings Accessor Function

Description

Pull the PCA gene loadings matrix

Usage

PCALoad(object, dims.use = NULL, genes.use = NULL, use.full = FALSE)

Arguments

object

Seurat object

dims.use

Dimensions to include (default is all stored dims)

genes.use

Genes to include (default is all genes)

use.full

Return projected gene loadings (default is FALSE)

Value

PCA gene loading matrix for given genes and PCs

Examples

Run this code
# NOT RUN {
pbmc_small
head(PCALoad(pbmc_small))
# Optionally, you can specify subsets of dims or genes to use
PCALoad(pbmc_small, dims.use = 1:5, genes.use = pbmc_small@var.genes[1:5])

# }

Run the code above in your browser using DataLab