weightReacts: Compute weights of rescue reactions

Description Usage Arguments Value Examples

View source: R/weightReacts.R

Description

The function weightReacts computes the weights of rescue reactions.

Usage

1
weightReacts(model, mc.cores = 1, gene.num = 1, draw.num = 1000)

Arguments

model

An object of class modelorg indicating the weighted rescue model obtained from the rescue process.

mc.cores

The number of cores to use (at least 1), i.e. at most how many child processes will be run simultaneously. Default: 1.

gene.num

The number of genes to remove. If 1, oneGeneDel will be performed and draw.num will be ignored. Default: 1.

draw.num

The number of random draws. Default: 1000.

Value

A vector of weights for rescue reactions and an object of class phylo for colored plot of fitness weighting schema.

Examples

1
2
3
4
data(Ec_core)
mod <- rescue(Ec_core, target=0.1)
weightReacts(changeObjFunc(mod$rescue, react=rownames(mod$coef),
                          obj_coef=mod$coef))

metaboGSE documentation built on Oct. 23, 2020, 8:14 p.m.