tacco.utils.mannwhitneyu

mannwhitneyu(df, alternative=['greater', 'less'])[source]

Perform Mann-Whitney-U test. Tests all columns.

Parameters:
  • df – A table of samples as DataFrame, with groups in the rows and values in the columns. If the index is a multilevel index, the second level is interpreted as sample annotation.

  • alternative

    The alternative for the test. Can also be a list of alternatives. Available are:

    • ’greater’

    • ’less’

    • ’two-sided’

Returns:

An DataFrame containing the enrichment p-values.