goatools.godag.go_tasks module¶
item-DAG tasks.
- goatools.godag.go_tasks.get_go2parents(go2obj, relationships)[source]¶
Get set of parents GO IDs, including parents through user-specfied relationships
- goatools.godag.go_tasks.get_go2children(go2obj, relationships)[source]¶
Get set of children GO IDs, including children through user-specfied relationships
- goatools.godag.go_tasks.get_go2ancestors(terms, relationships, prt=None)[source]¶
Get GO-to- ancestors (all parents)
- goatools.godag.go_tasks.get_go2descendants(terms, relationships, prt=None)[source]¶
Get GO-to- descendants
- goatools.godag.go_tasks.get_id2upper(objs)[source]¶
Get all ancestor IDs, including all parents and IDs up all relationships
- goatools.godag.go_tasks.get_id2lower(objs)[source]¶
Get all descendant IDs, including all children and IDs down all relationships
- goatools.godag.go_tasks.get_id2upperselect(objs, relationship_set)[source]¶
Get all ancestor IDs, including all parents and IDs up selected relationships
- goatools.godag.go_tasks.get_id2lowerselect(objs, relationship_set)[source]¶
Get all descendant IDs, including all children and IDs down selected relationships
- goatools.godag.go_tasks.get_relationship_targets(item_ids, relationships, id2rec)[source]¶
Get item ID set of item IDs in a relationship target set
- class goatools.godag.go_tasks.IdToUpperSelect(objs, relationship_set)[source]¶
Bases:
objectGet all ancestor IDs, including all parents and IDs up selected relationships
- class goatools.godag.go_tasks.IdToLowerSelect(objs, relationship_set)[source]¶
Bases:
objectGet all descendant IDs, including all children and IDs down selected relationships