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(covComb_tx_deg, "tpm")
get_qsvs(qsv, 2)

LieberInstitute/qsvaR documentation built on June 22, 2024, 8:03 a.m.