BASiCS_CorrectOffset {BASiCS} | R Documentation

## Remove global mean expression offset

### Description

Remove global offset in mean expression between two `BASiCS_Chain` objects.

### Usage

    BASiCS_CorrectOffset(Chain, ChainRef, min.mean = 1)

### Arguments

`Chain` | a 'BASiCS_MCMC' object to which the offset correction should be applied (with respect to 'ChainRef').
`ChainRef` | a 'BASiCS_MCMC' object to be used as the reference in the offset correction procedure.
`min.mean` | Minimum mean expression threshold required for inclusion in offset calculation. Similar to 'min.mean' in 'scran::computeSumFactors'.

### Value

A list whose first element is an offset corrected version of 'Chain' (using 'ChainRef' as a reference), whose second element is the point estimate for the offset and whose third element contains iteration-specific offsets.

### Author(s)

Catalina A. Vallejos cnvallej@uc.cl

Nils Eling eling@ebi.ac.uk

Alan O'Callaghan a.b.o'callaghan@sms.ed.ac.uk

### Examples

    # Loading two 'BASiCS_Chain' objects (obtained using 'BASiCS_MCMC')
    data(ChainSC)
    data(ChainRNA)

    A <- BASiCS_CorrectOffset(ChainSC, ChainRNA)

    # Offset corrected versions for ChainSC (with respect to ChainRNA).
    A$Chain
    A$Offset

[Package BASiCS version 1.8.1 Index]