goatools.grouper.grprobj_init module¶
Given user GO ids and parent terms, group user GO ids under one parent term.
Given a group of GO ids with one or more higher-level grouping terms, group each user GO id under the most descriptive parent GO term.
Each GO id may have more than one parent. One of the parent(s) is chosen to best represent the user GO id’s function. The choice of parent is made by regarding how close the parent GO id is to the bottom of its hierarchy.
The estimation of how close a GO term is to “the bottom” of its GO hierarchy is estimated using the number of total Go term descendent counts below that term.
- class goatools.grouper.grprobj_init.GrouperInit(goids, objpre, fnc_most_specific='dcnt')[source]¶
Bases:
objectInitialize Grouper object.
- most_specific_fncs = {'dcnt': <function get_most_specific_dcnt>, 'tinfo': <function get_most_specific_tinfo>, 'tinfo_dcnt': <function get_most_specific_tinfo_dcnt>}¶
- get_gos_all()[source]¶
Return a flat list of all GO IDs in grouping object.
- All GO IDs:
header GO IDs that are not user GO IDs
user GO IDs that are under header GOs
user GO IDs that are header GOs in groups containing no other user GO IDs