I think the result res from the mannwhitneyu test is an array if there are multiple columns and we want it to be a list. I had gotten this error when trying to create a DataFrame of the results before fixing it:
ValueError: 7 columns passed, passed data had 4 columns
Adds the ability to add a go_filter parameter to the test_enrichment function where one can optionally specify a list of terms to filter for. There was a tiny bug which didn’t allow me to run the analysis which was fixed here: https://github.com/TalusBio/gopher/blob/small_bug_and_addition/gopher/enrichment.py#L96 Before it was
and I changed it to
I think the result res from the mannwhitneyu test is an array if there are multiple columns and we want it to be a list. I had gotten this error when trying to create a DataFrame of the results before fixing it: