tanghaibao / goatools

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

implement graph orientation change (graphviz rankdir) #289

Closed SchwarzMarek closed 2 months ago

SchwarzMarek commented 3 months ago

For go_plot.py script, allows change in graph orientation through setting of rankdir parameter.

The change can be useful for graphs with many GO items on the same level, where default Top->Bottom produces too wide graphs, while e.g. Left->Right (LR) orientation produces much more concise visualization.

For my usecase, this addresses the issue #288.

Rudimentary tests are included in test_go_plot_orient.py. It is not included in tests/makefile as the test instructions (and makefile) didn't worked in my setup.

I've added simple explanation and examples to documentation. Best Marek