omics
ReactionGeneMap(database_connection, gene_ids, expression_levels, gene_groups=None, gene_id_map=None, gene_set_reduce_func=max, gene_complex_reduce_func=min)
rxn_exp: expression levels of each reaction.
gene_ids: A list-like of strings contains gene identifiers.
expression_levels: gene expression data.
gene_groups: parent-child mapping of gene product sets and complexes.
gene_id_map: mapping between gene metaId and gene name.
Source code in algo/omics.py
calc_reaction_gene_group_expression(gene_group_id)
Calculate the expression level of a given gene product set or complex node.
Source code in algo/omics.py
get_route_expression(rxn_ids)
Sums up total expression levels of the reaction route, and divide the value by the number of reactions.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
rxn_ids |
Iterable[str]
|
The metaId fields of the reactions. |
required |
Returns:
| Type | Description |
|---|---|
float
|
The averaged expression level. |
Source code in algo/omics.py
get_table_of_gene_products(db, rdf_fields=None)
Retrieves all reaction-associated gene products.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
db |
Neo4jClient
|
A Neo4j client connected to the graph database. |
required |
rdf_fields |
dict[str, str]
|
Properties of the RDF nodes, and the desired output name.
For example, {"ncbigene": "entrez"} would extract the |
None
|
Returns:
| Type | Description |
|---|---|
list[dict[str, Any]]
|
A list of entries with the reaction ID, the metaId of the gene, the |
list[dict[str, Any]]
|
gene symbol, and other fields from RDF nodes whenever available. |