Skip to content

Commit

Permalink
add literature
Browse files Browse the repository at this point in the history
  • Loading branch information
tabbassidaloii committed Sep 17, 2024
1 parent 40be709 commit 5430fa7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pyBiodatafuse/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@
}
DISGENET_DISEASE_COL = f"{DISGENET}_diseases"

# literature based disease info
LITERATURE_DISEASE_COL = "literature_based_info"

# Open Targets - Disease
OPENTARGETS_DISEASE_OUTPUT_DICT = {
"disease_name": str,
Expand Down Expand Up @@ -280,6 +283,7 @@
"label": GENE_DISEASE_EDGE_LABEL,
}
# Literature

LITERATURE_DISEASE_NODE_ATTRS = {
"source": None,
"name": None,
Expand Down
2 changes: 2 additions & 0 deletions src/pyBiodatafuse/graph/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
GO_MF_NODE_LABELS,
GO_NODE_ATTRS,
GO_NODE_MAIN_LABEL,
LITERATURE_DISEASE_COL,
LITERATURE_DISEASE_EDGE_ATTRS,
LITERATURE_DISEASE_NODE_ATTRS,
MINERVA,
Expand Down Expand Up @@ -883,6 +884,7 @@ def networkx_graph(combined_df: pd.DataFrame, disease_compound=None):
func_dict = {
BGEE_GENE_EXPRESSION_LEVELS_COL: add_gene_bgee_subgraph,
DISGENET_DISEASE_COL: add_disgenet_gene_disease_subgraph,
LITERATURE_DISEASE_COL: add_literature_gene_disease_subgraph,
MINERVA: add_minerva_gene_pathway_subgraph,
WIKIPATHWAYS: add_wikipathways_gene_pathway_subgraph,
OPENTARGETS_REACTOME_COL: add_opentargets_gene_reactome_pathway_subgraph,
Expand Down

0 comments on commit 5430fa7

Please sign in to comment.