Skip to content

Feat/sdk modulector - #104

Merged
Genarito merged 4 commits into
devfrom
feat/sdk-modulector
Sep 25, 2026
Merged

Genarito merged 4 commits into
devfrom
feat/sdk-modulector

Conversation

@TheSinnerAR

Copy link
Copy Markdown
Collaborator

No description provided.

Replaced direct Modulector HTTP calls with modulector-sdk wrappers in `MRNAService` and updated all related consumers (`api_service`, `biomarkers`, `molecules_details`, and assistant tools). Added dedicated SDK-backed methods for miRNA/methylation lookup, interactions, diseases, drugs, and code/site search, plus paginated response normalization and safer fallbacks. Also introduced `MODULECTOR_BASE_URL` settings, added `modulector-sdk` dependency, updated MCP server command args for BioMCP, and fixed a null-response edge case in biomarker gene lookup.
Enable a dedicated `modulector` MCP server in `mcp_servers.json` and remove the in-process miRNA helper tools from `tools.py` (search/details/targets/diseases/drugs), along with their registration. This centralizes miRNA and related biological lookups through the external Modulector MCP integration instead of local assistant wrappers.
Comment thread src/biomarkers/views.py Outdated
@@ -168,6 +168,8 @@ def find_genes_from_request(request: Request) -> List[Dict]:
"""
genes_found = global_mrna_service.get_bioapi_service_content('gene-symbols-finder',

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reemplazar por la SDK

Comment thread src/api_service/mrna_service.py Resolved
Comment thread src/api_service/mrna_service.py Resolved
Comment thread src/api_service/mrna_service.py Resolved
Comment thread src/multiomics_intermediate/settings.py Resolved

@Genarito Genarito left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolver comentarios

Replace custom BioAPI request logic with bioapi-sdk wrappers across services and views to simplify interactions and maintain consistency. Deprecate internal BioAPI request helpers and remove their usage across the codebase. Update requirements.txt to include bioapi-sdk as a dependency.
Replace custom BioAPI request logic with bioapi-sdk wrappers across services and views to simplify interactions and maintain consistency. Deprecate internal BioAPI request helpers and remove their usage across the codebase. Update requirements.txt to include bioapi-sdk as a dependency.
},
is_paginated=False,
method='post'
# TODO: use gene_ids=gene_ids, filter_type=filter_type, ontology_type=ontology_types,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolver TODO! Quedó todo hardcodeado. Verificar que no esté pasando en otro lado

@Genarito
Genarito merged commit 59b167a into dev Sep 25, 2026
1 check passed
@Genarito
Genarito deleted the feat/sdk-modulector branch September 25, 2026 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants