Description Usage Arguments Value Examples
This function computes the fitness of submodels by removing genes in different gene rankings.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
model |
An object of class |
ranks |
A list of data frames of scores for ranking genes, with gene per row, e.g. data.frame(pkm=pkm expression, rel=relative expression). |
rescue.weight |
A vector of rescue reaction weights. Default: NULL, the weights are computed from the given model with gene.num=1. |
step |
An integer indicating the step in numbers of genes to remove. Default: 1, gene-by-gene removal. When there are many genes in the model, the step is multiplied by an exponent of 2 for later removals. This is to reduce the computing time for non-informative sub-models at the end of the series. |
draw.num |
Number of random draws. Default: 0. |
obj.react |
A string indicating objective reaction ID. Default: reaction producing BIOMASS. |
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. |
timeout |
The maximum time in seconds to allow for LP call to return. Default: 12. |
tol |
The maximum value to be considered null. Default: |
solver |
|
method |
|
An object of class scoreGeneDel
for the submodel construction simulation.
1 2 3 4 5 6 7 8 9 10 11 | data(Ec_core)
mod <- rescue(Ec_core, target=0.1)
mod.weight <- changeObjFunc(mod$rescue, react=rownames(mod$coef), obj_coef=mod$coef)
ranks <- list(
rep.1=data.frame(
expr=setNames(rnorm(length(sybil::allGenes(mod.weight)), mean=5, sd=4),
sybil::allGenes(mod.weight))),
rep.2=data.frame(
expr=setNames(rnorm(length(sybil::allGenes(mod.weight)), mean=5, sd=4.1),
sybil::allGenes(mod.weight))))
fn <- fitness(model=mod.weight, ranks=ranks, step=200, draw.num=1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.