py3plex.algorithms.hedwig.stats package

Submodules

py3plex.algorithms.hedwig.stats.adjustment module

Multiple-testing adjustment methods.

@author: anze.vavpetic@ijs.si

py3plex.algorithms.hedwig.stats.adjustment.fdr(ruleset, q=0.05)

The Benjamini-Hochberg-Yekutieli direct adjustment method to control the FDR.

py3plex.algorithms.hedwig.stats.adjustment.fwer(ruleset, alpha=0.05)

The Holm-Bonferroni direct adjustment method to control the FWER.

py3plex.algorithms.hedwig.stats.adjustment.none(ruleset)

py3plex.algorithms.hedwig.stats.scorefunctions module

Score function definitions.

@author: anze.vavpetic@ijs.si

py3plex.algorithms.hedwig.stats.scorefunctions.chisq(rule)
py3plex.algorithms.hedwig.stats.scorefunctions.enrichment_score(rule)
py3plex.algorithms.hedwig.stats.scorefunctions.interesting(rule)

Checks if a given rule is interesting for the given score function

py3plex.algorithms.hedwig.stats.scorefunctions.kaplan_meier_AUC(rule)
py3plex.algorithms.hedwig.stats.scorefunctions.leverage(rule)
py3plex.algorithms.hedwig.stats.scorefunctions.lift(rule)
py3plex.algorithms.hedwig.stats.scorefunctions.precision(rule)
py3plex.algorithms.hedwig.stats.scorefunctions.t_score(rule)
py3plex.algorithms.hedwig.stats.scorefunctions.wracc(rule)
py3plex.algorithms.hedwig.stats.scorefunctions.z_score(rule)

py3plex.algorithms.hedwig.stats.significance module

Significance testing methods.

@author: anze.vavpetic@ijs.si

py3plex.algorithms.hedwig.stats.significance.apply_fisher(ruleset)

Fisher’s exact test to test rule significance.

py3plex.algorithms.hedwig.stats.significance.fisher(rule)

Fisher’s p-value for one rule.

py3plex.algorithms.hedwig.stats.significance.is_redundant(rule, new_rule)

Computes the redundancy coefficient of a new rule compared to its immediate generalization.

Rules with a coeff > 1 are deemed non-redundant.

py3plex.algorithms.hedwig.stats.validate module

Module for ruleset validation.

@author: anze.vavpetic@ijs.si

class py3plex.algorithms.hedwig.stats.validate.Validate(kb, significance_test=<function apply_fisher>, adjustment=<function fdr>)

Bases: object

test(ruleset, alpha=0.05, q=0.01)

Tests the given ruleset and returns the significant rules.

Module contents

class py3plex.algorithms.hedwig.stats.Validate(kb, significance_test=<function apply_fisher>, adjustment=<function fdr>)

Bases: object

test(ruleset, alpha=0.05, q=0.01)

Tests the given ruleset and returns the significant rules.