napistu 0.3.2.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.
Files changed (141) hide show
  1. {napistu-0.3.2.dev1 → napistu-0.3.3}/PKG-INFO +1 -1
  2. {napistu-0.3.2.dev1 → napistu-0.3.3}/setup.cfg +1 -1
  3. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/constants.py +0 -80
  4. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/ingestion/constants.py +106 -37
  5. napistu-0.3.3/src/napistu/ingestion/sbml.py +695 -0
  6. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/ingestion/string.py +2 -2
  7. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/modify/gaps.py +3 -3
  8. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/sbml_dfs_core.py +19 -20
  9. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu.egg-info/PKG-INFO +1 -1
  10. napistu-0.3.3/src/tests/test_sbml.py +48 -0
  11. napistu-0.3.2.dev1/src/napistu/ingestion/sbml.py +0 -524
  12. napistu-0.3.2.dev1/src/tests/test_sbml.py +0 -17
  13. {napistu-0.3.2.dev1 → napistu-0.3.3}/LICENSE +0 -0
  14. {napistu-0.3.2.dev1 → napistu-0.3.3}/README.md +0 -0
  15. {napistu-0.3.2.dev1 → napistu-0.3.3}/pyproject.toml +0 -0
  16. {napistu-0.3.2.dev1 → napistu-0.3.3}/setup.py +0 -0
  17. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/__init__.py +0 -0
  18. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/__main__.py +0 -0
  19. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/consensus.py +0 -0
  20. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/context/__init__.py +0 -0
  21. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/context/discretize.py +0 -0
  22. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/context/filtering.py +0 -0
  23. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/gcs/__init__.py +0 -0
  24. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/gcs/constants.py +0 -0
  25. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/gcs/downloads.py +0 -0
  26. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/gcs/utils.py +0 -0
  27. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/identifiers.py +0 -0
  28. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/indices.py +0 -0
  29. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/ingestion/__init__.py +0 -0
  30. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/ingestion/bigg.py +0 -0
  31. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/ingestion/gtex.py +0 -0
  32. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/ingestion/hpa.py +0 -0
  33. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/ingestion/identifiers_etl.py +0 -0
  34. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/ingestion/napistu_edgelist.py +0 -0
  35. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/ingestion/obo.py +0 -0
  36. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/ingestion/psi_mi.py +0 -0
  37. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/ingestion/reactome.py +0 -0
  38. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/ingestion/trrust.py +0 -0
  39. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/ingestion/yeast.py +0 -0
  40. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/matching/__init__.py +0 -0
  41. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/matching/constants.py +0 -0
  42. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/matching/interactions.py +0 -0
  43. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/matching/mount.py +0 -0
  44. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/matching/species.py +0 -0
  45. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/mcp/__init__.py +0 -0
  46. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/mcp/__main__.py +0 -0
  47. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/mcp/client.py +0 -0
  48. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/mcp/codebase.py +0 -0
  49. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/mcp/codebase_utils.py +0 -0
  50. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/mcp/component_base.py +0 -0
  51. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/mcp/config.py +0 -0
  52. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/mcp/constants.py +0 -0
  53. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/mcp/documentation.py +0 -0
  54. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/mcp/documentation_utils.py +0 -0
  55. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/mcp/execution.py +0 -0
  56. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/mcp/health.py +0 -0
  57. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/mcp/profiles.py +0 -0
  58. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/mcp/server.py +0 -0
  59. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/mcp/tutorials.py +0 -0
  60. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/mcp/tutorials_utils.py +0 -0
  61. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/mcp/utils.py +0 -0
  62. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/modify/__init__.py +0 -0
  63. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/modify/constants.py +0 -0
  64. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/modify/curation.py +0 -0
  65. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/modify/pathwayannot.py +0 -0
  66. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/modify/uncompartmentalize.py +0 -0
  67. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/network/__init__.py +0 -0
  68. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/network/constants.py +0 -0
  69. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/network/data_handling.py +0 -0
  70. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/network/ig_utils.py +0 -0
  71. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/network/napistu_graph_core.py +0 -0
  72. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/network/neighborhoods.py +0 -0
  73. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/network/net_create.py +0 -0
  74. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/network/net_propagation.py +0 -0
  75. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/network/ng_utils.py +0 -0
  76. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/network/paths.py +0 -0
  77. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/network/precompute.py +0 -0
  78. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/ontologies/__init__.py +0 -0
  79. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/ontologies/constants.py +0 -0
  80. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/ontologies/dogma.py +0 -0
  81. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/ontologies/genodexito.py +0 -0
  82. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/ontologies/mygene.py +0 -0
  83. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/ontologies/renaming.py +0 -0
  84. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/rpy2/__init__.py +0 -0
  85. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/rpy2/callr.py +0 -0
  86. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/rpy2/constants.py +0 -0
  87. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/rpy2/rids.py +0 -0
  88. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/sbml_dfs_utils.py +0 -0
  89. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/scverse/__init__.py +0 -0
  90. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/scverse/constants.py +0 -0
  91. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/scverse/loading.py +0 -0
  92. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/source.py +0 -0
  93. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu/utils.py +0 -0
  94. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu.egg-info/SOURCES.txt +0 -0
  95. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu.egg-info/dependency_links.txt +0 -0
  96. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu.egg-info/entry_points.txt +0 -0
  97. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu.egg-info/requires.txt +0 -0
  98. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/napistu.egg-info/top_level.txt +0 -0
  99. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/tests/__init__.py +0 -0
  100. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/tests/conftest.py +0 -0
  101. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/tests/test_consensus.py +0 -0
  102. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/tests/test_constants.py +0 -0
  103. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/tests/test_context_discretize.py +0 -0
  104. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/tests/test_context_filtering.py +0 -0
  105. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/tests/test_curation.py +0 -0
  106. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/tests/test_data/__init__.py +0 -0
  107. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/tests/test_gaps.py +0 -0
  108. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/tests/test_gcs.py +0 -0
  109. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/tests/test_identifiers.py +0 -0
  110. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/tests/test_indices.py +0 -0
  111. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/tests/test_ingestion_napistu_edgelist.py +0 -0
  112. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/tests/test_ingestion_obo.py +0 -0
  113. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/tests/test_matching_interactions.py +0 -0
  114. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/tests/test_matching_mount.py +0 -0
  115. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/tests/test_matching_species.py +0 -0
  116. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/tests/test_mcp_config.py +0 -0
  117. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/tests/test_mcp_documentation_utils.py +0 -0
  118. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/tests/test_mcp_server.py +0 -0
  119. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/tests/test_network_data_handling.py +0 -0
  120. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/tests/test_network_ig_utils.py +0 -0
  121. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/tests/test_network_neighborhoods.py +0 -0
  122. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/tests/test_network_net_create.py +0 -0
  123. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/tests/test_network_net_propagation.py +0 -0
  124. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/tests/test_network_ng_utils.py +0 -0
  125. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/tests/test_network_paths.py +0 -0
  126. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/tests/test_network_precompute.py +0 -0
  127. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/tests/test_ontologies_genodexito.py +0 -0
  128. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/tests/test_ontologies_mygene.py +0 -0
  129. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/tests/test_ontologies_renaming.py +0 -0
  130. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/tests/test_pathwayannot.py +0 -0
  131. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/tests/test_rpy2_callr.py +0 -0
  132. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/tests/test_rpy2_init.py +0 -0
  133. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/tests/test_sbml_dfs_core.py +0 -0
  134. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/tests/test_sbml_dfs_utils.py +0 -0
  135. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/tests/test_sbo.py +0 -0
  136. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/tests/test_scverse_loading.py +0 -0
  137. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/tests/test_set_coverage.py +0 -0
  138. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/tests/test_source.py +0 -0
  139. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/tests/test_uncompartmentalize.py +0 -0
  140. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/tests/test_utils.py +0 -0
  141. {napistu-0.3.2.dev1 → napistu-0.3.3}/src/tests/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: napistu
3
- Version: 0.3.2.dev1
3
+ Version: 0.3.3
4
4
  Summary: Connecting high-dimensional data to curated pathways
5
5
  Home-page: https://github.com/napistu/napistu-py
6
6
  Author: Sean Hackett
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = napistu
3
- version = 0.3.2.dev1
3
+ version = 0.3.3
4
4
  description = Connecting high-dimensional data to curated pathways
5
5
  long_description = file: README.md
6
6
  long_description_content_type = text/markdown
@@ -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
- SMBL_ERROR_NUMBER = "error_number"
96
- SMBL_ERROR_CATEGORY = "category"
97
- SMBL_ERROR_SEVERITY = "severity"
98
- SMBL_ERROR_DESCRIPTION = "description"
99
- SMBL_ERROR_MESSAGE = "message"
100
-
101
- SMBL_SUMMARY_PATHWAY_NAME = "Pathway Name"
102
- SMBL_SUMMARY_PATHWAY_ID = "Pathway ID"
103
- SMBL_SUMMARY_N_SPECIES = "# of Species"
104
- SMBL_SUMMARY_N_REACTIONS = "# of Reactions"
105
- SMBL_SUMMARY_COMPARTMENTS = "Compartments"
106
-
107
- SMBL_REACTION_DICT_ID = "r_id"
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
+ }