arboreto
Qué hace
Esta herramienta ayuda a descubrir qué genes podrían controlar la expresión de otros genes, a partir de datos de expresión génica. Genera una lista ordenada de posibles conexiones entre genes.
Cuándo usarla
- ✓Cuando tienes datos de expresión génica y quieres saber qué genes podrían regular a otros.
- ✓Para identificar posibles redes reguladoras de genes en muestras biológicas.
- ✓Cuando comparas distintos métodos de análisis de redes génicas.
Link de la skill
https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/arboreto/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Descubre posibles conexiones entre genes a partir de mis datos de expresión.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La herramienta analiza tus datos de expresión génica y usa algoritmos (como GRNBoost2 o GENIE3) para predecir qué genes (reguladores) podrían influir en la expresión de otros genes (dianas). Devuelve una lista ordenada de estas posibles influencias.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Arboreto
When to use
Use Arboreto to rank candidate regulator-target associations from expression measurements. GRNBoost2 fits stochastic gradient boosting regressions; GENIE3 fits random forests. Each target is predicted from candidate regulators, excluding itself. These are observational predictive associations, not proof of direct binding, activation/repression, or causal regulation.
The latest PyPI release checked is 0.1.6 (2021-02-09). Read the Docs still labels its documentation 0.1.5; the current GitHub source contains fixes that are not in the PyPI wheel. Do not assume a successful unpinned installation can run inference. See compatibility and distribution details.
Installation and compatibility
The following exact stack passed dense and CSC-sparse GRNBoost2, dense GENIE3, custom GBM/RF, and wrapper smoke tests on macOS arm64 with Python 3.11.11:
uv venv --python 3.11 .venv-arboreto
uv pip install --python .venv-arboreto/bin/python \
'arboreto==0.1.6' 'dask[complete]==2024.7.1' 'distributed==2024.7.1' \
'numpy==1.26.4' 'pandas==2.2.3' 'scikit-learn==1.5.2' 'scipy==1.13.1'
This is a bounded compatibility recipe, not a claim that current releases of all
dependencies work. PyPI Arboreto builds an empty metadata graph that the newer
Dask dataframe implementation rejects. For this pinned Dask version, select its
legacy dataframe backend before importing Arboreto or dask.dataframe:
import dask
dask.config.set({"dataframe.query-planning": False})
from arboreto.algo import grnboost2, genie3
The bundled wrapper does this for Dask 2024.7.1. Restart an existing notebook
kernel if it has already imported the newer dataframe backend. Sparse targets
also use .A inside Arboreto 0.1.6; this attribute was removed in SciPy 1.14.
Keep the tested SciPy pin for sparse inference. No monkeypatch to site-packages
is required by this recipe.
Workflow
- Select biologically comparable cells/samples; document normalization, filtering, batch handling, organism, identifier namespace, and expression layer.
- Prepare rows = observations, columns = genes. Exclude sample IDs from expression values. Require unique gene names, numeric finite values, and a TF list with a nonempty overlap. All-zero/constant genes provide no useful targets.
- Choose GRNBoost2 for an efficient starting analysis, GENIE3 for method comparison,
or
diyfor explicit regressor settings. See algorithms. - Run a small subset first in the pinned environment, then scale worker counts to
available memory. Keep the
if __name__ == "__main__":guard in process-based scripts. - Inspect worker warnings and target coverage, save the full ranked network, and assess stability across seeds and resampled observations before prioritizing edges.
Run the bundled wrapper
From this skill directory, with a TSV containing gene headers and numeric rows:
.venv-arboreto/bin/python scripts/basic_grn_inference.py expression_data.tsv network.tsv \
--tf-file tfs.txt --seed 777 --workers 2 --limit 5000
Add --index-col 0 only if the first column contains cell/sample identifiers.
The wrapper rejects duplicate headers before pandas can rename them, nonnumeric
or nonfinite values, empty TF overlap, invalid limits, and wholly empty results.
It reports TF overlap and uses a fresh bounded Dask client that closes on error.
The default is one worker; increase it after a successful pilot. Without a TF
file, all genes are candidate regulators, even though the output column is
named TF.
Output is a headerless TSV in TF, target, importance order. For downstream
consumers that require column headers (including pySCENIC adjacency loading),
write a separate copy with header=True rather than assuming every tool accepts
the headerless upstream example format.
Minimal Python example
This synthetic example checks execution and output structure; it is not a biological benchmark. The same calls were tested with a 32-observation, four-gene fixture.
import dask
dask.config.set({"dataframe.query-planning": False})
import numpy as np
import pandas as pd
from arboreto.algo import grnboost2
from distributed import Client, LocalCluster
if __name__ == "__main__":
rng = np.random.default_rng(123)
values = rng.normal(size=(32, 4))
values[:, 2] = 3 * values[:, 0] + rng.normal(scale=0.1, size=32)
…
Preguntas frecuentes
¿Qué son los 'reguladores' y las 'dianas'?
Los reguladores son genes que pueden controlar la expresión de otros genes. Las dianas son los genes cuya expresión está controlada.
¿La lista generada demuestra que un gen controla a otro?
No. La lista muestra asociaciones predictivas basadas en los datos. Sugiere posibles conexiones, pero no demuestra causalidad ni unión directa.
¿Cuál es la diferencia entre GRNBoost2 y GENIE3?
Son dos algoritmos distintos que puede usar la herramienta. GRNBoost2 usa 'gradient boosting' y GENIE3 usa 'random forests'. Pueden producir resultados algo distintos y sirven para comparar.
Detalles
Descripción original del autor
Infers candidate gene regulatory networks from bulk or single-cell expression data using AertsLab Arboreto GRNBoost2 and GENIE3. Use for transcription factor-target association ranking, compatible Dask execution, sparse expression inputs, and network stability checks.
Popularidad
- Estrellas en GitHub
- 51 mil
- Posición en el ranking
- #3426
- Licencia
- MIT
- Actualizada
- 15/10/2026
Comentarios
- …
Más skills de este repositorio
13c-metabolic-flux
51 milEstima flujos metabólicos a partir de datos de trazado con isótopos de carbono-13. Es útil para analizar el metabolismo celular y las rutas bioquímicas.
adaptyv
51 milDiseña experimentos de caracterización de proteínas con la API de Adaptyv. Ayuda a estimar costos, enviar secuencias y seguir los resultados del laboratorio.
aeon
51 milRealiza tareas de aprendizaje automático con datos de series temporales. Es útil para clasificar, predecir, detectar anomalías y encontrar patrones en datos secuenciales.
alphagenome
51 milConsulta efectos genómicos precalculados de variantes genéticas. Ofrece puntuaciones y explicaciones para entender el impacto de las variantes en el genoma.
Skills parecidas
pytorch-patterns
280 milAyuda a tu agente a usar PyTorch para modelos de machine learning. Aplica buenas prácticas para entrenar modelos de forma eficiente y obtener resultados reproducibles.
evm-token-decimals
280 milAyuda a tu agente a evitar errores con números decimales en distintas redes blockchain. Asegura que los valores de los tokens sean exactos en transacciones y cálculos.
ito-inference
280 milPermite a tu agente comprobar la disponibilidad de modelos de IA. Conecta la solicitud de cómputo con el servicio de modelo listo.