saveDiffExResults: saveDiffExResults Save Differential Expression Results with a...

View source: R/saveDiffExResults.R

saveDiffExResultsR Documentation

saveDiffExResults Save Differential Expression Results with a custom name.

Description

saveDiffExResults Save Differential Expression Results with a custom name.

Usage

saveDiffExResults(inSCE, diffex, name, method)

Arguments

inSCE

Input SCtkExperiment object. Required

diffex

results table saved from the differential expression analysis. Required

name

name of the result to be saved under in rowData(). Required

method

name of the diffex method used to generate the results. Options are DESeq2, limma and ANOVA. Required

Value

a new SCE object with the diffex result saved in the rowData using the "name"

Examples

data("mouseBrainSubsetSCE")
res <- scDiffEx(mouseBrainSubsetSCE,
                useAssay = "logcounts",
                condition = "level1class",
                ntop = length(rownames(mouseBrainSubsetSCE)),
                usesig = FALSE,
                diffexmethod = "limma")
sceObj <- saveDiffExResults(mouseBrainSubsetSCE, res, "Limma_Level1class", "limma")

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