Closed cscho-csrc closed 3 months ago
The issue comes from the code attempting to sort a result that doesn't exist. I have included a safe guard that makes sure the result is length < 0 and if not, gives an explanation: "No significant concepts found"
I was successful in installing danrerlib using pip and was able to import it into my jupyternotebook. I was following the Functional Enrichment Analysis tutorial, and the function enrich_fisher and enrich_logistic get KeyError.
I manually created a pandas dataframe that matches the printed data in the tutorial (just the first five lines) using
Then I copy-pasted the code in the tutorial
and I get a KeyError:
I was wondering if the column name had to be "P-value" instead of "PValue" which was in the example, and I tried re-naming the column title for the pd but got the same error. I got the same error for enrich_fisher as for enrich_logistic.