goatools.anno.annoreader_base module¶
Read an Association File and store the data in a Python object.
- class goatools.anno.annoreader_base.AnnoReaderBase(name, filename=None, **kws)[source]¶
Bases:
objectReads a Gene Association File. Returns a Python object.
- tic = 209.827596963¶
- exp_qualifiers = {'colocalizes_with', 'contributes_to', 'not'}¶
- valid_formats = {'gaf', 'gene2go', 'gpad', 'id2gos'}¶
- exp_nss = {'BP', 'CC', 'MF'}¶
- get_id2gos(namespace=None, prt=sys.stdout, **kws)[source]¶
Return associations from specified namespace in a dict, id2gos
- prt_qualifiers(prt=sys.stdout)[source]¶
Print Qualifiers: 1,462 colocalizes_with; 1,454 contributes_to; 1,157 not
- reduce_annotations(annotations, options)[source]¶
Reduce annotations to ones used to identify enrichment (normally exclude ND and NOT).
- static update_association(assc_goidsets, go2ancestors, prt=sys.stdout)[source]¶
Update the GO sets in assc_gene2gos to include all GO ancestors