tooluniverse 1.0.7__py3-none-any.whl → 1.0.8__py3-none-any.whl
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.
Potentially problematic release.
This version of tooluniverse might be problematic. Click here for more details.
- tooluniverse/__init__.py +29 -14
- tooluniverse/admetai_tool.py +8 -4
- tooluniverse/base_tool.py +36 -0
- tooluniverse/biogrid_tool.py +118 -0
- tooluniverse/build_optimizer.py +87 -0
- tooluniverse/cache/__init__.py +3 -0
- tooluniverse/cache/memory_cache.py +99 -0
- tooluniverse/cache/result_cache_manager.py +235 -0
- tooluniverse/cache/sqlite_backend.py +257 -0
- tooluniverse/clinvar_tool.py +90 -0
- tooluniverse/custom_tool.py +28 -0
- tooluniverse/data/arxiv_tools.json +1 -4
- tooluniverse/data/core_tools.json +1 -4
- tooluniverse/data/dataset_tools.json +7 -7
- tooluniverse/data/doaj_tools.json +1 -3
- tooluniverse/data/drug_discovery_agents.json +292 -0
- tooluniverse/data/europe_pmc_tools.json +1 -2
- tooluniverse/data/genomics_tools.json +174 -0
- tooluniverse/data/geo_tools.json +86 -0
- tooluniverse/data/markitdown_tools.json +51 -0
- tooluniverse/data/openalex_tools.json +1 -5
- tooluniverse/data/pmc_tools.json +1 -4
- tooluniverse/data/ppi_tools.json +139 -0
- tooluniverse/data/pubmed_tools.json +1 -3
- tooluniverse/data/semantic_scholar_tools.json +1 -2
- tooluniverse/data/unified_guideline_tools.json +206 -4
- tooluniverse/data/xml_tools.json +15 -15
- tooluniverse/data/zenodo_tools.json +1 -2
- tooluniverse/dbsnp_tool.py +71 -0
- tooluniverse/default_config.py +6 -0
- tooluniverse/ensembl_tool.py +61 -0
- tooluniverse/execute_function.py +196 -75
- tooluniverse/generate_tools.py +303 -20
- tooluniverse/genomics_gene_search_tool.py +56 -0
- tooluniverse/geo_tool.py +116 -0
- tooluniverse/gnomad_tool.py +63 -0
- tooluniverse/markitdown_tool.py +159 -0
- tooluniverse/mcp_client_tool.py +10 -5
- tooluniverse/smcp.py +10 -9
- tooluniverse/string_tool.py +112 -0
- tooluniverse/tools/ADMETAnalyzerAgent.py +59 -0
- tooluniverse/tools/ArXiv_search_papers.py +3 -3
- tooluniverse/tools/CMA_Guidelines_Search.py +52 -0
- tooluniverse/tools/CORE_search_papers.py +3 -3
- tooluniverse/tools/ClinVar_search_variants.py +52 -0
- tooluniverse/tools/ClinicalTrialDesignAgent.py +63 -0
- tooluniverse/tools/CompoundDiscoveryAgent.py +59 -0
- tooluniverse/tools/DOAJ_search_articles.py +2 -2
- tooluniverse/tools/DiseaseAnalyzerAgent.py +52 -0
- tooluniverse/tools/DrugInteractionAnalyzerAgent.py +52 -0
- tooluniverse/tools/DrugOptimizationAgent.py +63 -0
- tooluniverse/tools/Ensembl_lookup_gene_by_symbol.py +52 -0
- tooluniverse/tools/EuropePMC_search_articles.py +1 -1
- tooluniverse/tools/GIN_Guidelines_Search.py +52 -0
- tooluniverse/tools/GWAS_search_associations_by_gene.py +52 -0
- tooluniverse/tools/LiteratureSynthesisAgent.py +59 -0
- tooluniverse/tools/PMC_search_papers.py +3 -3
- tooluniverse/tools/PubMed_search_articles.py +2 -2
- tooluniverse/tools/SemanticScholar_search_papers.py +1 -1
- tooluniverse/tools/UCSC_get_genes_by_region.py +67 -0
- tooluniverse/tools/Zenodo_search_records.py +1 -1
- tooluniverse/tools/__init__.py +33 -1
- tooluniverse/tools/convert_to_markdown.py +59 -0
- tooluniverse/tools/dbSNP_get_variant_by_rsid.py +46 -0
- tooluniverse/tools/gnomAD_query_variant.py +52 -0
- tooluniverse/tools/openalex_literature_search.py +4 -4
- tooluniverse/ucsc_tool.py +60 -0
- tooluniverse/unified_guideline_tools.py +1175 -57
- tooluniverse/utils.py +51 -4
- tooluniverse/zenodo_tool.py +2 -1
- {tooluniverse-1.0.7.dist-info → tooluniverse-1.0.8.dist-info}/METADATA +9 -3
- {tooluniverse-1.0.7.dist-info → tooluniverse-1.0.8.dist-info}/RECORD +76 -40
- {tooluniverse-1.0.7.dist-info → tooluniverse-1.0.8.dist-info}/WHEEL +0 -0
- {tooluniverse-1.0.7.dist-info → tooluniverse-1.0.8.dist-info}/entry_points.txt +0 -0
- {tooluniverse-1.0.7.dist-info → tooluniverse-1.0.8.dist-info}/licenses/LICENSE +0 -0
- {tooluniverse-1.0.7.dist-info → tooluniverse-1.0.8.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"""
|
|
2
|
+
DiseaseAnalyzerAgent
|
|
3
|
+
|
|
4
|
+
AI agent that analyzes disease characteristics and identifies potential therapeutic targets using...
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from typing import Any, Optional, Callable
|
|
8
|
+
from ._shared_client import get_shared_client
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def DiseaseAnalyzerAgent(
|
|
12
|
+
disease_name: str,
|
|
13
|
+
context: Optional[str] = "",
|
|
14
|
+
*,
|
|
15
|
+
stream_callback: Optional[Callable[[str], None]] = None,
|
|
16
|
+
use_cache: bool = False,
|
|
17
|
+
validate: bool = True,
|
|
18
|
+
) -> Any:
|
|
19
|
+
"""
|
|
20
|
+
AI agent that analyzes disease characteristics and identifies potential therapeutic targets using...
|
|
21
|
+
|
|
22
|
+
Parameters
|
|
23
|
+
----------
|
|
24
|
+
disease_name : str
|
|
25
|
+
Name of the disease to analyze
|
|
26
|
+
context : str
|
|
27
|
+
Additional context or specific focus areas
|
|
28
|
+
stream_callback : Callable, optional
|
|
29
|
+
Callback for streaming output
|
|
30
|
+
use_cache : bool, default False
|
|
31
|
+
Enable caching
|
|
32
|
+
validate : bool, default True
|
|
33
|
+
Validate parameters
|
|
34
|
+
|
|
35
|
+
Returns
|
|
36
|
+
-------
|
|
37
|
+
Any
|
|
38
|
+
"""
|
|
39
|
+
# Handle mutable defaults to avoid B006 linting error
|
|
40
|
+
|
|
41
|
+
return get_shared_client().run_one_function(
|
|
42
|
+
{
|
|
43
|
+
"name": "DiseaseAnalyzerAgent",
|
|
44
|
+
"arguments": {"disease_name": disease_name, "context": context},
|
|
45
|
+
},
|
|
46
|
+
stream_callback=stream_callback,
|
|
47
|
+
use_cache=use_cache,
|
|
48
|
+
validate=validate,
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
__all__ = ["DiseaseAnalyzerAgent"]
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"""
|
|
2
|
+
DrugInteractionAnalyzerAgent
|
|
3
|
+
|
|
4
|
+
AI agent that analyzes drug-drug interactions and provides clinical recommendations
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from typing import Any, Optional, Callable
|
|
8
|
+
from ._shared_client import get_shared_client
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def DrugInteractionAnalyzerAgent(
|
|
12
|
+
compounds: str,
|
|
13
|
+
patient_context: Optional[str] = "General adult population",
|
|
14
|
+
*,
|
|
15
|
+
stream_callback: Optional[Callable[[str], None]] = None,
|
|
16
|
+
use_cache: bool = False,
|
|
17
|
+
validate: bool = True,
|
|
18
|
+
) -> Any:
|
|
19
|
+
"""
|
|
20
|
+
AI agent that analyzes drug-drug interactions and provides clinical recommendations
|
|
21
|
+
|
|
22
|
+
Parameters
|
|
23
|
+
----------
|
|
24
|
+
compounds : str
|
|
25
|
+
List of compounds to analyze for interactions (comma-separated)
|
|
26
|
+
patient_context : str
|
|
27
|
+
Patient context (age, comorbidities, medications, etc.)
|
|
28
|
+
stream_callback : Callable, optional
|
|
29
|
+
Callback for streaming output
|
|
30
|
+
use_cache : bool, default False
|
|
31
|
+
Enable caching
|
|
32
|
+
validate : bool, default True
|
|
33
|
+
Validate parameters
|
|
34
|
+
|
|
35
|
+
Returns
|
|
36
|
+
-------
|
|
37
|
+
Any
|
|
38
|
+
"""
|
|
39
|
+
# Handle mutable defaults to avoid B006 linting error
|
|
40
|
+
|
|
41
|
+
return get_shared_client().run_one_function(
|
|
42
|
+
{
|
|
43
|
+
"name": "DrugInteractionAnalyzerAgent",
|
|
44
|
+
"arguments": {"compounds": compounds, "patient_context": patient_context},
|
|
45
|
+
},
|
|
46
|
+
stream_callback=stream_callback,
|
|
47
|
+
use_cache=use_cache,
|
|
48
|
+
validate=validate,
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
__all__ = ["DrugInteractionAnalyzerAgent"]
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"""
|
|
2
|
+
DrugOptimizationAgent
|
|
3
|
+
|
|
4
|
+
AI agent that analyzes drug optimization strategies based on ADMET and efficacy data
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from typing import Any, Optional, Callable
|
|
8
|
+
from ._shared_client import get_shared_client
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def DrugOptimizationAgent(
|
|
12
|
+
compounds: str,
|
|
13
|
+
admet_data: Optional[str] = "",
|
|
14
|
+
efficacy_data: Optional[str] = "",
|
|
15
|
+
target_profile: Optional[str] = "",
|
|
16
|
+
*,
|
|
17
|
+
stream_callback: Optional[Callable[[str], None]] = None,
|
|
18
|
+
use_cache: bool = False,
|
|
19
|
+
validate: bool = True,
|
|
20
|
+
) -> Any:
|
|
21
|
+
"""
|
|
22
|
+
AI agent that analyzes drug optimization strategies based on ADMET and efficacy data
|
|
23
|
+
|
|
24
|
+
Parameters
|
|
25
|
+
----------
|
|
26
|
+
compounds : str
|
|
27
|
+
List of compounds to optimize (comma-separated)
|
|
28
|
+
admet_data : str
|
|
29
|
+
ADMET properties and issues
|
|
30
|
+
efficacy_data : str
|
|
31
|
+
Efficacy and potency data
|
|
32
|
+
target_profile : str
|
|
33
|
+
Target profile and requirements
|
|
34
|
+
stream_callback : Callable, optional
|
|
35
|
+
Callback for streaming output
|
|
36
|
+
use_cache : bool, default False
|
|
37
|
+
Enable caching
|
|
38
|
+
validate : bool, default True
|
|
39
|
+
Validate parameters
|
|
40
|
+
|
|
41
|
+
Returns
|
|
42
|
+
-------
|
|
43
|
+
Any
|
|
44
|
+
"""
|
|
45
|
+
# Handle mutable defaults to avoid B006 linting error
|
|
46
|
+
|
|
47
|
+
return get_shared_client().run_one_function(
|
|
48
|
+
{
|
|
49
|
+
"name": "DrugOptimizationAgent",
|
|
50
|
+
"arguments": {
|
|
51
|
+
"compounds": compounds,
|
|
52
|
+
"admet_data": admet_data,
|
|
53
|
+
"efficacy_data": efficacy_data,
|
|
54
|
+
"target_profile": target_profile,
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
stream_callback=stream_callback,
|
|
58
|
+
use_cache=use_cache,
|
|
59
|
+
validate=validate,
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
__all__ = ["DrugOptimizationAgent"]
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Ensembl_lookup_gene_by_symbol
|
|
3
|
+
|
|
4
|
+
Lookup Ensembl gene by species and gene symbol, returning core metadata and coordinates (uses /xr...
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from typing import Any, Optional, Callable
|
|
8
|
+
from ._shared_client import get_shared_client
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def Ensembl_lookup_gene_by_symbol(
|
|
12
|
+
symbol: str,
|
|
13
|
+
species: Optional[str] = "homo_sapiens",
|
|
14
|
+
*,
|
|
15
|
+
stream_callback: Optional[Callable[[str], None]] = None,
|
|
16
|
+
use_cache: bool = False,
|
|
17
|
+
validate: bool = True,
|
|
18
|
+
) -> dict[str, Any]:
|
|
19
|
+
"""
|
|
20
|
+
Lookup Ensembl gene by species and gene symbol, returning core metadata and coordinates (uses /xr...
|
|
21
|
+
|
|
22
|
+
Parameters
|
|
23
|
+
----------
|
|
24
|
+
species : str
|
|
25
|
+
Species name (e.g., 'homo_sapiens').
|
|
26
|
+
symbol : str
|
|
27
|
+
Gene symbol (e.g., BRCA1).
|
|
28
|
+
stream_callback : Callable, optional
|
|
29
|
+
Callback for streaming output
|
|
30
|
+
use_cache : bool, default False
|
|
31
|
+
Enable caching
|
|
32
|
+
validate : bool, default True
|
|
33
|
+
Validate parameters
|
|
34
|
+
|
|
35
|
+
Returns
|
|
36
|
+
-------
|
|
37
|
+
dict[str, Any]
|
|
38
|
+
"""
|
|
39
|
+
# Handle mutable defaults to avoid B006 linting error
|
|
40
|
+
|
|
41
|
+
return get_shared_client().run_one_function(
|
|
42
|
+
{
|
|
43
|
+
"name": "Ensembl_lookup_gene_by_symbol",
|
|
44
|
+
"arguments": {"species": species, "symbol": symbol},
|
|
45
|
+
},
|
|
46
|
+
stream_callback=stream_callback,
|
|
47
|
+
use_cache=use_cache,
|
|
48
|
+
validate=validate,
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
__all__ = ["Ensembl_lookup_gene_by_symbol"]
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"""
|
|
2
|
+
GIN_Guidelines_Search
|
|
3
|
+
|
|
4
|
+
Search Guidelines International Network (GIN) guidelines database. GIN maintains the world's larg...
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from typing import Any, Optional, Callable
|
|
8
|
+
from ._shared_client import get_shared_client
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def GIN_Guidelines_Search(
|
|
12
|
+
query: str,
|
|
13
|
+
limit: int,
|
|
14
|
+
*,
|
|
15
|
+
stream_callback: Optional[Callable[[str], None]] = None,
|
|
16
|
+
use_cache: bool = False,
|
|
17
|
+
validate: bool = True,
|
|
18
|
+
) -> list[Any]:
|
|
19
|
+
"""
|
|
20
|
+
Search Guidelines International Network (GIN) guidelines database. GIN maintains the world's larg...
|
|
21
|
+
|
|
22
|
+
Parameters
|
|
23
|
+
----------
|
|
24
|
+
query : str
|
|
25
|
+
Medical condition, treatment, or clinical topic to search for in GIN guidelin...
|
|
26
|
+
limit : int
|
|
27
|
+
Maximum number of guidelines to return (default: 10)
|
|
28
|
+
stream_callback : Callable, optional
|
|
29
|
+
Callback for streaming output
|
|
30
|
+
use_cache : bool, default False
|
|
31
|
+
Enable caching
|
|
32
|
+
validate : bool, default True
|
|
33
|
+
Validate parameters
|
|
34
|
+
|
|
35
|
+
Returns
|
|
36
|
+
-------
|
|
37
|
+
list[Any]
|
|
38
|
+
"""
|
|
39
|
+
# Handle mutable defaults to avoid B006 linting error
|
|
40
|
+
|
|
41
|
+
return get_shared_client().run_one_function(
|
|
42
|
+
{
|
|
43
|
+
"name": "GIN_Guidelines_Search",
|
|
44
|
+
"arguments": {"query": query, "limit": limit},
|
|
45
|
+
},
|
|
46
|
+
stream_callback=stream_callback,
|
|
47
|
+
use_cache=use_cache,
|
|
48
|
+
validate=validate,
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
__all__ = ["GIN_Guidelines_Search"]
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"""
|
|
2
|
+
GWAS_search_associations_by_gene
|
|
3
|
+
|
|
4
|
+
Search GWAS Catalog associations by gene name (returns strongest risk allele and p-value fields).
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from typing import Any, Optional, Callable
|
|
8
|
+
from ._shared_client import get_shared_client
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def GWAS_search_associations_by_gene(
|
|
12
|
+
gene_name: str,
|
|
13
|
+
size: Optional[int] = 5,
|
|
14
|
+
*,
|
|
15
|
+
stream_callback: Optional[Callable[[str], None]] = None,
|
|
16
|
+
use_cache: bool = False,
|
|
17
|
+
validate: bool = True,
|
|
18
|
+
) -> dict[str, Any]:
|
|
19
|
+
"""
|
|
20
|
+
Search GWAS Catalog associations by gene name (returns strongest risk allele and p-value fields).
|
|
21
|
+
|
|
22
|
+
Parameters
|
|
23
|
+
----------
|
|
24
|
+
gene_name : str
|
|
25
|
+
Gene symbol (e.g., BRCA1).
|
|
26
|
+
size : int
|
|
27
|
+
Max associations to return.
|
|
28
|
+
stream_callback : Callable, optional
|
|
29
|
+
Callback for streaming output
|
|
30
|
+
use_cache : bool, default False
|
|
31
|
+
Enable caching
|
|
32
|
+
validate : bool, default True
|
|
33
|
+
Validate parameters
|
|
34
|
+
|
|
35
|
+
Returns
|
|
36
|
+
-------
|
|
37
|
+
dict[str, Any]
|
|
38
|
+
"""
|
|
39
|
+
# Handle mutable defaults to avoid B006 linting error
|
|
40
|
+
|
|
41
|
+
return get_shared_client().run_one_function(
|
|
42
|
+
{
|
|
43
|
+
"name": "GWAS_search_associations_by_gene",
|
|
44
|
+
"arguments": {"gene_name": gene_name, "size": size},
|
|
45
|
+
},
|
|
46
|
+
stream_callback=stream_callback,
|
|
47
|
+
use_cache=use_cache,
|
|
48
|
+
validate=validate,
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
__all__ = ["GWAS_search_associations_by_gene"]
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"""
|
|
2
|
+
LiteratureSynthesisAgent
|
|
3
|
+
|
|
4
|
+
AI agent that synthesizes literature findings and provides evidence-based insights
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from typing import Any, Optional, Callable
|
|
8
|
+
from ._shared_client import get_shared_client
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def LiteratureSynthesisAgent(
|
|
12
|
+
topic: str,
|
|
13
|
+
literature_data: str,
|
|
14
|
+
focus_area: Optional[str] = "General",
|
|
15
|
+
*,
|
|
16
|
+
stream_callback: Optional[Callable[[str], None]] = None,
|
|
17
|
+
use_cache: bool = False,
|
|
18
|
+
validate: bool = True,
|
|
19
|
+
) -> Any:
|
|
20
|
+
"""
|
|
21
|
+
AI agent that synthesizes literature findings and provides evidence-based insights
|
|
22
|
+
|
|
23
|
+
Parameters
|
|
24
|
+
----------
|
|
25
|
+
topic : str
|
|
26
|
+
Research topic or question
|
|
27
|
+
literature_data : str
|
|
28
|
+
Literature findings or abstracts to synthesize
|
|
29
|
+
focus_area : str
|
|
30
|
+
Specific focus area for synthesis
|
|
31
|
+
stream_callback : Callable, optional
|
|
32
|
+
Callback for streaming output
|
|
33
|
+
use_cache : bool, default False
|
|
34
|
+
Enable caching
|
|
35
|
+
validate : bool, default True
|
|
36
|
+
Validate parameters
|
|
37
|
+
|
|
38
|
+
Returns
|
|
39
|
+
-------
|
|
40
|
+
Any
|
|
41
|
+
"""
|
|
42
|
+
# Handle mutable defaults to avoid B006 linting error
|
|
43
|
+
|
|
44
|
+
return get_shared_client().run_one_function(
|
|
45
|
+
{
|
|
46
|
+
"name": "LiteratureSynthesisAgent",
|
|
47
|
+
"arguments": {
|
|
48
|
+
"topic": topic,
|
|
49
|
+
"literature_data": literature_data,
|
|
50
|
+
"focus_area": focus_area,
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
stream_callback=stream_callback,
|
|
54
|
+
use_cache=use_cache,
|
|
55
|
+
validate=validate,
|
|
56
|
+
)
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
__all__ = ["LiteratureSynthesisAgent"]
|
|
@@ -11,9 +11,9 @@ from ._shared_client import get_shared_client
|
|
|
11
11
|
def PMC_search_papers(
|
|
12
12
|
query: str,
|
|
13
13
|
limit: int,
|
|
14
|
-
date_from: str,
|
|
15
|
-
date_to: str,
|
|
16
|
-
article_type: str,
|
|
14
|
+
date_from: Optional[str] = None,
|
|
15
|
+
date_to: Optional[str] = None,
|
|
16
|
+
article_type: Optional[str] = None,
|
|
17
17
|
*,
|
|
18
18
|
stream_callback: Optional[Callable[[str], None]] = None,
|
|
19
19
|
use_cache: bool = False,
|
|
@@ -10,8 +10,8 @@ from ._shared_client import get_shared_client
|
|
|
10
10
|
|
|
11
11
|
def PubMed_search_articles(
|
|
12
12
|
query: str,
|
|
13
|
-
limit: int,
|
|
14
|
-
api_key: str,
|
|
13
|
+
limit: Optional[int] = 10,
|
|
14
|
+
api_key: Optional[str] = None,
|
|
15
15
|
*,
|
|
16
16
|
stream_callback: Optional[Callable[[str], None]] = None,
|
|
17
17
|
use_cache: bool = False,
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"""
|
|
2
|
+
UCSC_get_genes_by_region
|
|
3
|
+
|
|
4
|
+
Query UCSC Genome Browser track API for knownGene features in a genomic window.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from typing import Any, Optional, Callable
|
|
8
|
+
from ._shared_client import get_shared_client
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def UCSC_get_genes_by_region(
|
|
12
|
+
chrom: str,
|
|
13
|
+
start: int,
|
|
14
|
+
end: int,
|
|
15
|
+
genome: Optional[str] = "hg38",
|
|
16
|
+
track: Optional[str] = "knownGene",
|
|
17
|
+
*,
|
|
18
|
+
stream_callback: Optional[Callable[[str], None]] = None,
|
|
19
|
+
use_cache: bool = False,
|
|
20
|
+
validate: bool = True,
|
|
21
|
+
) -> dict[str, Any]:
|
|
22
|
+
"""
|
|
23
|
+
Query UCSC Genome Browser track API for knownGene features in a genomic window.
|
|
24
|
+
|
|
25
|
+
Parameters
|
|
26
|
+
----------
|
|
27
|
+
genome : str
|
|
28
|
+
Genome assembly (e.g., hg38).
|
|
29
|
+
chrom : str
|
|
30
|
+
Chromosome (e.g., chr17).
|
|
31
|
+
start : int
|
|
32
|
+
Start position (0-based).
|
|
33
|
+
end : int
|
|
34
|
+
End position.
|
|
35
|
+
track : str
|
|
36
|
+
Track name.
|
|
37
|
+
stream_callback : Callable, optional
|
|
38
|
+
Callback for streaming output
|
|
39
|
+
use_cache : bool, default False
|
|
40
|
+
Enable caching
|
|
41
|
+
validate : bool, default True
|
|
42
|
+
Validate parameters
|
|
43
|
+
|
|
44
|
+
Returns
|
|
45
|
+
-------
|
|
46
|
+
dict[str, Any]
|
|
47
|
+
"""
|
|
48
|
+
# Handle mutable defaults to avoid B006 linting error
|
|
49
|
+
|
|
50
|
+
return get_shared_client().run_one_function(
|
|
51
|
+
{
|
|
52
|
+
"name": "UCSC_get_genes_by_region",
|
|
53
|
+
"arguments": {
|
|
54
|
+
"genome": genome,
|
|
55
|
+
"chrom": chrom,
|
|
56
|
+
"start": start,
|
|
57
|
+
"end": end,
|
|
58
|
+
"track": track,
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
stream_callback=stream_callback,
|
|
62
|
+
use_cache=use_cache,
|
|
63
|
+
validate=validate,
|
|
64
|
+
)
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
__all__ = ["UCSC_get_genes_by_region"]
|
|
@@ -11,7 +11,7 @@ from ._shared_client import get_shared_client
|
|
|
11
11
|
def Zenodo_search_records(
|
|
12
12
|
query: str,
|
|
13
13
|
max_results: int,
|
|
14
|
-
community: str,
|
|
14
|
+
community: Optional[str] = None,
|
|
15
15
|
*,
|
|
16
16
|
stream_callback: Optional[Callable[[str], None]] = None,
|
|
17
17
|
use_cache: bool = False,
|
tooluniverse/tools/__init__.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""
|
|
2
2
|
ToolUniverse Tools
|
|
3
3
|
|
|
4
|
-
Type-safe Python interface to
|
|
4
|
+
Type-safe Python interface to 670 scientific tools.
|
|
5
5
|
Each tool is in its own module for minimal import overhead.
|
|
6
6
|
|
|
7
7
|
Usage:
|
|
@@ -32,6 +32,7 @@ from .ADMETAI_predict_solubility_lipophilicity_hydration import (
|
|
|
32
32
|
)
|
|
33
33
|
from .ADMETAI_predict_stress_response import ADMETAI_predict_stress_response
|
|
34
34
|
from .ADMETAI_predict_toxicity import ADMETAI_predict_toxicity
|
|
35
|
+
from .ADMETAnalyzerAgent import ADMETAnalyzerAgent
|
|
35
36
|
from .AdvancedCodeQualityAnalyzer import AdvancedCodeQualityAnalyzer
|
|
36
37
|
from .AdverseEventICDMapper import AdverseEventICDMapper
|
|
37
38
|
from .AdverseEventPredictionQuestionGenerator import (
|
|
@@ -44,11 +45,15 @@ from .ArXiv_search_papers import ArXiv_search_papers
|
|
|
44
45
|
from .ArgumentDescriptionOptimizer import ArgumentDescriptionOptimizer
|
|
45
46
|
from .BioRxiv_search_preprints import BioRxiv_search_preprints
|
|
46
47
|
from .BiomarkerDiscoveryWorkflow import BiomarkerDiscoveryWorkflow
|
|
48
|
+
from .CMA_Guidelines_Search import CMA_Guidelines_Search
|
|
47
49
|
from .CORE_search_papers import CORE_search_papers
|
|
48
50
|
from .CallAgent import CallAgent
|
|
49
51
|
from .ChEMBL_search_similar_molecules import ChEMBL_search_similar_molecules
|
|
52
|
+
from .ClinVar_search_variants import ClinVar_search_variants
|
|
53
|
+
from .ClinicalTrialDesignAgent import ClinicalTrialDesignAgent
|
|
50
54
|
from .CodeOptimizer import CodeOptimizer
|
|
51
55
|
from .CodeQualityAnalyzer import CodeQualityAnalyzer
|
|
56
|
+
from .CompoundDiscoveryAgent import CompoundDiscoveryAgent
|
|
52
57
|
from .ComprehensiveDrugDiscoveryPipeline import ComprehensiveDrugDiscoveryPipeline
|
|
53
58
|
from .Crossref_search_works import Crossref_search_works
|
|
54
59
|
from .DBLP_search_publications import DBLP_search_publications
|
|
@@ -58,8 +63,12 @@ from .DailyMed_search_spls import DailyMed_search_spls
|
|
|
58
63
|
from .DataAnalysisValidityReviewer import DataAnalysisValidityReviewer
|
|
59
64
|
from .DescriptionAnalyzer import DescriptionAnalyzer
|
|
60
65
|
from .DescriptionQualityEvaluator import DescriptionQualityEvaluator
|
|
66
|
+
from .DiseaseAnalyzerAgent import DiseaseAnalyzerAgent
|
|
61
67
|
from .DomainExpertValidator import DomainExpertValidator
|
|
68
|
+
from .DrugInteractionAnalyzerAgent import DrugInteractionAnalyzerAgent
|
|
69
|
+
from .DrugOptimizationAgent import DrugOptimizationAgent
|
|
62
70
|
from .DrugSafetyAnalyzer import DrugSafetyAnalyzer
|
|
71
|
+
from .Ensembl_lookup_gene_by_symbol import Ensembl_lookup_gene_by_symbol
|
|
63
72
|
from .EthicalComplianceReviewer import EthicalComplianceReviewer
|
|
64
73
|
from .EuropePMC_Guidelines_Search import EuropePMC_Guidelines_Search
|
|
65
74
|
from .EuropePMC_search_articles import EuropePMC_search_articles
|
|
@@ -441,11 +450,13 @@ from .FDA_retrieve_patient_medication_info_by_drug_name import (
|
|
|
441
450
|
)
|
|
442
451
|
from .Fatcat_search_scholar import Fatcat_search_scholar
|
|
443
452
|
from .Finish import Finish
|
|
453
|
+
from .GIN_Guidelines_Search import GIN_Guidelines_Search
|
|
444
454
|
from .GO_get_annotations_for_gene import GO_get_annotations_for_gene
|
|
445
455
|
from .GO_get_genes_for_term import GO_get_genes_for_term
|
|
446
456
|
from .GO_get_term_by_id import GO_get_term_by_id
|
|
447
457
|
from .GO_get_term_details import GO_get_term_details
|
|
448
458
|
from .GO_search_terms import GO_search_terms
|
|
459
|
+
from .GWAS_search_associations_by_gene import GWAS_search_associations_by_gene
|
|
449
460
|
from .HAL_search_archive import HAL_search_archive
|
|
450
461
|
from .HPA_get_biological_processes_by_gene import HPA_get_biological_processes_by_gene
|
|
451
462
|
from .HPA_get_cancer_prognostics_by_gene import HPA_get_cancer_prognostics_by_gene
|
|
@@ -474,6 +485,7 @@ from .HypothesisGenerator import HypothesisGenerator
|
|
|
474
485
|
from .LabelGenerator import LabelGenerator
|
|
475
486
|
from .LiteratureContextReviewer import LiteratureContextReviewer
|
|
476
487
|
from .LiteratureSearchTool import LiteratureSearchTool
|
|
488
|
+
from .LiteratureSynthesisAgent import LiteratureSynthesisAgent
|
|
477
489
|
from .MedRxiv_search_preprints import MedRxiv_search_preprints
|
|
478
490
|
from .MedicalLiteratureReviewer import MedicalLiteratureReviewer
|
|
479
491
|
from .MedicalTermNormalizer import MedicalTermNormalizer
|
|
@@ -704,6 +716,7 @@ from .Tool_Finder import Tool_Finder
|
|
|
704
716
|
from .Tool_Finder_Keyword import Tool_Finder_Keyword
|
|
705
717
|
from .Tool_Finder_LLM import Tool_Finder_LLM
|
|
706
718
|
from .Tool_RAG import Tool_RAG
|
|
719
|
+
from .UCSC_get_genes_by_region import UCSC_get_genes_by_region
|
|
707
720
|
from .UniProt_get_alternative_names_by_accession import (
|
|
708
721
|
UniProt_get_alternative_names_by_accession,
|
|
709
722
|
)
|
|
@@ -744,6 +757,8 @@ from .cellosaurus_get_cell_line_info import cellosaurus_get_cell_line_info
|
|
|
744
757
|
from .cellosaurus_query_converter import cellosaurus_query_converter
|
|
745
758
|
from .cellosaurus_search_cell_lines import cellosaurus_search_cell_lines
|
|
746
759
|
from .chembl_disease_target_score import chembl_disease_target_score
|
|
760
|
+
from .convert_to_markdown import convert_to_markdown
|
|
761
|
+
from .dbSNP_get_variant_by_rsid import dbSNP_get_variant_by_rsid
|
|
747
762
|
from .dict_search import dict_search
|
|
748
763
|
from .dili_search import dili_search
|
|
749
764
|
from .diqt_search import diqt_search
|
|
@@ -1046,6 +1061,7 @@ from .get_xarray_info import get_xarray_info
|
|
|
1046
1061
|
from .get_xesmf_info import get_xesmf_info
|
|
1047
1062
|
from .get_xgboost_info import get_xgboost_info
|
|
1048
1063
|
from .get_zarr_info import get_zarr_info
|
|
1064
|
+
from .gnomAD_query_variant import gnomAD_query_variant
|
|
1049
1065
|
from .gwas_get_association_by_id import gwas_get_association_by_id
|
|
1050
1066
|
from .gwas_get_associations_for_snp import gwas_get_associations_for_snp
|
|
1051
1067
|
from .gwas_get_associations_for_study import gwas_get_associations_for_study
|
|
@@ -1090,6 +1106,7 @@ __all__ = [
|
|
|
1090
1106
|
"ADMETAI_predict_solubility_lipophilicity_hydration",
|
|
1091
1107
|
"ADMETAI_predict_stress_response",
|
|
1092
1108
|
"ADMETAI_predict_toxicity",
|
|
1109
|
+
"ADMETAnalyzerAgent",
|
|
1093
1110
|
"AdvancedCodeQualityAnalyzer",
|
|
1094
1111
|
"AdverseEventICDMapper",
|
|
1095
1112
|
"AdverseEventPredictionQuestionGenerator",
|
|
@@ -1098,11 +1115,15 @@ __all__ = [
|
|
|
1098
1115
|
"ArgumentDescriptionOptimizer",
|
|
1099
1116
|
"BioRxiv_search_preprints",
|
|
1100
1117
|
"BiomarkerDiscoveryWorkflow",
|
|
1118
|
+
"CMA_Guidelines_Search",
|
|
1101
1119
|
"CORE_search_papers",
|
|
1102
1120
|
"CallAgent",
|
|
1103
1121
|
"ChEMBL_search_similar_molecules",
|
|
1122
|
+
"ClinVar_search_variants",
|
|
1123
|
+
"ClinicalTrialDesignAgent",
|
|
1104
1124
|
"CodeOptimizer",
|
|
1105
1125
|
"CodeQualityAnalyzer",
|
|
1126
|
+
"CompoundDiscoveryAgent",
|
|
1106
1127
|
"ComprehensiveDrugDiscoveryPipeline",
|
|
1107
1128
|
"Crossref_search_works",
|
|
1108
1129
|
"DBLP_search_publications",
|
|
@@ -1112,8 +1133,12 @@ __all__ = [
|
|
|
1112
1133
|
"DataAnalysisValidityReviewer",
|
|
1113
1134
|
"DescriptionAnalyzer",
|
|
1114
1135
|
"DescriptionQualityEvaluator",
|
|
1136
|
+
"DiseaseAnalyzerAgent",
|
|
1115
1137
|
"DomainExpertValidator",
|
|
1138
|
+
"DrugInteractionAnalyzerAgent",
|
|
1139
|
+
"DrugOptimizationAgent",
|
|
1116
1140
|
"DrugSafetyAnalyzer",
|
|
1141
|
+
"Ensembl_lookup_gene_by_symbol",
|
|
1117
1142
|
"EthicalComplianceReviewer",
|
|
1118
1143
|
"EuropePMC_Guidelines_Search",
|
|
1119
1144
|
"EuropePMC_search_articles",
|
|
@@ -1291,11 +1316,13 @@ __all__ = [
|
|
|
1291
1316
|
"FDA_retrieve_patient_medication_info_by_drug_name",
|
|
1292
1317
|
"Fatcat_search_scholar",
|
|
1293
1318
|
"Finish",
|
|
1319
|
+
"GIN_Guidelines_Search",
|
|
1294
1320
|
"GO_get_annotations_for_gene",
|
|
1295
1321
|
"GO_get_genes_for_term",
|
|
1296
1322
|
"GO_get_term_by_id",
|
|
1297
1323
|
"GO_get_term_details",
|
|
1298
1324
|
"GO_search_terms",
|
|
1325
|
+
"GWAS_search_associations_by_gene",
|
|
1299
1326
|
"HAL_search_archive",
|
|
1300
1327
|
"HPA_get_biological_processes_by_gene",
|
|
1301
1328
|
"HPA_get_cancer_prognostics_by_gene",
|
|
@@ -1314,6 +1341,7 @@ __all__ = [
|
|
|
1314
1341
|
"LabelGenerator",
|
|
1315
1342
|
"LiteratureContextReviewer",
|
|
1316
1343
|
"LiteratureSearchTool",
|
|
1344
|
+
"LiteratureSynthesisAgent",
|
|
1317
1345
|
"MedRxiv_search_preprints",
|
|
1318
1346
|
"MedicalLiteratureReviewer",
|
|
1319
1347
|
"MedicalTermNormalizer",
|
|
@@ -1430,6 +1458,7 @@ __all__ = [
|
|
|
1430
1458
|
"Tool_Finder_Keyword",
|
|
1431
1459
|
"Tool_Finder_LLM",
|
|
1432
1460
|
"Tool_RAG",
|
|
1461
|
+
"UCSC_get_genes_by_region",
|
|
1433
1462
|
"UniProt_get_alternative_names_by_accession",
|
|
1434
1463
|
"UniProt_get_disease_variants_by_accession",
|
|
1435
1464
|
"UniProt_get_entry_by_accession",
|
|
@@ -1456,6 +1485,8 @@ __all__ = [
|
|
|
1456
1485
|
"cellosaurus_query_converter",
|
|
1457
1486
|
"cellosaurus_search_cell_lines",
|
|
1458
1487
|
"chembl_disease_target_score",
|
|
1488
|
+
"convert_to_markdown",
|
|
1489
|
+
"dbSNP_get_variant_by_rsid",
|
|
1459
1490
|
"dict_search",
|
|
1460
1491
|
"dili_search",
|
|
1461
1492
|
"diqt_search",
|
|
@@ -1708,6 +1739,7 @@ __all__ = [
|
|
|
1708
1739
|
"get_xesmf_info",
|
|
1709
1740
|
"get_xgboost_info",
|
|
1710
1741
|
"get_zarr_info",
|
|
1742
|
+
"gnomAD_query_variant",
|
|
1711
1743
|
"gwas_get_association_by_id",
|
|
1712
1744
|
"gwas_get_associations_for_snp",
|
|
1713
1745
|
"gwas_get_associations_for_study",
|