shiftCountsOne {GeomxTools} | R 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)

[Package GeomxTools version 2.0.0 Index]