mioXpektron.analysis.stats

Univariate statistics for aligned feature matrices.

Functions

bh_fdr(pvals)

Benjamini–Hochberg FDR correction for a 1D array of p-values.

compute_univariate_tests(X, y, *[, group_a, ...])

Welch t-test per feature with log2 fold-change (group_a / group_b).

mioXpektron.analysis.stats.bh_fdr(pvals)[source]

Benjamini–Hochberg FDR correction for a 1D array of p-values.

Parameters:

pvals (ndarray)

Return type:

ndarray

mioXpektron.analysis.stats.compute_univariate_tests(X, y, *, group_a=None, group_b=None, reference_group=None, eps=1e-12)[source]

Welch t-test per feature with log2 fold-change (group_a / group_b).

When group_a and group_b are omitted, the two largest groups by sample count are compared. reference_group sets the denominator for log2 fold-change and defaults to group_b.

Parameters:
Return type:

DataFrame