addComplex: Adds a regulatory complex in the in silico system.

View source: R/in_silico_system.R

addComplexR Documentation

Adds a regulatory complex in the in silico system.

Description

Adds a regulatory complex in the in silico system with specified parameters (if provided), or with parameters sampled according to the system parameters.

Usage

addComplex(
  insilicosystem,
  compo,
  formationrate = NULL,
  dissociationrate = NULL
)

Arguments

insilicosystem

The in silico system (see createInSilicoSystem).

compo

An character vector, each element corresponding to the ID of the genes or regulatory complexes composing the complex. All genes/complexes composing the complex must have the same biological function (i.e. same TargetReaction parameter).

formationrate

The formation rate of the complex. If none provided, randomly chosen according to the parameter complexesformationrate_samplingfct provided in sysargs (see insilicosystemargs).

dissociationrate

The dissociation rate of the complex. If none provided, randomly chosen according to the parameter complexesdissociationrate_samplingfct provided in sysargs (see insilicosystemargs).

Value

Returns the modified in silico system.

Examples

## Not run: 
mysystem = createInSilicoSystem(G = 10, PC.p = 1, PC.TC.p = 1)
mysystem$complexes ## list of complexes existing in the system
mysystem2 = addComplex(mysystem, c(1, 2, 3))
mysystem2$complexes

## End(Not run)

oliviaAB/sismonr documentation built on June 25, 2022, 11:59 p.m.