Learn R Programming

metaboGSE (version 1.2.5)

weightReacts: Compute weights of rescue reactions

Description

The function weightReacts computes the weights of rescue reactions.

Usage

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

Run this code
# NOT RUN {
data(Ec_core)
mod <- rescue(Ec_core, target=0.1)
weightReacts(changeObjFunc(mod$rescue, react=rownames(mod$coef),
                          obj_coef=mod$coef))
# }

Run the code above in your browser using DataLab