tanghaibao / goatools

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

Added option no_dup to WrHierGO. #221

Closed avigailtaylor closed 3 years ago

avigailtaylor commented 3 years ago

Added option no_dup to WrHierGO. Setting this to True prints the GO hierarchy from a given root as a flat list, i.e. with no duplications of any term. To test the functionality of this option, there is a new test - write_hier_nodups - in test_write_hier.py.

tanghaibao commented 3 years ago

I'd note that the failure of tests is not related to your fixes. It seems that many URLs (e.g. link to go-basic.obo) are now moved and broke the tests that tried to download first. I'll see if there is a fix.