params: Access Transformation Parameters

paramsR Documentation

Access Transformation Parameters

Description

Retrieve or assign linear transformation parameters for an xCell2Object.

Retrieve or assign linear transformation parameters for cell types for an xCell2Object.

Usage

getParams(object)

setParams(object) <- value

## S4 method for signature 'xCell2Object'
getParams(object)

## S4 replacement method for signature 'xCell2Object'
setParams(object) <- value

Arguments

object

An xCell2Object.

value

A data frame of transformation parameters (for the setter).

Value

For 'getParams', a data frame of transformation parameters. For 'setParams<-', the updated xCell2Object.

For 'getParams', a data frame of transformation parameters. For 'setParams<-', the updated xCell2Object.

See Also

xCell2Object-class

xCell2Object-class

Examples

data(DICE_demo.xCell2Ref, package = "xCell2")
setParams(DICE_demo.xCell2Ref) <- data.frame(celltype = "T_cells", a = 0.5, b = 2, m = 1.5)
getParams(DICE_demo.xCell2Ref)
data(DICE_demo.xCell2Ref, package = "xCell2")
setParams(DICE_demo.xCell2Ref) <- data.frame(celltype = "B_cells", a = 0.6, b = 1.8, m = 2.1)

AlmogAngel/xCell2 documentation built on Jan. 24, 2025, 10:39 a.m.