Skip to content Skip to sidebar Skip to footer

P -value Adjustment Mann-whitney U Test In Python

I have a two-dimensional list file(name - 'hcl_file'). A shortened version of the file for clarity. Vertical-observations, horizontal-experiment number: ID type First

Solution 1:

If you're gonna use pandas, use pandas to load the data too.

import pandas
from scipy.stats import mannwhitneyu
hcl_data = pandas.read_table(hcl_file, sep="\t")

print(mannwhitneyu(hcl_data.loc[hcl_data['type'] == "II"], hcl_data.loc[hcl_data['type'] == "III"]))

I'm not entirely sure which columns you're trying to test so I can't be more specific. You might need to flatten the data before you pass it to scipy.

Post a Comment for "P -value Adjustment Mann-whitney U Test In Python"