shiftCountsOne: Add one to all counts in an expression matrix

View source: R/utils.R

shiftCountsOneR Documentation

Add one to all counts in an expression matrix

Description

Add one to all counts in an expression matrix

Usage

shiftCountsOne(object, elt = "exprs", useDALogic = FALSE)

Arguments

object

name of the NanoStringGeoMxSet object

elt

expression matrix element in assayDataElement to shift all counts by

useDALogic

boolean to use the same logic in DA (impute 0s to 1s) or set to FALSE to shift all counts by 1

Value

object of NanoStringGeoMxSet class

Examples

datadir <- system.file("extdata", "DSP_NGS_Example_Data",
                       package="GeomxTools")
demoData <- readRDS(file.path(datadir, "/demoData.rds"))
shiftCountsOne(demoData)


Nanostring-Biostats/GeomxTools documentation built on April 14, 2024, 1:25 a.m.