tanghaibao / goatools

Python library to handle Gene Ontology (GO) terms
BSD 2-Clause "Simplified" License
749 stars 212 forks source link

AttributeError: 'GOEnrichmentStudy' object has no attribute 'print_results' #248

Open Liyong-Zhang opened 1 year ago

Liyong-Zhang commented 1 year ago

Hello,

I am trying to do GOEnrichment analysis through goatools' GOEnrichmentStudy function. Everything works fine till I try to print out the enrichment results.

Part of the code are as following: g = GOEnrichmentStudy(pop, assoc, go, propagate_counts=True, alpha=0.05, methods=methods) g_res = g.run_study(uniprot_in_list) g.print_results(g_res, min_ratio=None, pval=0.01) AttributeError: 'GOEnrichmentStudy' object has no attribute 'print_results'

Please help me take a look when you get a chance, thank you!

Liyong