BASiCS_CorrectOffset: Remove global mean expression offset

Description Usage Arguments Value Author(s) Examples

View source: R/BASiCS_CorrectOffset.R

Description

Remove global offset in mean expression between two BASiCS_Chain objects.

Usage

1
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

Examples

1
2
3
4
5
6
7
8
9
# 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

BASiCS documentation built on April 16, 2021, 6 p.m.