setParam {scTensor} | R Documentation

## Set a parameter

### Description

Function for setting parameter values.

### Usage

    setParam(object, name) <- value
    ## S4 method for signature 'CCSParams'
    setParam(object, name, value)

### Arguments

`object` | object to set parameter in.
`name` | name of the parameter to set.
`value` | value to set the paramter to.

### Value

Object with new parameter value.

### Examples

    params <- newCCSParams()

    setParam(params, "nGene") <- 20000
    setParam(params, "nCell") <- c(12, 43, 323)
    setParam(params, "cciInfo") <- list(nPair=2000,
                                       CCI1=list(
                                           LPattern=c(1,0,0),
                                           RPattern=c(0,1,1),
                                           nGene=100,
                                           fc="E10"),
                                       CCI2=list(
                                           LPattern=c(0,0,1),
                                           RPattern=c(1,1,1),
                                           nGene=200,
                                           fc="E10"),
                                       CCI3=list(
                                           LPattern=c(1,1,1),
                                           RPattern=c(1,0,1),
                                           nGene=300,
                                           fc="E10")
                                       )
    setParam(params, "lambda") <- 0.1
    setParam(params, "seed") <- 111

[Package scTensor version 2.4.1 Index]