pypath.core.annot.GOCustomIntercell§
- class pypath.core.annot.GOCustomIntercell(categories=None, go_annot=None, ncbi_tax_id=9606, **kwargs)[source]§
Bases:
GOCustomAnnotation
- __init__(categories=None, go_annot=None, ncbi_tax_id=9606, **kwargs)[source]§
Same as :class:
pypath.go.GOCustomAnnotation
initialized with the categories defined inpypath.intercell_annot.intercell_categories
.
Methods
__init__
([categories, go_annot, ncbi_tax_id])Same as :class:
pypath.go.GOCustomAnnotation
initialized with the categories defined inpypath.intercell_annot.intercell_categories
.get_annotation
(category[, uniprots])For a category name returns a set of UniProt IDs annotated with the corresponding Gene Ontology terms or expression.
get_annotations
([uniprots])Returns a dict with set of UniProt IDs for each category.
Translates GO term names listed in categories to GO terms ACs.
reload
()Reloads the object from the module level.
- get_annotation(category, uniprots=None)§
For a category name returns a set of UniProt IDs annotated with the corresponding Gene Ontology terms or expression.
- Parameters:
category (str) – The category name, should be a key in the
categories
dict.uniprots (set) – A set or list of UniProt IDs. If
None
, annotations based on all UniProts in GO annotation will be returned.
- get_annotations(uniprots=None)§
Returns a dict with set of UniProt IDs for each category.
- Parameters:
uniprots (set) – A set or list of UniProt IDs. If
None
, annotations based on all UniProts in GO annotation will be returned.
- process_categories()§
Translates GO term names listed in categories to GO terms ACs.
- reload()§
Reloads the object from the module level.