bestRanking: Identify the best ranking

Description Usage Arguments Value Examples

View source: R/submnet.R

Description

This function computes the performance indices of different rankings compared to the random ranking for gene removal and identify the best ranking

Usage

1

Arguments

fns

List of fitness objects.

Value

The performance indices for all rankings and the best ranking.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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)
bestRanking(list(fn))

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