Store immediate parent and child nodes for each GO term
Store immediate parent and child nodes for each GO term

The functionality of the new and old code was compared as follows:
# new function definitions...
go_dict1 = importOBO(r'/media/pieter/DATA/Wetenschap/Doctoraat/host-pathogen-project/host-pathogen-ppi-fim/go_data/go-basic.obo')
buildGOtree(go_dict1)
# old function definitions...
go_dict2 = importOBO(r'/media/pieter/DATA/Wetenschap/Doctoraat/host-pathogen-project/host-pathogen-ppi-fim/go_data/go-basic.obo')
buildGOtree(go_dict2)
# comparison of full parents and children
a = [go_dict1[id].recursive_parents == go_dict2[id].parents for id in go_dict1]
np.array(a).any()
True
a = [go_dict1[id].recursive_children == go_dict2[id].children for id in go_dict1]
np.array(a).any()
True
pmoris/go-tools