Function for setting parameter values.

setParam(object, name, value)

# S4 method for BASiCSParams
setParam(object, name, value)

# S4 method for KersplatParams
setParam(object, name, value)

# S4 method for Lun2Params
setParam(object, name, value)

# S4 method for LunParams
setParam(object, name, value)

# S4 method for Params
setParam(object, name, value)

# S4 method for PhenoParams
setParam(object, name, value)

# S4 method for SCDDParams
setParam(object, name, value)

# S4 method for SplatParams
setParam(object, name, value)

# S4 method for ZINBParams
setParam(object, name, value)

Arguments

object

object to set parameter in.

name

name of the parameter to set.

value

value to set the parameter to.

Value

Object with new parameter value.

Examples

params <- newSimpleParams() setParam(params, "nGenes", 100)
#> A Params object of class SimpleParams #> Parameters can be (estimable) or [not estimable], 'Default' or 'NOT DEFAULT' #> Secondary parameters are usually set during simulation #> #> Global: #> (GENES) (Cells) [Seed] #> 100 100 121054 #> #> 3 additional parameters #> #> Mean: #> (Rate) (Shape) #> 0.3 0.4 #> #> Counts: #> [Dispersion] #> 0.1 #>