SCtkExperiment: Create a SCtkExperiment

View source: R/AllClasses.R

SCtkExperimentR Documentation

Create a SCtkExperiment

Description

Create a SCtkExperiment

Usage

SCtkExperiment(..., pcaVariances = S4Vectors::DataFrame())

Arguments

...

SingleCellExperiment and SummarizedExperiment components

pcaVariances

The percent variation contained in each PCA dimension

Value

A SingleCellExperiment like object with an addition pcaVariances slot.

Examples

data("mouseBrainSubsetSCE")
counts_mat <- assay(mouseBrainSubsetSCE, "counts")
sample_annot <- colData(mouseBrainSubsetSCE)
row_annot <- rowData(mouseBrainSubsetSCE)
newSCE <- SCtkExperiment(assays=list(counts=counts_mat),
                         colData=sample_annot,
                         rowData=row_annot)
newSCE <- getPCA(newSCE, useAssay = "counts")
#View the percent variation of the PCA
pcaVariances(newSCE)


mmkhan19/singleCellTK documentation built on March 22, 2022, 7:43 a.m.