NeuroMMSig¶
An implementation of the NeuroMMSig mechanism enrichment algorithm [DomingoFernandez2017].
- DomingoFernandez2017
Domingo-Fernández, D., et al (2017). Multimodal mechanistic signatures for neurodegenerative diseases (NeuroMMSig): A web server for mechanism enrichment. Bioinformatics, 33(22), 3679–3681.
-
pybel_tools.analysis.neurommsig.algorithm.
get_neurommsig_scores
(graph, genes, annotation='Subgraph', ora_weight=None, hub_weight=None, top_percent=None, topology_weight=None, preprocess=False)[source]¶ Preprocess the graph, stratify by the given annotation, then run the NeuroMMSig algorithm on each.
- Parameters
graph (
BELGraph
) – A BEL graphgenes (
List
[Gene
]) – A list of gene nodesannotation (
str
) – The annotation to use to stratify the graph to subgraphsora_weight (
Optional
[float
]) – The relative weight of the over-enrichment analysis score fromneurommsig_gene_ora()
. Defaults to 1.0.hub_weight (
Optional
[float
]) – The relative weight of the hub analysis score fromneurommsig_hubs()
. Defaults to 1.0.top_percent (
Optional
[float
]) – The percentage of top genes to use as hubs. Defaults to 5% (0.05).topology_weight (
Optional
[float
]) – The relative weight of the topolgical analysis core fromneurommsig_topology()
. Defaults to 1.0.preprocess (
bool
) – If true, preprocess the graph.
- Return type
- Returns
A dictionary from {annotation value: NeuroMMSig composite score}
Pre-processing steps:
Infer the central dogma with :func:``
Collapse all proteins, RNAs and miRNAs to genes with :func:``
Collapse variants to genes with :func:``
-
pybel_tools.analysis.neurommsig.algorithm.
get_neurommsig_score
(graph, genes, ora_weight=None, hub_weight=None, top_percent=None, topology_weight=None)[source]¶ Calculate the composite NeuroMMSig Score for a given list of genes.
- Parameters
graph (
BELGraph
) – A BEL graphgenes (
List
[Gene
]) – A list of gene nodesora_weight (
Optional
[float
]) – The relative weight of the over-enrichment analysis score fromneurommsig_gene_ora()
. Defaults to 1.0.hub_weight (
Optional
[float
]) – The relative weight of the hub analysis score fromneurommsig_hubs()
. Defaults to 1.0.top_percent (
Optional
[float
]) – The percentage of top genes to use as hubs. Defaults to 5% (0.05).topology_weight (
Optional
[float
]) – The relative weight of the topolgical analysis core fromneurommsig_topology()
. Defaults to 1.0.
- Return type
- Returns
The NeuroMMSig composite score