get_qsvs: Generate matrix of qsvs

View source: R/get_qsvs.R

get_qsvsR Documentation

Generate matrix of qsvs

Description

Using the pcs and the k number of components be included, we generate the qsva matrix.

Usage

get_qsvs(qsvPCs, k)

Arguments

qsvPCs

prcomp object generated by taking the pcs of degraded transcripts

k

number of qsvs to be included.

Value

matrix with k principal components for each sample.

Examples

qsv <- getPCs(rse_tx, "tpm")
get_qsvs(qsv, 2)

LieberInstitute/qsvaR documentation built on Nov. 9, 2024, 2:07 p.m.