Langsung ke konten
Skillpedia
Machine learning51k · #3426

arboreto

Fungsinya

Alat ini membantu menemukan gen mana yang mungkin mengendalikan ekspresi gen lain, berdasarkan data ekspresi gen. Alat ini membuat daftar peringkat tentang kemungkinan hubungan antargen.

Kapan dipakai

  • ✓Saat Anda memiliki data ekspresi gen dan ingin tahu gen mana yang mungkin meregulasi gen lain.
  • ✓Untuk mengidentifikasi kemungkinan jaringan regulasi gen dalam sampel biologis.
  • ✓Saat membandingkan berbagai metode analisis jaringan gen.

Link skill

https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/arboreto/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/arboreto/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit →

Contoh permintaan ke AI

“Temukan kemungkinan hubungan antargen dari data ekspresi saya.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Alat ini menganalisis data ekspresi gen Anda dan menggunakan algoritma (seperti GRNBoost2 atau GENIE3) untuk memprediksi gen mana (regulator) yang mungkin memengaruhi ekspresi gen lain (target). Hasilnya berupa daftar peringkat dari pengaruh-pengaruh tersebut.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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

  1. Select biologically comparable cells/samples; document normalization, filtering, batch handling, organism, identifier namespace, and expression layer.
  2. 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.
  3. Choose GRNBoost2 for an efficient starting analysis, GENIE3 for method comparison, or diy for explicit regressor settings. See algorithms.
  4. 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.
  5. 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)

…
Pertanyaan umum

Apa itu 'regulator' dan 'target'?

Regulator adalah gen yang dapat mengontrol ekspresi gen lain. Target adalah gen yang ekspresinya dikendalikan oleh regulator.

Apakah daftar yang dihasilkan membuktikan bahwa satu gen mengendalikan gen lain?

Tidak. Daftar ini menunjukkan asosiasi prediktif berdasarkan data. Daftar ini menyarankan kemungkinan hubungan, tetapi tidak membuktikan kausalitas atau pengikatan langsung.

Apa perbedaan GRNBoost2 dan GENIE3?

Keduanya adalah dua algoritma berbeda yang bisa digunakan alat ini. GRNBoost2 menggunakan 'gradient boosting' dan GENIE3 menggunakan 'random forests'. Keduanya mungkin menghasilkan hasil yang sedikit berbeda, sehingga berguna untuk dibandingkan.

Detail

Deskripsi asli dari pembuat

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.

repo: K-Dense-AI/scientific-agent-skills

Popularitas

Bintang GitHub
51k
Peringkat
#3426
Lisensi
MIT
Diperbarui
15/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa