napistu 0.3.1.dev1__tar.gz → 0.3.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {napistu-0.3.1.dev1 → napistu-0.3.3}/PKG-INFO +1 -1
- {napistu-0.3.1.dev1 → napistu-0.3.3}/setup.cfg +1 -1
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/__main__.py +1 -1
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/constants.py +0 -80
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/ingestion/constants.py +106 -37
- napistu-0.3.3/src/napistu/ingestion/sbml.py +695 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/ingestion/string.py +2 -2
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/modify/gaps.py +3 -3
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/network/precompute.py +64 -16
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/sbml_dfs_core.py +19 -20
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu.egg-info/PKG-INFO +1 -1
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu.egg-info/SOURCES.txt +1 -1
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/tests/test_network_precompute.py +58 -8
- napistu-0.3.3/src/tests/test_sbml.py +48 -0
- napistu-0.3.1.dev1/src/napistu/ingestion/sbml.py +0 -524
- napistu-0.3.1.dev1/src/tests/test_sbml.py +0 -17
- {napistu-0.3.1.dev1 → napistu-0.3.3}/LICENSE +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/README.md +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/pyproject.toml +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/setup.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/__init__.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/consensus.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/context/__init__.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/context/discretize.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/context/filtering.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/gcs/__init__.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/gcs/constants.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/gcs/downloads.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/gcs/utils.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/identifiers.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/indices.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/ingestion/__init__.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/ingestion/bigg.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/ingestion/gtex.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/ingestion/hpa.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/ingestion/identifiers_etl.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/ingestion/napistu_edgelist.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/ingestion/obo.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/ingestion/psi_mi.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/ingestion/reactome.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/ingestion/trrust.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/ingestion/yeast.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/matching/__init__.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/matching/constants.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/matching/interactions.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/matching/mount.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/matching/species.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/mcp/__init__.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/mcp/__main__.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/mcp/client.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/mcp/codebase.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/mcp/codebase_utils.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/mcp/component_base.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/mcp/config.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/mcp/constants.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/mcp/documentation.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/mcp/documentation_utils.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/mcp/execution.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/mcp/health.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/mcp/profiles.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/mcp/server.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/mcp/tutorials.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/mcp/tutorials_utils.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/mcp/utils.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/modify/__init__.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/modify/constants.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/modify/curation.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/modify/pathwayannot.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/modify/uncompartmentalize.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/network/__init__.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/network/constants.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/network/data_handling.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/network/ig_utils.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/network/napistu_graph_core.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/network/neighborhoods.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/network/net_create.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/network/net_propagation.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/network/ng_utils.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/network/paths.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/ontologies/__init__.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/ontologies/constants.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/ontologies/dogma.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/ontologies/genodexito.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/ontologies/mygene.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/ontologies/renaming.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/rpy2/__init__.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/rpy2/callr.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/rpy2/constants.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/rpy2/rids.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/sbml_dfs_utils.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/scverse/__init__.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/scverse/constants.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/scverse/loading.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/source.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu/utils.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu.egg-info/dependency_links.txt +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu.egg-info/entry_points.txt +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu.egg-info/requires.txt +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/napistu.egg-info/top_level.txt +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/tests/__init__.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/tests/conftest.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/tests/test_consensus.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/tests/test_constants.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/tests/test_context_discretize.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/tests/test_context_filtering.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/tests/test_curation.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/tests/test_data/__init__.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/tests/test_gaps.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/tests/test_gcs.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/tests/test_identifiers.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/tests/test_indices.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/tests/test_ingestion_napistu_edgelist.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/tests/test_ingestion_obo.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/tests/test_matching_interactions.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/tests/test_matching_mount.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/tests/test_matching_species.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/tests/test_mcp_config.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/tests/test_mcp_documentation_utils.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/tests/test_mcp_server.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/tests/test_network_data_handling.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/tests/test_network_ig_utils.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/tests/test_network_neighborhoods.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/tests/test_network_net_create.py +0 -0
- /napistu-0.3.1.dev1/src/tests/test_net_propagation.py → /napistu-0.3.3/src/tests/test_network_net_propagation.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/tests/test_network_ng_utils.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/tests/test_network_paths.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/tests/test_ontologies_genodexito.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/tests/test_ontologies_mygene.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/tests/test_ontologies_renaming.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/tests/test_pathwayannot.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/tests/test_rpy2_callr.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/tests/test_rpy2_init.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/tests/test_sbml_dfs_core.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/tests/test_sbml_dfs_utils.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/tests/test_sbo.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/tests/test_scverse_loading.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/tests/test_set_coverage.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/tests/test_source.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/tests/test_uncompartmentalize.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/tests/test_utils.py +0 -0
- {napistu-0.3.1.dev1 → napistu-0.3.3}/src/tests/utils.py +0 -0
@@ -753,7 +753,7 @@ def export_precomputed_distances(
|
|
753
753
|
weights_vars=weights_vars_list,
|
754
754
|
)
|
755
755
|
|
756
|
-
|
756
|
+
precompute.save_precomputed_distances(precomputed_distances, output_uri)
|
757
757
|
|
758
758
|
|
759
759
|
@exporter.command(name="export_smbl_dfs_tables")
|
@@ -436,83 +436,3 @@ ENSEMBL_PREFIX_TO_ONTOLOGY = {
|
|
436
436
|
"ENST": ONTOLOGIES.ENSEMBL_TRANSCRIPT,
|
437
437
|
"ENSP": ONTOLOGIES.ENSEMBL_PROTEIN,
|
438
438
|
}
|
439
|
-
|
440
|
-
COMPARTMENTS = {
|
441
|
-
"NUCLEOPLASM": "nucleoplasm",
|
442
|
-
"CYTOPLASM": "cytoplasm",
|
443
|
-
"CELLULAR_COMPONENT": "cellular_component",
|
444
|
-
"CYTOSOL": "cytosol",
|
445
|
-
"MITOCHONDRIA": "mitochondria",
|
446
|
-
"MITOMEMBRANE": "mitochondrial membrane",
|
447
|
-
"INNERMITOCHONDRIA": "inner mitochondria",
|
448
|
-
"MITOMATRIX": "mitochondrial matrix",
|
449
|
-
"ENDOPLASMICRETICULUM": "endoplasmic reticulum",
|
450
|
-
"ERMEMBRANE": "endoplasmic reticulum membrane",
|
451
|
-
"ERLUMEN": "endoplasmic reticulum lumen",
|
452
|
-
"GOLGIAPPARATUS": "golgi apparatus",
|
453
|
-
"GOLGIMEMBRANE": "golgi membrane",
|
454
|
-
"NUCLEUS": "nucleus",
|
455
|
-
"NUCLEARLUMEN": "nuclear lumen",
|
456
|
-
"NUCLEOLUS": "nucleolus",
|
457
|
-
"LYSOSOME": "lysosome",
|
458
|
-
"PEROXISOME": "peroxisome",
|
459
|
-
"EXTRACELLULAR": "extracellular",
|
460
|
-
}
|
461
|
-
|
462
|
-
COMPARTMENT_ALIASES = {
|
463
|
-
"NUCLEOPLASM": ["nucleoplasm", "Nucleoplasm"],
|
464
|
-
"CYTOPLASM": ["cytoplasm", "Cytoplasm"],
|
465
|
-
"CELLULAR_COMPONENT": ["cellular_component", "Cellular_component"],
|
466
|
-
"CYTOSOL": ["cytosol", "Cytosol"],
|
467
|
-
"MITOCHONDRIA": ["mitochondria", "Mitochondria"],
|
468
|
-
"MITOMEMBRANE": ["mitochondrial membrane", "Mitochondrial membrane"],
|
469
|
-
"INNERMITOCHONDRIA": [
|
470
|
-
"inner mitochondria",
|
471
|
-
"Inner mitochondria",
|
472
|
-
"inner mitochondrial compartment",
|
473
|
-
],
|
474
|
-
"MITOMATRIX": [
|
475
|
-
"mitochondrial matrix",
|
476
|
-
"Mitochondrial matrix",
|
477
|
-
"mitochondrial lumen",
|
478
|
-
"Mitochondrial lumen",
|
479
|
-
],
|
480
|
-
"ENDOPLASMICRETICULUM": ["endoplasmic reticulum", "Endoplasmic reticulum"],
|
481
|
-
"ERMEMBRANE": ["endoplasmic reticulum membrane", "Endoplasmic reticulum membrane"],
|
482
|
-
"ERLUMEN": ["endoplasmic reticulum lumen", "Endoplasmic reticulum lumen"],
|
483
|
-
"GOLGIAPPARATUS": ["golgi apparatus", "Golgi apparatus"],
|
484
|
-
"GOLGIMEMBRANE": ["Golgi membrane", "golgi membrane"],
|
485
|
-
"NUCLEUS": ["nucleus", "Nucleus"],
|
486
|
-
"NUCLEARLUMEN": ["nuclear lumen", "Nuclear lumen"],
|
487
|
-
"NUCLEOLUS": ["nucleolus", "Nucleolus"],
|
488
|
-
"LYSOSOME": ["lysosome", "Lysosome"],
|
489
|
-
"PEROXISOME": ["peroxisome", "Peroxisome", "peroxisome/glyoxysome"],
|
490
|
-
"EXTRACELLULAR": [
|
491
|
-
"extracellular",
|
492
|
-
"Extracellular",
|
493
|
-
"extracellular space",
|
494
|
-
"Extracellular space",
|
495
|
-
],
|
496
|
-
}
|
497
|
-
|
498
|
-
COMPARTMENTS_GO_TERMS = {
|
499
|
-
"NUCLEOPLASM": "GO:0005654",
|
500
|
-
"CELLULAR_COMPONENT": "GO:0005575",
|
501
|
-
"CYTOPLASM": "GO:0005737",
|
502
|
-
"CYTOSOL": "GO:0005829",
|
503
|
-
"MITOCHONDRIA": "GO:0005739",
|
504
|
-
"MITOMEMBRANE": "GO:0031966",
|
505
|
-
"INNERMITOCHONDRIA": "GO:0005743",
|
506
|
-
"MITOMATRIX": "GO:0005759",
|
507
|
-
"ENDOPLASMICRETICULUM": "GO:0005783",
|
508
|
-
"ERMEMBRANE": "GO:0005789",
|
509
|
-
"ERLUMEN": "GO:0005788",
|
510
|
-
"GOLGIAPPARATUS": "GO:0005794",
|
511
|
-
"GOLGIMEMBRANE": "GO:0000139",
|
512
|
-
"NUCLEUS": "GO:0005634",
|
513
|
-
"NUCLEARLUMEN": "GO:0031981",
|
514
|
-
"NUCLEOLUS": "GO:0005730",
|
515
|
-
"LYSOSOME": "GO:0005764",
|
516
|
-
"PEROXISOME": "GO:0005777",
|
517
|
-
"EXTRACELLULAR": "GO:0005615",
|
518
|
-
}
|
@@ -19,7 +19,6 @@ PROTEINATLAS_DEFS = SimpleNamespace(
|
|
19
19
|
GENE="Gene",
|
20
20
|
)
|
21
21
|
|
22
|
-
|
23
22
|
# GTEx
|
24
23
|
GTEX_RNASEQ_EXPRESSION_URL = "https://storage.googleapis.com/adult-gtex/bulk-gex/v8/rna-seq/GTEx_Analysis_2017-06-05_v8_RNASeQCv1.1.9_gene_median_tpm.gct.gz"
|
25
24
|
|
@@ -92,42 +91,19 @@ REACTOME_PATHWAY_INDEX_COLUMNS = ["file", "source", "species", "pathway_id", "na
|
|
92
91
|
REACTOME_PATHWAY_LIST_COLUMNS = ["pathway_id", "name", "species"]
|
93
92
|
|
94
93
|
# SBML
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
SMBL_REACTION_DICT_NAME = "r_name"
|
109
|
-
SMBL_REACTION_DICT_IDENTIFIERS = "r_Identifiers"
|
110
|
-
SMBL_REACTION_DICT_SOURCE = "r_Source"
|
111
|
-
SMBL_REACTION_DICT_IS_REVERSIBLE = "r_isreversible"
|
112
|
-
|
113
|
-
SMBL_REACTION_SPEC_RSC_ID = "rsc_id"
|
114
|
-
SMBL_REACTION_SPEC_SC_ID = "sc_id"
|
115
|
-
SMBL_REACTION_SPEC_STOICHIOMETRY = "stoichiometry"
|
116
|
-
SMBL_REACTION_SPEC_SBO_TERM = "sbo_term"
|
117
|
-
|
118
|
-
SBML_COMPARTMENT_DICT_ID = "c_id"
|
119
|
-
SBML_COMPARTMENT_DICT_NAME = "c_name"
|
120
|
-
SBML_COMPARTMENT_DICT_IDENTIFIERS = "c_Identifiers"
|
121
|
-
SBML_COMPARTMENT_DICT_SOURCE = "c_Source"
|
122
|
-
|
123
|
-
SBML_SPECIES_DICT_ID = "s_id"
|
124
|
-
SBML_SPECIES_DICT_NAME = "s_name"
|
125
|
-
SBML_SPECIES_DICT_IDENTIFIERS = "s_Identifiers"
|
126
|
-
|
127
|
-
SBML_COMPARTMENTALIZED_SPECIES_DICT_NAME = "sc_name"
|
128
|
-
SBML_COMPARTMENTALIZED_SPECIES_DICT_SOURCE = "sc_Source"
|
129
|
-
|
130
|
-
SBML_REACTION_ATTR_GET_GENE_PRODUCT = "getGeneProduct"
|
94
|
+
SBML_DEFS = SimpleNamespace(
|
95
|
+
ERROR_NUMBER="error_number",
|
96
|
+
ERROR_CATEGORY="category",
|
97
|
+
ERROR_SEVERITY="severity",
|
98
|
+
ERROR_DESCRIPTION="description",
|
99
|
+
ERROR_MESSAGE="message",
|
100
|
+
SUMMARY_PATHWAY_NAME="Pathway Name",
|
101
|
+
SUMMARY_PATHWAY_ID="Pathway ID",
|
102
|
+
SUMMARY_N_SPECIES="# of Species",
|
103
|
+
SUMMARY_N_REACTIONS="# of Reactions",
|
104
|
+
SUMMARY_COMPARTMENTS="Compartments",
|
105
|
+
REACTION_ATTR_GET_GENE_PRODUCT="getGeneProduct",
|
106
|
+
)
|
131
107
|
|
132
108
|
# STRING
|
133
109
|
STRING_URL_EXPRESSIONS = {
|
@@ -178,3 +154,96 @@ YEAST_IDEA_PUBMED_ID = "32181581" # ids are characters by convention
|
|
178
154
|
# Identifiers ETL
|
179
155
|
|
180
156
|
IDENTIFIERS_ETL_YEAST_HEADER_REGEX = "__________"
|
157
|
+
|
158
|
+
COMPARTMENTS = SimpleNamespace(
|
159
|
+
NUCLEOPLASM="nucleoplasm",
|
160
|
+
CYTOPLASM="cytoplasm",
|
161
|
+
CELLULAR_COMPONENT="cellular_component",
|
162
|
+
CYTOSOL="cytosol",
|
163
|
+
MITOCHONDRIA="mitochondria",
|
164
|
+
MITOMEMBRANE="mitochondrial membrane",
|
165
|
+
INNERMITOCHONDRIA="inner mitochondria",
|
166
|
+
MITOMATRIX="mitochondrial matrix",
|
167
|
+
ENDOPLASMICRETICULUM="endoplasmic reticulum",
|
168
|
+
ERMEMBRANE="endoplasmic reticulum membrane",
|
169
|
+
ERLUMEN="endoplasmic reticulum lumen",
|
170
|
+
GOLGIAPPARATUS="golgi apparatus",
|
171
|
+
GOLGIMEMBRANE="golgi membrane",
|
172
|
+
NUCLEUS="nucleus",
|
173
|
+
NUCLEARLUMEN="nuclear lumen",
|
174
|
+
NUCLEOLUS="nucleolus",
|
175
|
+
LYSOSOME="lysosome",
|
176
|
+
PEROXISOME="peroxisome",
|
177
|
+
EXTRACELLULAR="extracellular",
|
178
|
+
)
|
179
|
+
|
180
|
+
GENERIC_COMPARTMENT = COMPARTMENTS.CELLULAR_COMPONENT
|
181
|
+
EXCHANGE_COMPARTMENT = COMPARTMENTS.CYTOSOL
|
182
|
+
VALID_COMPARTMENTS = list(COMPARTMENTS.__dict__.values())
|
183
|
+
|
184
|
+
COMPARTMENT_ALIASES = {
|
185
|
+
COMPARTMENTS.NUCLEOPLASM: ["nucleoplasm", "Nucleoplasm"],
|
186
|
+
COMPARTMENTS.CYTOPLASM: ["cytoplasm", "Cytoplasm"],
|
187
|
+
COMPARTMENTS.CELLULAR_COMPONENT: ["cellular_component", "Cellular_component"],
|
188
|
+
COMPARTMENTS.CYTOSOL: ["cytosol", "Cytosol"],
|
189
|
+
COMPARTMENTS.MITOCHONDRIA: ["mitochondria", "Mitochondria"],
|
190
|
+
COMPARTMENTS.MITOMEMBRANE: ["mitochondrial membrane", "Mitochondrial membrane"],
|
191
|
+
COMPARTMENTS.INNERMITOCHONDRIA: [
|
192
|
+
"inner mitochondria",
|
193
|
+
"Inner mitochondria",
|
194
|
+
"inner mitochondrial compartment",
|
195
|
+
],
|
196
|
+
COMPARTMENTS.MITOMATRIX: [
|
197
|
+
"mitochondrial matrix",
|
198
|
+
"Mitochondrial matrix",
|
199
|
+
"mitochondrial lumen",
|
200
|
+
"Mitochondrial lumen",
|
201
|
+
],
|
202
|
+
COMPARTMENTS.ENDOPLASMICRETICULUM: [
|
203
|
+
"endoplasmic reticulum",
|
204
|
+
"Endoplasmic reticulum",
|
205
|
+
],
|
206
|
+
COMPARTMENTS.ERMEMBRANE: [
|
207
|
+
"endoplasmic reticulum membrane",
|
208
|
+
"Endoplasmic reticulum membrane",
|
209
|
+
],
|
210
|
+
COMPARTMENTS.ERLUMEN: [
|
211
|
+
"endoplasmic reticulum lumen",
|
212
|
+
"Endoplasmic reticulum lumen",
|
213
|
+
],
|
214
|
+
COMPARTMENTS.GOLGIAPPARATUS: ["golgi apparatus", "Golgi apparatus"],
|
215
|
+
COMPARTMENTS.GOLGIMEMBRANE: ["Golgi membrane", "golgi membrane"],
|
216
|
+
COMPARTMENTS.NUCLEUS: ["nucleus", "Nucleus"],
|
217
|
+
COMPARTMENTS.NUCLEARLUMEN: ["nuclear lumen", "Nuclear lumen"],
|
218
|
+
COMPARTMENTS.NUCLEOLUS: ["nucleolus", "Nucleolus"],
|
219
|
+
COMPARTMENTS.LYSOSOME: ["lysosome", "Lysosome"],
|
220
|
+
COMPARTMENTS.PEROXISOME: ["peroxisome", "Peroxisome", "peroxisome/glyoxysome"],
|
221
|
+
COMPARTMENTS.EXTRACELLULAR: [
|
222
|
+
"extracellular",
|
223
|
+
"Extracellular",
|
224
|
+
"extracellular space",
|
225
|
+
"Extracellular space",
|
226
|
+
],
|
227
|
+
}
|
228
|
+
|
229
|
+
COMPARTMENTS_GO_TERMS = {
|
230
|
+
COMPARTMENTS.NUCLEOPLASM: "GO:0005654",
|
231
|
+
COMPARTMENTS.CELLULAR_COMPONENT: "GO:0005575",
|
232
|
+
COMPARTMENTS.CYTOPLASM: "GO:0005737",
|
233
|
+
COMPARTMENTS.CYTOSOL: "GO:0005829",
|
234
|
+
COMPARTMENTS.MITOCHONDRIA: "GO:0005739",
|
235
|
+
COMPARTMENTS.MITOMEMBRANE: "GO:0031966",
|
236
|
+
COMPARTMENTS.INNERMITOCHONDRIA: "GO:0005743",
|
237
|
+
COMPARTMENTS.MITOMATRIX: "GO:0005759",
|
238
|
+
COMPARTMENTS.ENDOPLASMICRETICULUM: "GO:0005783",
|
239
|
+
COMPARTMENTS.ERMEMBRANE: "GO:0005789",
|
240
|
+
COMPARTMENTS.ERLUMEN: "GO:0005788",
|
241
|
+
COMPARTMENTS.GOLGIAPPARATUS: "GO:0005794",
|
242
|
+
COMPARTMENTS.GOLGIMEMBRANE: "GO:0000139",
|
243
|
+
COMPARTMENTS.NUCLEUS: "GO:0005634",
|
244
|
+
COMPARTMENTS.NUCLEARLUMEN: "GO:0031981",
|
245
|
+
COMPARTMENTS.NUCLEOLUS: "GO:0005730",
|
246
|
+
COMPARTMENTS.LYSOSOME: "GO:0005764",
|
247
|
+
COMPARTMENTS.PEROXISOME: "GO:0005777",
|
248
|
+
COMPARTMENTS.EXTRACELLULAR: "GO:0005615",
|
249
|
+
}
|