Gene¶
-
class
modules.gemtractor.network.gene.
Gene
(identifier)[source]¶ Bases:
object
a gene (or gene product, or enzyme) in a network
Parameters: identifier – the gene’s id -
contains_one_of
(genes=[])[source]¶ is this one of the genes?
basically just to be compliant with the gene-complex
Parameters: genes (list of str) – list of genes to test Returns: true, if this identifier in in genes-list Return type: bool
-
serialize
()[source]¶ serialize to a JSON-dumpable object
the object will contain the following information:
- id: the gene’s identifier
- reactions: which reactions does the gene catalyze?
- cplx: in which complexes does the gene participate?
Returns: JSON-dumpable object Return type: dict
-