Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/experiments.bench.R
For a given vector of character of the names of wrapper functions that
compute a network inference methods, experiments.bench
performs a
number of experiments sensitivity test.
It makes use of five different big gene datasets subsampling them to
generate different datasets.num of the network with different number
of experiments.
1 2 3 4 5 |
methods |
A vector of characters containing the names of network inference algorithms wrappers to be compared (default: "all.fast"). |
datasources.names |
A vector of characters containing the names of network datasets to be included in the benchmark (default: "all"). |
experiments |
A vector to set the number of experiments to test the methods (default=c(20,50,150)). |
eval |
The name of the evaluation metric among the following ones:
"no.truepos", "AUROC" or "AUPR" (default : "AUPR")
- see |
no.topedges |
Float specifying the percentage number of links to be considered in the evaluation (default: 20). |
datasets.num |
Number of repetitions in the noise evaluation, for each method and each dataset and each noise intensity (default: 3). |
local.noise |
Integer specifying the desired percentage of local
noise to be added at each of the subsampled datasets (default: 20)
- see |
global.noise |
Integer specifying the desired percentage of global
noise to be added at each of the subsampled datasets (default: 20)
- see |
noiseType |
Character specifying the type of the noise to be added:
"normal" or "lognormal" (default: "normal")
- see |
sym |
Logical specifying if the evaluation is symmetric
(default: TRUE) - see |
seed |
A single value, interpreted as an integer to specify seeds,
useful for creating simulations that can be reproduced
(default: |
verbose |
Logical specifying if the code should provide a log about what the function is doing (default: TRUE). |
The argument methods
accepts "all.fast" and "all"
(case insensitive) as a parameters:
"all.fast" performs network inference with "aracne", "c3net", "clr", "GeneNet", "mutual ranking", "mrnet", "pcit"
"all" performs network inference with "aracne", "c3net", "clr", "GeneNet", "Genie3", "mutual ranking", "mrnet", "mrnetb", "pcit"
It evaluates the first no.topedges
% of the possible links
inferred by each algorithm at each dataset.
Two different types of noises are added independently:
"Local": the standard deviation of the noise is different
for each variable.
local.noise
specifies the percentage for each
variable ( \pm 20 \% ).
"Global": the standard deviation of the noise is the same
for the whole dataset.
global.noise
specifies the percentage of the mean standard
deviation of all the variables ( \pm 20 \% ).
The distribution of noise is set with noiseType
, it is possible
to choose between "normal" (rnorm
) and "lognormal"
(rlnorm
). The argument noiseType
can be a
single character, this specifies the same distribution for both "Local"
and "Global" noise, it also can be a vector of characters with two
elements, the former specifies the distribution of "Local" noise and
the later the distribution of "Global" noise.
experiments.bench
returns a list with three elements:
A data.frame which is the result table containing the number of
true positives as an evaluation measure.
It evaluates each algorithm specified at methods
at each one
of the specified datasources.names
with different noise
intensities.
A data.frame which is the corresponding pvalue table of the
corresponding statistical test
for each one of the datasets.num
between the best algorithm
and the others.
The seed of the random number generators that allows the replication of the results.
Pau Bellot and Patrick Meyer
1 2 | results <- experiments.bench(datasources.names="toy",
datasets.num=2,methods="all.fast",experiments=c(20,40))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.