View source: R/reality_check.R
reality.check | R Documentation |
This function will compare simulated data with the real data on which the simulations are based
reality.check(sim.location, group, ml=FALSE)
sim.location |
file name for the .h5 file containing the simulations |
group |
character, name of the group within the .h5 file containing
the simulated features OR |
ml |
Boolean, indicating if a machine-learning model should be trained
to distinguish real and simulated data (see Details below).
Defaults to |
This function computes a list containing different measures for how realistic the simulations are, containing
sparsity
measures for the sparsity of samples, computed as
L0-norm and as Gini-coefficient
variance
measures for the variance of features, containing
additionally measures for differences between groups, such as generalized
fold change and prevalence difference
AUC-BC
AUROC value for how well real and simulated data can be
distinguished based on the Bray-Curtis distance
AUC-E
AUROC value for how well real and simulated data can be
distinguished based on the log-Euclidean distance
AUC-ML
AUROC value for how well real and simulated data can be
distinguished based on a SIAMCAT
machine learning model
Returns a list of measures
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.