tanghaibao / goatools

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

render DAG w JSON #225

Open chrispam10 opened 3 years ago

chrispam10 commented 3 years ago

Hi,

Is there any way to use any JSON files generated that have annotations for nodes and edges to render the DAG plot as well?

tanghaibao commented 3 years ago

@chrispam10

It is a bit unclear from your question - are you asking whether goatools can generate such JSON file? or use such JSON file as input?

chrispam10 commented 3 years ago

Hi @tanghaibao

Sorry, I meant using JSON file as input for DAG. Also, do you have any suggestions on how to transform the obo file and JSON file into a tabular format where in a column I have the GO term ancestor name and the next column its descendants? I'm not familiar with these operations.

Thanks!