I have a matrix like this:
- Column = Genes
- Column = Cluster gene belongs to
- Column = Annotation1
- Column = Annotation2
- Column = Annotation3
A new matrix would look like this:
- Column = Cluster
- Column = Annotation Terms and their pValue.
It checks one column and one term at a time. The background contains all rows (all genes) and the enrichment is checked for all genes in the same cluster.
I need a python modul, that takes those two datasets and calculates the pValue (with benjamini correction). Is there such a modul and which method should I use for the anrichment analysis?