aiagents4pharma 1.39.4__tar.gz → 1.39.5__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 (266) hide show
  1. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/PKG-INFO +1 -1
  2. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/tests/test_utils_enrichments_ols.py +10 -10
  3. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/tests/test_utils_pubchem_utils.py +11 -0
  4. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/utils/enrichments/ols_terms.py +15 -7
  5. aiagents4pharma-1.39.5/aiagents4pharma/talk2knowledgegraphs/utils/enrichments/pubchem_strings.py +76 -0
  6. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/utils/pubchem_utils.py +33 -2
  7. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma.egg-info/PKG-INFO +1 -1
  8. aiagents4pharma-1.39.5/release_version.txt +1 -0
  9. aiagents4pharma-1.39.4/aiagents4pharma/talk2knowledgegraphs/utils/enrichments/pubchem_strings.py +0 -54
  10. aiagents4pharma-1.39.4/release_version.txt +0 -1
  11. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/LICENSE +0 -0
  12. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/README.md +0 -0
  13. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/__init__.py +0 -0
  14. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2aiagents4pharma/__init__.py +0 -0
  15. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2aiagents4pharma/agents/__init__.py +0 -0
  16. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2aiagents4pharma/agents/main_agent.py +0 -0
  17. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2aiagents4pharma/configs/__init__.py +0 -0
  18. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2aiagents4pharma/configs/agents/__init__.py +0 -0
  19. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2aiagents4pharma/configs/agents/main_agent/default.yaml +0 -0
  20. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2aiagents4pharma/configs/config.yaml +0 -0
  21. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2aiagents4pharma/states/__init__.py +0 -0
  22. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2aiagents4pharma/states/state_talk2aiagents4pharma.py +0 -0
  23. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2aiagents4pharma/tests/__init__.py +0 -0
  24. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2aiagents4pharma/tests/test_main_agent.py +0 -0
  25. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/__init__.py +0 -0
  26. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/agents/__init__.py +0 -0
  27. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/agents/t2b_agent.py +0 -0
  28. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/api/__init__.py +0 -0
  29. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/api/kegg.py +0 -0
  30. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/api/ols.py +0 -0
  31. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/api/uniprot.py +0 -0
  32. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/configs/__init__.py +0 -0
  33. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/configs/agents/__init__.py +0 -0
  34. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/configs/agents/t2b_agent/__init__.py +0 -0
  35. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/configs/agents/t2b_agent/default.yaml +0 -0
  36. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/configs/config.yaml +0 -0
  37. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/configs/tools/__init__.py +0 -0
  38. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/configs/tools/ask_question/__init__.py +0 -0
  39. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/configs/tools/ask_question/default.yaml +0 -0
  40. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/configs/tools/custom_plotter/__init__.py +0 -0
  41. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/configs/tools/custom_plotter/default.yaml +0 -0
  42. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/configs/tools/get_annotation/__init__.py +0 -0
  43. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/configs/tools/get_annotation/default.yaml +0 -0
  44. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/models/__init__.py +0 -0
  45. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/models/basico_model.py +0 -0
  46. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/models/sys_bio_model.py +0 -0
  47. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/states/__init__.py +0 -0
  48. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/states/state_talk2biomodels.py +0 -0
  49. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/tests/__init__.py +0 -0
  50. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/tests/test_api.py +0 -0
  51. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/tests/test_ask_question.py +0 -0
  52. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/tests/test_basico_model.py +0 -0
  53. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/tests/test_get_annotation.py +0 -0
  54. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/tests/test_getmodelinfo.py +0 -0
  55. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/tests/test_integration.py +0 -0
  56. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/tests/test_load_biomodel.py +0 -0
  57. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/tests/test_param_scan.py +0 -0
  58. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/tests/test_query_article.py +0 -0
  59. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/tests/test_search_models.py +0 -0
  60. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/tests/test_simulate_model.py +0 -0
  61. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/tests/test_steady_state.py +0 -0
  62. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/tests/test_sys_bio_model.py +0 -0
  63. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/tools/__init__.py +0 -0
  64. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/tools/ask_question.py +0 -0
  65. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/tools/custom_plotter.py +0 -0
  66. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/tools/get_annotation.py +0 -0
  67. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/tools/get_modelinfo.py +0 -0
  68. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/tools/load_arguments.py +0 -0
  69. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/tools/load_biomodel.py +0 -0
  70. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/tools/parameter_scan.py +0 -0
  71. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/tools/query_article.py +0 -0
  72. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/tools/search_models.py +0 -0
  73. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/tools/simulate_model.py +0 -0
  74. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/tools/steady_state.py +0 -0
  75. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2biomodels/tools/utils.py +0 -0
  76. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2cells/__init__.py +0 -0
  77. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2cells/agents/__init__.py +0 -0
  78. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2cells/agents/scp_agent.py +0 -0
  79. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2cells/states/__init__.py +0 -0
  80. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2cells/states/state_talk2cells.py +0 -0
  81. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2cells/tests/scp_agent/test_scp_agent.py +0 -0
  82. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2cells/tools/__init__.py +0 -0
  83. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2cells/tools/scp_agent/__init__.py +0 -0
  84. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2cells/tools/scp_agent/display_studies.py +0 -0
  85. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2cells/tools/scp_agent/search_studies.py +0 -0
  86. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/__init__.py +0 -0
  87. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/agents/__init__.py +0 -0
  88. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/agents/t2kg_agent.py +0 -0
  89. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/configs/__init__.py +0 -0
  90. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/configs/agents/t2kg_agent/__init__.py +0 -0
  91. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/configs/agents/t2kg_agent/default.yaml +0 -0
  92. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/configs/app/__init__.py +0 -0
  93. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/configs/app/frontend/__init__.py +0 -0
  94. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/configs/app/frontend/default.yaml +0 -0
  95. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/configs/config.yaml +0 -0
  96. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/configs/tools/__init__.py +0 -0
  97. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/configs/tools/graphrag_reasoning/__init__.py +0 -0
  98. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/configs/tools/graphrag_reasoning/default.yaml +0 -0
  99. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/configs/tools/multimodal_subgraph_extraction/__init__.py +0 -0
  100. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/configs/tools/subgraph_extraction/__init__.py +0 -0
  101. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/configs/tools/subgraph_extraction/default.yaml +0 -0
  102. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/configs/tools/subgraph_summarization/__init__.py +0 -0
  103. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/configs/tools/subgraph_summarization/default.yaml +0 -0
  104. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/datasets/__init__.py +0 -0
  105. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/datasets/biobridge_primekg.py +0 -0
  106. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/datasets/dataset.py +0 -0
  107. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/datasets/primekg.py +0 -0
  108. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/datasets/starkqa_primekg.py +0 -0
  109. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/states/__init__.py +0 -0
  110. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/states/state_talk2knowledgegraphs.py +0 -0
  111. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/tests/__init__.py +0 -0
  112. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/tests/test_agents_t2kg_agent.py +0 -0
  113. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/tests/test_datasets_biobridge_primekg.py +0 -0
  114. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/tests/test_datasets_dataset.py +0 -0
  115. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/tests/test_datasets_primekg.py +0 -0
  116. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/tests/test_datasets_starkqa_primekg.py +0 -0
  117. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/tests/test_tools_graphrag_reasoning.py +0 -0
  118. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/tests/test_tools_multimodal_subgraph_extraction.py +0 -0
  119. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/tests/test_tools_subgraph_extraction.py +0 -0
  120. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/tests/test_tools_subgraph_summarization.py +0 -0
  121. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/tests/test_utils_embeddings_embeddings.py +0 -0
  122. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/tests/test_utils_embeddings_huggingface.py +0 -0
  123. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/tests/test_utils_embeddings_nim_molmim.py +0 -0
  124. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/tests/test_utils_embeddings_ollama.py +0 -0
  125. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/tests/test_utils_embeddings_sentencetransformer.py +0 -0
  126. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/tests/test_utils_enrichments_enrichments.py +0 -0
  127. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/tests/test_utils_enrichments_ollama.py +0 -0
  128. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/tests/test_utils_enrichments_pubchem.py +0 -0
  129. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/tests/test_utils_enrichments_reactome.py +0 -0
  130. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/tests/test_utils_enrichments_uniprot.py +0 -0
  131. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/tests/test_utils_kg_utils.py +0 -0
  132. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/tools/__init__.py +0 -0
  133. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/tools/graphrag_reasoning.py +0 -0
  134. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/tools/load_arguments.py +0 -0
  135. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/tools/multimodal_subgraph_extraction.py +0 -0
  136. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/tools/subgraph_extraction.py +0 -0
  137. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/tools/subgraph_summarization.py +0 -0
  138. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/utils/__init__.py +0 -0
  139. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/utils/embeddings/__init__.py +0 -0
  140. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/utils/embeddings/embeddings.py +0 -0
  141. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/utils/embeddings/huggingface.py +0 -0
  142. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/utils/embeddings/nim_molmim.py +0 -0
  143. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/utils/embeddings/ollama.py +0 -0
  144. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/utils/embeddings/sentence_transformer.py +0 -0
  145. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/utils/enrichments/__init__.py +0 -0
  146. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/utils/enrichments/enrichments.py +0 -0
  147. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/utils/enrichments/ollama.py +0 -0
  148. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/utils/enrichments/reactome_pathways.py +0 -0
  149. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/utils/enrichments/uniprot_proteins.py +0 -0
  150. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/utils/extractions/__init__.py +0 -0
  151. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/utils/extractions/multimodal_pcst.py +0 -0
  152. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/utils/extractions/pcst.py +0 -0
  153. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2knowledgegraphs/utils/kg_utils.py +0 -0
  154. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/__init__.py +0 -0
  155. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/agents/__init__.py +0 -0
  156. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/agents/main_agent.py +0 -0
  157. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/agents/paper_download_agent.py +0 -0
  158. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/agents/pdf_agent.py +0 -0
  159. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/agents/s2_agent.py +0 -0
  160. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/agents/zotero_agent.py +0 -0
  161. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/configs/__init__.py +0 -0
  162. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/configs/agents/__init__.py +0 -0
  163. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/configs/agents/talk2scholars/__init__.py +0 -0
  164. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/configs/agents/talk2scholars/main_agent/__init__.py +0 -0
  165. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/configs/agents/talk2scholars/main_agent/default.yaml +0 -0
  166. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/configs/agents/talk2scholars/paper_download_agent/__init__.py +0 -0
  167. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/configs/agents/talk2scholars/paper_download_agent/default.yaml +0 -0
  168. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/configs/agents/talk2scholars/pdf_agent/__init__.py +0 -0
  169. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/configs/agents/talk2scholars/pdf_agent/default.yaml +0 -0
  170. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/configs/agents/talk2scholars/s2_agent/__init__.py +0 -0
  171. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/configs/agents/talk2scholars/s2_agent/default.yaml +0 -0
  172. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/configs/agents/talk2scholars/zotero_agent/__init__.py +0 -0
  173. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/configs/agents/talk2scholars/zotero_agent/default.yaml +0 -0
  174. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/configs/app/__init__.py +0 -0
  175. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/configs/app/frontend/__init__.py +0 -0
  176. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/configs/app/frontend/default.yaml +0 -0
  177. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/configs/config.yaml +0 -0
  178. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/configs/tools/__init__.py +0 -0
  179. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/configs/tools/download_arxiv_paper/__init__.py +0 -0
  180. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/configs/tools/download_arxiv_paper/default.yaml +0 -0
  181. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/configs/tools/download_biorxiv_paper/__init__.py +0 -0
  182. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/configs/tools/download_biorxiv_paper/default.yaml +0 -0
  183. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/configs/tools/download_medrxiv_paper/__init__.py +0 -0
  184. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/configs/tools/download_medrxiv_paper/default.yaml +0 -0
  185. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/configs/tools/multi_paper_recommendation/__init__.py +0 -0
  186. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/configs/tools/multi_paper_recommendation/default.yaml +0 -0
  187. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/configs/tools/question_and_answer/__init__.py +0 -0
  188. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/configs/tools/question_and_answer/default.yaml +0 -0
  189. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/configs/tools/retrieve_semantic_scholar_paper_id/__init__.py +0 -0
  190. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/configs/tools/retrieve_semantic_scholar_paper_id/default.yaml +0 -0
  191. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/configs/tools/search/__init__.py +0 -0
  192. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/configs/tools/search/default.yaml +0 -0
  193. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/configs/tools/single_paper_recommendation/__init__.py +0 -0
  194. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/configs/tools/single_paper_recommendation/default.yaml +0 -0
  195. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/configs/tools/zotero_read/__init__.py +0 -0
  196. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/configs/tools/zotero_read/default.yaml +0 -0
  197. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/configs/tools/zotero_write/__inti__.py +0 -0
  198. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/configs/tools/zotero_write/default.yaml +0 -0
  199. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/state/__init__.py +0 -0
  200. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/state/state_talk2scholars.py +0 -0
  201. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tests/__init__.py +0 -0
  202. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tests/test_main_agent.py +0 -0
  203. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tests/test_nvidia_nim_reranker_utils.py +0 -0
  204. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tests/test_paper_download_agent.py +0 -0
  205. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tests/test_paper_download_biorxiv.py +0 -0
  206. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tests/test_paper_download_medrxiv.py +0 -0
  207. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tests/test_paper_download_tools.py +0 -0
  208. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tests/test_pdf_agent.py +0 -0
  209. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tests/test_question_and_answer_tool.py +0 -0
  210. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tests/test_read_helper_utils.py +0 -0
  211. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tests/test_s2_agent.py +0 -0
  212. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tests/test_s2_display_dataframe.py +0 -0
  213. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tests/test_s2_multi.py +0 -0
  214. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tests/test_s2_query_dataframe.py +0 -0
  215. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tests/test_s2_retrieve.py +0 -0
  216. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tests/test_s2_search.py +0 -0
  217. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tests/test_s2_single.py +0 -0
  218. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tests/test_s2_utils_ext_ids.py +0 -0
  219. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tests/test_state.py +0 -0
  220. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tests/test_tool_helper_utils.py +0 -0
  221. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tests/test_zotero_agent.py +0 -0
  222. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tests/test_zotero_human_in_the_loop.py +0 -0
  223. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tests/test_zotero_path.py +0 -0
  224. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tests/test_zotero_pdf_downloader_utils.py +0 -0
  225. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tests/test_zotero_read.py +0 -0
  226. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tests/test_zotero_write.py +0 -0
  227. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tools/__init__.py +0 -0
  228. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tools/paper_download/__init__.py +0 -0
  229. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tools/paper_download/download_arxiv_input.py +0 -0
  230. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tools/paper_download/download_biorxiv_input.py +0 -0
  231. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tools/paper_download/download_medrxiv_input.py +0 -0
  232. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tools/pdf/__init__.py +0 -0
  233. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tools/pdf/question_and_answer.py +0 -0
  234. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tools/pdf/utils/__init__.py +0 -0
  235. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tools/pdf/utils/generate_answer.py +0 -0
  236. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tools/pdf/utils/nvidia_nim_reranker.py +0 -0
  237. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tools/pdf/utils/retrieve_chunks.py +0 -0
  238. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tools/pdf/utils/tool_helper.py +0 -0
  239. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tools/pdf/utils/vector_store.py +0 -0
  240. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tools/s2/__init__.py +0 -0
  241. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tools/s2/display_dataframe.py +0 -0
  242. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tools/s2/multi_paper_rec.py +0 -0
  243. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tools/s2/query_dataframe.py +0 -0
  244. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tools/s2/retrieve_semantic_scholar_paper_id.py +0 -0
  245. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tools/s2/search.py +0 -0
  246. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tools/s2/single_paper_rec.py +0 -0
  247. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tools/s2/utils/__init__.py +0 -0
  248. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tools/s2/utils/multi_helper.py +0 -0
  249. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tools/s2/utils/search_helper.py +0 -0
  250. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tools/s2/utils/single_helper.py +0 -0
  251. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tools/zotero/__init__.py +0 -0
  252. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tools/zotero/utils/__init__.py +0 -0
  253. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tools/zotero/utils/read_helper.py +0 -0
  254. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tools/zotero/utils/review_helper.py +0 -0
  255. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tools/zotero/utils/write_helper.py +0 -0
  256. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tools/zotero/utils/zotero_path.py +0 -0
  257. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tools/zotero/utils/zotero_pdf_downloader.py +0 -0
  258. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tools/zotero/zotero_read.py +0 -0
  259. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tools/zotero/zotero_review.py +0 -0
  260. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma/talk2scholars/tools/zotero/zotero_write.py +0 -0
  261. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma.egg-info/SOURCES.txt +0 -0
  262. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma.egg-info/dependency_links.txt +0 -0
  263. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma.egg-info/requires.txt +0 -0
  264. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/aiagents4pharma.egg-info/top_level.txt +0 -0
  265. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/pyproject.toml +0 -0
  266. {aiagents4pharma-1.39.4 → aiagents4pharma-1.39.5}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aiagents4pharma
3
- Version: 1.39.4
3
+ Version: 1.39.5
4
4
  Summary: AI Agents for drug discovery, drug development, and other pharmaceutical R&D.
5
5
  Classifier: Programming Language :: Python :: 3
6
6
  Classifier: License :: OSI Approved :: MIT License
@@ -42,11 +42,11 @@ def test_enrich_documents(enrich_obj):
42
42
  "XYZ_0000000",
43
43
  ]
44
44
  descriptions = enrich_obj.enrich_documents(ols_terms)
45
- assert descriptions[0].startswith(CL_DESC)
46
- assert descriptions[1].startswith(GO_DESC)
47
- assert descriptions[2].startswith(UBERON_DESC)
48
- assert descriptions[3].startswith(HP_DESC)
49
- assert descriptions[4].startswith(MONDO_DESC)
45
+ assert CL_DESC in descriptions[0]
46
+ assert GO_DESC in descriptions[1]
47
+ assert UBERON_DESC in descriptions[2]
48
+ assert HP_DESC in descriptions[3]
49
+ assert MONDO_DESC in descriptions[4]
50
50
  assert descriptions[5] is None
51
51
 
52
52
 
@@ -61,9 +61,9 @@ def test_enrich_documents_with_rag(enrich_obj):
61
61
  "XYZ_0000000",
62
62
  ]
63
63
  descriptions = enrich_obj.enrich_documents_with_rag(ols_terms, None)
64
- assert descriptions[0].startswith(CL_DESC)
65
- assert descriptions[1].startswith(GO_DESC)
66
- assert descriptions[2].startswith(UBERON_DESC)
67
- assert descriptions[3].startswith(HP_DESC)
68
- assert descriptions[4].startswith(MONDO_DESC)
64
+ assert CL_DESC in descriptions[0]
65
+ assert GO_DESC in descriptions[1]
66
+ assert UBERON_DESC in descriptions[2]
67
+ assert HP_DESC in descriptions[3]
68
+ assert MONDO_DESC in descriptions[4]
69
69
  assert descriptions[5] is None
@@ -4,6 +4,17 @@ Test cases for utils/pubchem_utils.py
4
4
 
5
5
  from ..utils import pubchem_utils
6
6
 
7
+ def test_cas_rn2pubchem_cid():
8
+ """
9
+ Test the casRN2pubchem_cid function.
10
+
11
+ The CAS RN for ethyl cabonate is 105-58-8.
12
+ The PubChem CID for ethyl cabonate is 7766.
13
+ """
14
+ casrn = "105-58-8"
15
+ pubchem_cid = pubchem_utils.cas_rn2pubchem_cid(casrn)
16
+ assert pubchem_cid == 7766
17
+
7
18
  def test_external_id2pubchem_cid():
8
19
  """
9
20
  Test the external_id2pubchem_cid function.
@@ -54,13 +54,21 @@ class EnrichmentWithOLS(Enrichments):
54
54
  descriptions.append(None)
55
55
  continue
56
56
  # Add the description to the list
57
- description = response_body['_embedded']['terms'][0]['description']
58
- # Add synonyms to the description
59
- description += response_body['_embedded']['terms'][0]['synonyms']
60
- # Add the label to the description
61
- # Label is not provided as list, so we need to convert it to a list
62
- description += [response_body['_embedded']['terms'][0]['label']]
63
- descriptions.append('\n'.join(description))
57
+ description = []
58
+ for term in response_body['_embedded']['terms']:
59
+ # If the term has a description, add it to the list
60
+ description += term.get('description', [])
61
+ # Add synonyms to the description
62
+ description += term.get('synonyms', [])
63
+ # Add the label to the description
64
+ # Label is not provided as list, so we need to convert it to a list
65
+ description += [term.get('label', [])]
66
+ # Make unique the description
67
+ description = list(set(description))
68
+ # Join the description with new line
69
+ description = '\n'.join(description)
70
+ # Add the description to the list
71
+ descriptions.append(description)
64
72
  return descriptions
65
73
 
66
74
  def enrich_documents_with_rag(self, texts, docs):
@@ -0,0 +1,76 @@
1
+ #!/usr/bin/env python3
2
+
3
+ """
4
+ Enrichment class for enriching PubChem IDs with their STRINGS representation and descriptions.
5
+ """
6
+
7
+ import logging
8
+ from typing import List
9
+ import requests
10
+ import hydra
11
+ from .enrichments import Enrichments
12
+ from ..pubchem_utils import pubchem_cid_description
13
+
14
+ # Initialize logger
15
+ logging.basicConfig(level=logging.INFO)
16
+ logger = logging.getLogger(__name__)
17
+
18
+ class EnrichmentWithPubChem(Enrichments):
19
+ """
20
+ Enrichment class using PubChem
21
+ """
22
+ def enrich_documents(self, texts: List[str]) -> List[str]:
23
+ """
24
+ Enrich a list of input PubChem IDs with their STRINGS representation.
25
+
26
+ Args:
27
+ texts: The list of pubchem IDs to be enriched.
28
+
29
+ Returns:
30
+ The list of enriched STRINGS and their descriptions.
31
+ """
32
+
33
+ enriched_pubchem_ids_smiles = []
34
+ enriched_pubchem_ids_descriptions = []
35
+
36
+ # Load Hydra configuration to get the base URL for PubChem
37
+ with hydra.initialize(version_base=None, config_path="../../configs"):
38
+ cfg = hydra.compose(config_name='config',
39
+ overrides=['utils/pubchem_utils=default'])
40
+ cfg = cfg.utils.pubchem_utils
41
+ # Iterate over each PubChem ID in the input list
42
+ pubchem_cids = texts
43
+ for pubchem_cid in pubchem_cids:
44
+ # Prepare the URL
45
+ pubchem_url = f"{cfg.pubchem_cid2smiles_url}/{pubchem_cid}/property/smiles/JSON"
46
+ # Get the data
47
+ response = requests.get(pubchem_url, timeout=60)
48
+ data = response.json()
49
+ # Extract the PubChem CID SMILES
50
+ smiles = ''
51
+ description = ''
52
+ if "PropertyTable" in data:
53
+ for prop in data["PropertyTable"]['Properties']:
54
+ smiles = prop.get("SMILES", '')
55
+ description = pubchem_cid_description(pubchem_cid)
56
+ else:
57
+ # If the PubChem ID is not found, set smiles and description to None
58
+ smiles = None
59
+ description = None
60
+ enriched_pubchem_ids_smiles.append(smiles)
61
+ enriched_pubchem_ids_descriptions.append(description)
62
+
63
+ return enriched_pubchem_ids_descriptions, enriched_pubchem_ids_smiles
64
+
65
+ def enrich_documents_with_rag(self, texts, docs):
66
+ """
67
+ Enrich a list of input PubChem IDs with their STRINGS representation.
68
+
69
+ Args:
70
+ texts: The list of pubchem IDs to be enriched.
71
+ docs: None
72
+
73
+ Returns:
74
+ The list of enriched STRINGS
75
+ """
76
+ return self.enrich_documents(texts)
@@ -12,6 +12,37 @@ import hydra
12
12
  logging.basicConfig(level=logging.INFO)
13
13
  logger = logging.getLogger(__name__)
14
14
 
15
+ def cas_rn2pubchem_cid(casrn):
16
+ """
17
+ Convert CAS RN to PubChem CID.
18
+
19
+ Args:
20
+ casrn: The CAS RN of the drug.
21
+
22
+ Returns:
23
+ The PubChem CID of the drug.
24
+ """
25
+ # Load Hydra configuration for PubChem ID conversion
26
+ with hydra.initialize(version_base=None, config_path="../configs"):
27
+ cfg = hydra.compose(config_name='config',
28
+ overrides=['utils/pubchem_utils=default'])
29
+ cfg = cfg.utils.pubchem_utils
30
+ # Prepare the URL
31
+ pubchem_url_for_drug = f"{cfg.pubchem_casrn2cid_url}{casrn}/record/JSON"
32
+ # Get the data
33
+ response = requests.get(pubchem_url_for_drug, timeout=60)
34
+ data = response.json()
35
+ # Extract the PubChem CID
36
+ cid = None
37
+ for substance in data.get("PC_Substances", []):
38
+ for compound in substance.get("compound", []):
39
+ if "id" in compound and "type" in compound["id"] and compound["id"]["type"] == 1:
40
+ cid = compound["id"].get("id", {}).get("cid")
41
+ break
42
+ if cid is not None:
43
+ break
44
+ return cid
45
+
15
46
  def external_id2pubchem_cid(db, db_id):
16
47
  """
17
48
  Convert external DB ID to PubChem CID.
@@ -26,7 +57,7 @@ def external_id2pubchem_cid(db, db_id):
26
57
  Returns:
27
58
  The PubChem CID of the drug.
28
59
  """
29
- logger.log(logging.INFO, "Load Hydra configuration for PubChem ID conversion.")
60
+ # Load Hydra configuration for PubChem ID conversion
30
61
  with hydra.initialize(version_base=None, config_path="../configs"):
31
62
  cfg = hydra.compose(config_name='config',
32
63
  overrides=['utils/pubchem_utils=default'])
@@ -55,7 +86,7 @@ def pubchem_cid_description(cid):
55
86
  Returns:
56
87
  The description of the PubChem CID.
57
88
  """
58
- logger.log(logging.INFO, "Load Hydra configuration for PubChem CID description.")
89
+ # Load Hydra configuration for PubChem CID description
59
90
  with hydra.initialize(version_base=None, config_path="../configs"):
60
91
  cfg = hydra.compose(config_name='config',
61
92
  overrides=['utils/pubchem_utils=default'])
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aiagents4pharma
3
- Version: 1.39.4
3
+ Version: 1.39.5
4
4
  Summary: AI Agents for drug discovery, drug development, and other pharmaceutical R&D.
5
5
  Classifier: Programming Language :: Python :: 3
6
6
  Classifier: License :: OSI Approved :: MIT License
@@ -0,0 +1 @@
1
+ v1.39.5
@@ -1,54 +0,0 @@
1
- #!/usr/bin/env python3
2
-
3
- """
4
- Enrichment class for enriching PubChem IDs with their STRINGS representation and descriptions.
5
- """
6
-
7
- from typing import List
8
- import pubchempy as pcp
9
- from .enrichments import Enrichments
10
- from ..pubchem_utils import pubchem_cid_description
11
-
12
- class EnrichmentWithPubChem(Enrichments):
13
- """
14
- Enrichment class using PubChem
15
- """
16
- def enrich_documents(self, texts: List[str]) -> List[str]:
17
- """
18
- Enrich a list of input PubChem IDs with their STRINGS representation.
19
-
20
- Args:
21
- texts: The list of pubchem IDs to be enriched.
22
-
23
- Returns:
24
- The list of enriched STRINGS and their descriptions.
25
- """
26
-
27
- enriched_pubchem_ids_smiles = []
28
- enriched_pubchem_ids_descriptions = []
29
-
30
- pubchem_cids = texts
31
- for pubchem_cid in pubchem_cids:
32
- try:
33
- c = pcp.Compound.from_cid(pubchem_cid)
34
- except pcp.BadRequestError:
35
- enriched_pubchem_ids_smiles.append(None)
36
- enriched_pubchem_ids_descriptions.append(None)
37
- continue
38
- enriched_pubchem_ids_smiles.append(c.isomeric_smiles)
39
- enriched_pubchem_ids_descriptions.append(pubchem_cid_description(pubchem_cid))
40
-
41
- return enriched_pubchem_ids_descriptions, enriched_pubchem_ids_smiles
42
-
43
- def enrich_documents_with_rag(self, texts, docs):
44
- """
45
- Enrich a list of input PubChem IDs with their STRINGS representation.
46
-
47
- Args:
48
- texts: The list of pubchem IDs to be enriched.
49
- docs: None
50
-
51
- Returns:
52
- The list of enriched STRINGS
53
- """
54
- return self.enrich_documents(texts)
@@ -1 +0,0 @@
1
- v1.39.4