goatools.anno.genetogo_reader module¶
Read an NCBI gene2go GO Association File and store the data in a Python object.
- Annotations available from NCBI:
- class goatools.anno.genetogo_reader.Gene2GoReader(filename=None, **kws)[source]¶
Bases:
AnnoReaderBaseReads a Gene Annotation File (GAF). Returns a Python object.
- exp_kws = {'godag', 'namespaces', 'taxid', 'taxids'}¶
- get_ns2ntsanno(taxid=None)[source]¶
Return all associations in three (one for BP MF CC) dicts, id2gos
- get_taxid()[source]¶
Return taxid, if one was provided. Other wise return True representing all taxids