I have a list of gene ontology IDs (As GO:0016021, GO:0005515), and I would like to group them based on their root annotation to Biological process, Cellular component or Molecular function.
The desired result is GO:0016021 Cellular Component or CC
GO:0005515 Molecular Function or MF
Is there any easy way?
The OBO file is just a text file. Look at its structure to get an idea on how to parse it. Basically, you locate your GO term and find the name_space field associated with it. The alternative would be to query the GO term MySQL database which you can also download and set up on a local MySQL instance.
Thanks... I used the MySQL and did the work.