tooluniverse 1.0.11.1__py3-none-any.whl → 1.0.12__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.

Files changed (65) hide show
  1. tooluniverse/alphafold_tool.py +47 -7
  2. tooluniverse/base_tool.py +9 -1
  3. tooluniverse/build_optimizer.py +115 -22
  4. tooluniverse/data/alphafold_tools.json +7 -12
  5. tooluniverse/data/encode_tools.json +139 -0
  6. tooluniverse/data/gbif_tools.json +152 -0
  7. tooluniverse/data/gdc_tools.json +116 -0
  8. tooluniverse/data/gtex_tools.json +116 -0
  9. tooluniverse/data/icgc_tools.json +0 -0
  10. tooluniverse/data/mgnify_tools.json +121 -0
  11. tooluniverse/data/obis_tools.json +122 -0
  12. tooluniverse/data/optimizer_tools.json +275 -0
  13. tooluniverse/data/rnacentral_tools.json +99 -0
  14. tooluniverse/data/smolagent_tools.json +206 -0
  15. tooluniverse/data/uniprot_tools.json +13 -5
  16. tooluniverse/data/wikipathways_tools.json +106 -0
  17. tooluniverse/default_config.py +12 -0
  18. tooluniverse/encode_tool.py +245 -0
  19. tooluniverse/execute_function.py +185 -17
  20. tooluniverse/gbif_tool.py +166 -0
  21. tooluniverse/gdc_tool.py +175 -0
  22. tooluniverse/generate_tools.py +121 -9
  23. tooluniverse/gtex_tool.py +168 -0
  24. tooluniverse/mgnify_tool.py +181 -0
  25. tooluniverse/obis_tool.py +185 -0
  26. tooluniverse/pypi_package_inspector_tool.py +3 -2
  27. tooluniverse/python_executor_tool.py +43 -13
  28. tooluniverse/rnacentral_tool.py +124 -0
  29. tooluniverse/smcp.py +17 -25
  30. tooluniverse/smcp_server.py +1 -1
  31. tooluniverse/smolagent_tool.py +555 -0
  32. tooluniverse/tools/ArgumentDescriptionOptimizer.py +55 -0
  33. tooluniverse/tools/ENCODE_list_files.py +59 -0
  34. tooluniverse/tools/ENCODE_search_experiments.py +67 -0
  35. tooluniverse/tools/GBIF_search_occurrences.py +67 -0
  36. tooluniverse/tools/GBIF_search_species.py +55 -0
  37. tooluniverse/tools/GDC_list_files.py +55 -0
  38. tooluniverse/tools/GDC_search_cases.py +55 -0
  39. tooluniverse/tools/GTEx_get_expression_summary.py +49 -0
  40. tooluniverse/tools/GTEx_query_eqtl.py +59 -0
  41. tooluniverse/tools/MGnify_list_analyses.py +52 -0
  42. tooluniverse/tools/MGnify_search_studies.py +55 -0
  43. tooluniverse/tools/OBIS_search_occurrences.py +59 -0
  44. tooluniverse/tools/OBIS_search_taxa.py +52 -0
  45. tooluniverse/tools/RNAcentral_get_by_accession.py +46 -0
  46. tooluniverse/tools/RNAcentral_search.py +52 -0
  47. tooluniverse/tools/TestCaseGenerator.py +46 -0
  48. tooluniverse/tools/ToolDescriptionOptimizer.py +67 -0
  49. tooluniverse/tools/ToolDiscover.py +4 -0
  50. tooluniverse/tools/UniProt_search.py +14 -6
  51. tooluniverse/tools/WikiPathways_get_pathway.py +52 -0
  52. tooluniverse/tools/WikiPathways_search.py +52 -0
  53. tooluniverse/tools/__init__.py +43 -1
  54. tooluniverse/tools/advanced_literature_search_agent.py +46 -0
  55. tooluniverse/tools/alphafold_get_annotations.py +4 -10
  56. tooluniverse/tools/download_binary_file.py +3 -6
  57. tooluniverse/tools/open_deep_research_agent.py +46 -0
  58. tooluniverse/uniprot_tool.py +51 -4
  59. tooluniverse/wikipathways_tool.py +122 -0
  60. {tooluniverse-1.0.11.1.dist-info → tooluniverse-1.0.12.dist-info}/METADATA +3 -1
  61. {tooluniverse-1.0.11.1.dist-info → tooluniverse-1.0.12.dist-info}/RECORD +65 -24
  62. {tooluniverse-1.0.11.1.dist-info → tooluniverse-1.0.12.dist-info}/WHEEL +0 -0
  63. {tooluniverse-1.0.11.1.dist-info → tooluniverse-1.0.12.dist-info}/entry_points.txt +0 -0
  64. {tooluniverse-1.0.11.1.dist-info → tooluniverse-1.0.12.dist-info}/licenses/LICENSE +0 -0
  65. {tooluniverse-1.0.11.1.dist-info → tooluniverse-1.0.12.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,67 @@
1
+ """
2
+ ENCODE_search_experiments
3
+
4
+ Search ENCODE functional genomics experiments (e.g., ChIP-seq, ATAC-seq) by assay/target/organism...
5
+ """
6
+
7
+ from typing import Any, Optional, Callable
8
+ from ._shared_client import get_shared_client
9
+
10
+
11
+ def ENCODE_search_experiments(
12
+ assay_title: Optional[str] = None,
13
+ target: Optional[str] = None,
14
+ organism: Optional[str] = None,
15
+ status: Optional[str] = "released",
16
+ limit: Optional[int] = 10,
17
+ *,
18
+ stream_callback: Optional[Callable[[str], None]] = None,
19
+ use_cache: bool = False,
20
+ validate: bool = True,
21
+ ) -> dict[str, Any]:
22
+ """
23
+ Search ENCODE functional genomics experiments (e.g., ChIP-seq, ATAC-seq) by assay/target/organism...
24
+
25
+ Parameters
26
+ ----------
27
+ assay_title : str
28
+ Assay name filter (e.g., 'ChIP-seq', 'ATAC-seq').
29
+ target : str
30
+ Target filter (e.g., 'CTCF').
31
+ organism : str
32
+ Organism filter (e.g., 'Homo sapiens', 'Mus musculus').
33
+ status : str
34
+ Record status filter (default 'released').
35
+ limit : int
36
+ Max number of results (1–100).
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": "ENCODE_search_experiments",
53
+ "arguments": {
54
+ "assay_title": assay_title,
55
+ "target": target,
56
+ "organism": organism,
57
+ "status": status,
58
+ "limit": limit,
59
+ },
60
+ },
61
+ stream_callback=stream_callback,
62
+ use_cache=use_cache,
63
+ validate=validate,
64
+ )
65
+
66
+
67
+ __all__ = ["ENCODE_search_experiments"]
@@ -0,0 +1,67 @@
1
+ """
2
+ GBIF_search_occurrences
3
+
4
+ Retrieve species occurrence records from GBIF with optional filters (taxonKey, country, coordinat...
5
+ """
6
+
7
+ from typing import Any, Optional, Callable
8
+ from ._shared_client import get_shared_client
9
+
10
+
11
+ def GBIF_search_occurrences(
12
+ taxonKey: Optional[int] = None,
13
+ country: Optional[str] = None,
14
+ hasCoordinate: Optional[bool] = True,
15
+ limit: Optional[int] = 10,
16
+ offset: Optional[int] = 0,
17
+ *,
18
+ stream_callback: Optional[Callable[[str], None]] = None,
19
+ use_cache: bool = False,
20
+ validate: bool = True,
21
+ ) -> dict[str, Any]:
22
+ """
23
+ Retrieve species occurrence records from GBIF with optional filters (taxonKey, country, coordinat...
24
+
25
+ Parameters
26
+ ----------
27
+ taxonKey : int
28
+ GBIF taxon key to filter occurrences by a specific taxon (from species search).
29
+ country : str
30
+ ISO 3166-1 alpha-2 country code filter (e.g., 'US', 'CN').
31
+ hasCoordinate : bool
32
+ Only return records with valid latitude/longitude coordinates when true.
33
+ limit : int
34
+ Maximum number of results to return (1–300).
35
+ offset : int
36
+ Result offset for pagination (0-based).
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": "GBIF_search_occurrences",
53
+ "arguments": {
54
+ "taxonKey": taxonKey,
55
+ "country": country,
56
+ "hasCoordinate": hasCoordinate,
57
+ "limit": limit,
58
+ "offset": offset,
59
+ },
60
+ },
61
+ stream_callback=stream_callback,
62
+ use_cache=use_cache,
63
+ validate=validate,
64
+ )
65
+
66
+
67
+ __all__ = ["GBIF_search_occurrences"]
@@ -0,0 +1,55 @@
1
+ """
2
+ GBIF_search_species
3
+
4
+ Find taxa by keyword (scientific/common names) in GBIF. Use to resolve organism names to stable t...
5
+ """
6
+
7
+ from typing import Any, Optional, Callable
8
+ from ._shared_client import get_shared_client
9
+
10
+
11
+ def GBIF_search_species(
12
+ query: str,
13
+ limit: Optional[int] = 10,
14
+ offset: Optional[int] = 0,
15
+ *,
16
+ stream_callback: Optional[Callable[[str], None]] = None,
17
+ use_cache: bool = False,
18
+ validate: bool = True,
19
+ ) -> dict[str, Any]:
20
+ """
21
+ Find taxa by keyword (scientific/common names) in GBIF. Use to resolve organism names to stable t...
22
+
23
+ Parameters
24
+ ----------
25
+ query : str
26
+ Search string for species/taxa (supports scientific/common names), e.g., 'Hom...
27
+ limit : int
28
+ Maximum number of results to return (1–300).
29
+ offset : int
30
+ Result offset for pagination (0-based).
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
+ dict[str, Any]
41
+ """
42
+ # Handle mutable defaults to avoid B006 linting error
43
+
44
+ return get_shared_client().run_one_function(
45
+ {
46
+ "name": "GBIF_search_species",
47
+ "arguments": {"query": query, "limit": limit, "offset": offset},
48
+ },
49
+ stream_callback=stream_callback,
50
+ use_cache=use_cache,
51
+ validate=validate,
52
+ )
53
+
54
+
55
+ __all__ = ["GBIF_search_species"]
@@ -0,0 +1,55 @@
1
+ """
2
+ GDC_list_files
3
+
4
+ List GDC files filtered by data_type and other fields. Use to identify downloadable artifacts (e....
5
+ """
6
+
7
+ from typing import Any, Optional, Callable
8
+ from ._shared_client import get_shared_client
9
+
10
+
11
+ def GDC_list_files(
12
+ data_type: Optional[str] = None,
13
+ size: Optional[int] = 10,
14
+ offset: Optional[int] = 0,
15
+ *,
16
+ stream_callback: Optional[Callable[[str], None]] = None,
17
+ use_cache: bool = False,
18
+ validate: bool = True,
19
+ ) -> dict[str, Any]:
20
+ """
21
+ List GDC files filtered by data_type and other fields. Use to identify downloadable artifacts (e....
22
+
23
+ Parameters
24
+ ----------
25
+ data_type : str
26
+ Data type filter (e.g., 'Gene Expression Quantification').
27
+ size : int
28
+ Number of results (1–100).
29
+ offset : int
30
+ Offset for pagination (0-based).
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
+ dict[str, Any]
41
+ """
42
+ # Handle mutable defaults to avoid B006 linting error
43
+
44
+ return get_shared_client().run_one_function(
45
+ {
46
+ "name": "GDC_list_files",
47
+ "arguments": {"data_type": data_type, "size": size, "offset": offset},
48
+ },
49
+ stream_callback=stream_callback,
50
+ use_cache=use_cache,
51
+ validate=validate,
52
+ )
53
+
54
+
55
+ __all__ = ["GDC_list_files"]
@@ -0,0 +1,55 @@
1
+ """
2
+ GDC_search_cases
3
+
4
+ Search cancer cohort cases in NCI GDC by project and filters. Use to retrieve case-level metadata...
5
+ """
6
+
7
+ from typing import Any, Optional, Callable
8
+ from ._shared_client import get_shared_client
9
+
10
+
11
+ def GDC_search_cases(
12
+ project_id: Optional[str] = None,
13
+ size: Optional[int] = 10,
14
+ offset: Optional[int] = 0,
15
+ *,
16
+ stream_callback: Optional[Callable[[str], None]] = None,
17
+ use_cache: bool = False,
18
+ validate: bool = True,
19
+ ) -> dict[str, Any]:
20
+ """
21
+ Search cancer cohort cases in NCI GDC by project and filters. Use to retrieve case-level metadata...
22
+
23
+ Parameters
24
+ ----------
25
+ project_id : str
26
+ GDC project identifier (e.g., 'TCGA-BRCA').
27
+ size : int
28
+ Number of results (1–100).
29
+ offset : int
30
+ Offset for pagination (0-based).
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
+ dict[str, Any]
41
+ """
42
+ # Handle mutable defaults to avoid B006 linting error
43
+
44
+ return get_shared_client().run_one_function(
45
+ {
46
+ "name": "GDC_search_cases",
47
+ "arguments": {"project_id": project_id, "size": size, "offset": offset},
48
+ },
49
+ stream_callback=stream_callback,
50
+ use_cache=use_cache,
51
+ validate=validate,
52
+ )
53
+
54
+
55
+ __all__ = ["GDC_search_cases"]
@@ -0,0 +1,49 @@
1
+ """
2
+ GTEx_get_expression_summary
3
+
4
+ Summarize tissue-specific expression (e.g., median TPM) for a gene across GTEx tissues. Use to pr...
5
+ """
6
+
7
+ from typing import Any, Optional, Callable
8
+ from ._shared_client import get_shared_client
9
+
10
+
11
+ def GTEx_get_expression_summary(
12
+ ensembl_gene_id: str,
13
+ *,
14
+ stream_callback: Optional[Callable[[str], None]] = None,
15
+ use_cache: bool = False,
16
+ validate: bool = True,
17
+ ) -> dict[str, Any]:
18
+ """
19
+ Summarize tissue-specific expression (e.g., median TPM) for a gene across GTEx tissues. Use to pr...
20
+
21
+ Parameters
22
+ ----------
23
+ ensembl_gene_id : str
24
+ Ensembl gene identifier (e.g., 'ENSG00000141510' for TP53).
25
+ stream_callback : Callable, optional
26
+ Callback for streaming output
27
+ use_cache : bool, default False
28
+ Enable caching
29
+ validate : bool, default True
30
+ Validate parameters
31
+
32
+ Returns
33
+ -------
34
+ dict[str, Any]
35
+ """
36
+ # Handle mutable defaults to avoid B006 linting error
37
+
38
+ return get_shared_client().run_one_function(
39
+ {
40
+ "name": "GTEx_get_expression_summary",
41
+ "arguments": {"ensembl_gene_id": ensembl_gene_id},
42
+ },
43
+ stream_callback=stream_callback,
44
+ use_cache=use_cache,
45
+ validate=validate,
46
+ )
47
+
48
+
49
+ __all__ = ["GTEx_get_expression_summary"]
@@ -0,0 +1,59 @@
1
+ """
2
+ GTEx_query_eqtl
3
+
4
+ Query GTEx single-tissue eQTL associations for a gene. Use to identify regulatory variants (varia...
5
+ """
6
+
7
+ from typing import Any, Optional, Callable
8
+ from ._shared_client import get_shared_client
9
+
10
+
11
+ def GTEx_query_eqtl(
12
+ ensembl_gene_id: str,
13
+ page: Optional[int] = 1,
14
+ size: Optional[int] = 10,
15
+ *,
16
+ stream_callback: Optional[Callable[[str], None]] = None,
17
+ use_cache: bool = False,
18
+ validate: bool = True,
19
+ ) -> dict[str, Any]:
20
+ """
21
+ Query GTEx single-tissue eQTL associations for a gene. Use to identify regulatory variants (varia...
22
+
23
+ Parameters
24
+ ----------
25
+ ensembl_gene_id : str
26
+ Ensembl gene identifier (e.g., 'ENSG00000141510').
27
+ page : int
28
+ Page number (1-based).
29
+ size : int
30
+ Number of records per page (1–100).
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
+ dict[str, Any]
41
+ """
42
+ # Handle mutable defaults to avoid B006 linting error
43
+
44
+ return get_shared_client().run_one_function(
45
+ {
46
+ "name": "GTEx_query_eqtl",
47
+ "arguments": {
48
+ "ensembl_gene_id": ensembl_gene_id,
49
+ "page": page,
50
+ "size": size,
51
+ },
52
+ },
53
+ stream_callback=stream_callback,
54
+ use_cache=use_cache,
55
+ validate=validate,
56
+ )
57
+
58
+
59
+ __all__ = ["GTEx_query_eqtl"]
@@ -0,0 +1,52 @@
1
+ """
2
+ MGnify_list_analyses
3
+
4
+ List analyses associated with a study accession (taxonomic/functional outputs). Use to enumerate ...
5
+ """
6
+
7
+ from typing import Any, Optional, Callable
8
+ from ._shared_client import get_shared_client
9
+
10
+
11
+ def MGnify_list_analyses(
12
+ study_accession: str,
13
+ size: Optional[int] = 10,
14
+ *,
15
+ stream_callback: Optional[Callable[[str], None]] = None,
16
+ use_cache: bool = False,
17
+ validate: bool = True,
18
+ ) -> dict[str, Any]:
19
+ """
20
+ List analyses associated with a study accession (taxonomic/functional outputs). Use to enumerate ...
21
+
22
+ Parameters
23
+ ----------
24
+ study_accession : str
25
+ MGnify study accession (e.g., 'MGYS00000001').
26
+ size : int
27
+ Number of records per page (1–100).
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": "MGnify_list_analyses",
44
+ "arguments": {"study_accession": study_accession, "size": size},
45
+ },
46
+ stream_callback=stream_callback,
47
+ use_cache=use_cache,
48
+ validate=validate,
49
+ )
50
+
51
+
52
+ __all__ = ["MGnify_list_analyses"]
@@ -0,0 +1,55 @@
1
+ """
2
+ MGnify_search_studies
3
+
4
+ Search MGnify metagenomics/microbiome studies by biome/keyword. Use to discover study accessions ...
5
+ """
6
+
7
+ from typing import Any, Optional, Callable
8
+ from ._shared_client import get_shared_client
9
+
10
+
11
+ def MGnify_search_studies(
12
+ biome: Optional[str] = None,
13
+ search: Optional[str] = None,
14
+ size: Optional[int] = 10,
15
+ *,
16
+ stream_callback: Optional[Callable[[str], None]] = None,
17
+ use_cache: bool = False,
18
+ validate: bool = True,
19
+ ) -> dict[str, Any]:
20
+ """
21
+ Search MGnify metagenomics/microbiome studies by biome/keyword. Use to discover study accessions ...
22
+
23
+ Parameters
24
+ ----------
25
+ biome : str
26
+ Biome identifier (e.g., 'root:Host-associated').
27
+ search : str
28
+ Keyword to search in study titles/descriptions.
29
+ size : int
30
+ Number of records per page (1–100).
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
+ dict[str, Any]
41
+ """
42
+ # Handle mutable defaults to avoid B006 linting error
43
+
44
+ return get_shared_client().run_one_function(
45
+ {
46
+ "name": "MGnify_search_studies",
47
+ "arguments": {"biome": biome, "search": search, "size": size},
48
+ },
49
+ stream_callback=stream_callback,
50
+ use_cache=use_cache,
51
+ validate=validate,
52
+ )
53
+
54
+
55
+ __all__ = ["MGnify_search_studies"]
@@ -0,0 +1,59 @@
1
+ """
2
+ OBIS_search_occurrences
3
+
4
+ Retrieve marine species occurrence records (with coordinates/time) from OBIS using flexible filte...
5
+ """
6
+
7
+ from typing import Any, Optional, Callable
8
+ from ._shared_client import get_shared_client
9
+
10
+
11
+ def OBIS_search_occurrences(
12
+ scientificname: Optional[str] = None,
13
+ areaid: Optional[str] = None,
14
+ size: Optional[int] = 10,
15
+ *,
16
+ stream_callback: Optional[Callable[[str], None]] = None,
17
+ use_cache: bool = False,
18
+ validate: bool = True,
19
+ ) -> dict[str, Any]:
20
+ """
21
+ Retrieve marine species occurrence records (with coordinates/time) from OBIS using flexible filte...
22
+
23
+ Parameters
24
+ ----------
25
+ scientificname : str
26
+ Scientific name filter to restrict occurrences.
27
+ areaid : str
28
+ Area identifier filter (per OBIS API).
29
+ size : int
30
+ Number of records to return (1–100).
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
+ dict[str, Any]
41
+ """
42
+ # Handle mutable defaults to avoid B006 linting error
43
+
44
+ return get_shared_client().run_one_function(
45
+ {
46
+ "name": "OBIS_search_occurrences",
47
+ "arguments": {
48
+ "scientificname": scientificname,
49
+ "areaid": areaid,
50
+ "size": size,
51
+ },
52
+ },
53
+ stream_callback=stream_callback,
54
+ use_cache=use_cache,
55
+ validate=validate,
56
+ )
57
+
58
+
59
+ __all__ = ["OBIS_search_occurrences"]
@@ -0,0 +1,52 @@
1
+ """
2
+ OBIS_search_taxa
3
+
4
+ Resolve marine taxa in OBIS by scientific name to obtain standardized identifiers (AphiaID), rank...
5
+ """
6
+
7
+ from typing import Any, Optional, Callable
8
+ from ._shared_client import get_shared_client
9
+
10
+
11
+ def OBIS_search_taxa(
12
+ scientificname: str,
13
+ size: Optional[int] = 10,
14
+ *,
15
+ stream_callback: Optional[Callable[[str], None]] = None,
16
+ use_cache: bool = False,
17
+ validate: bool = True,
18
+ ) -> dict[str, Any]:
19
+ """
20
+ Resolve marine taxa in OBIS by scientific name to obtain standardized identifiers (AphiaID), rank...
21
+
22
+ Parameters
23
+ ----------
24
+ scientificname : str
25
+ Scientific name query (e.g., 'Gadus').
26
+ size : int
27
+ Number of records to return (1–100).
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": "OBIS_search_taxa",
44
+ "arguments": {"scientificname": scientificname, "size": size},
45
+ },
46
+ stream_callback=stream_callback,
47
+ use_cache=use_cache,
48
+ validate=validate,
49
+ )
50
+
51
+
52
+ __all__ = ["OBIS_search_taxa"]
@@ -0,0 +1,46 @@
1
+ """
2
+ RNAcentral_get_by_accession
3
+
4
+ Retrieve a single RNAcentral entry by accession for detailed annotations and source cross-referen...
5
+ """
6
+
7
+ from typing import Any, Optional, Callable
8
+ from ._shared_client import get_shared_client
9
+
10
+
11
+ def RNAcentral_get_by_accession(
12
+ accession: str,
13
+ *,
14
+ stream_callback: Optional[Callable[[str], None]] = None,
15
+ use_cache: bool = False,
16
+ validate: bool = True,
17
+ ) -> dict[str, Any]:
18
+ """
19
+ Retrieve a single RNAcentral entry by accession for detailed annotations and source cross-referen...
20
+
21
+ Parameters
22
+ ----------
23
+ accession : str
24
+ RNAcentral accession (e.g., 'URS000075C808').
25
+ stream_callback : Callable, optional
26
+ Callback for streaming output
27
+ use_cache : bool, default False
28
+ Enable caching
29
+ validate : bool, default True
30
+ Validate parameters
31
+
32
+ Returns
33
+ -------
34
+ dict[str, Any]
35
+ """
36
+ # Handle mutable defaults to avoid B006 linting error
37
+
38
+ return get_shared_client().run_one_function(
39
+ {"name": "RNAcentral_get_by_accession", "arguments": {"accession": accession}},
40
+ stream_callback=stream_callback,
41
+ use_cache=use_cache,
42
+ validate=validate,
43
+ )
44
+
45
+
46
+ __all__ = ["RNAcentral_get_by_accession"]