Chuyển đến nội dung
Skillpedia
Học máy51k · #3426

arboreto

Skill này làm gì

Công cụ này giúp tìm ra những gen nào có thể kiểm soát biểu hiện của các gen khác, dựa trên dữ liệu biểu hiện gen. Kết quả là một danh sách xếp hạng các mối liên kết gen tiềm năng.

Khi nào nên dùng

  • ✓Khi bạn có dữ liệu biểu hiện gen và muốn biết gen nào có thể điều hòa gen khác.
  • ✓Khi bạn muốn xác định các mạng lưới điều hòa gen tiềm năng trong mẫu sinh học.
  • ✓Khi bạn so sánh các phương pháp phân tích mạng lưới gen khác nhau.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/arboreto/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tìm các mối liên kết gen tiềm năng từ dữ liệu biểu hiện gen của tôi.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Công cụ phân tích dữ liệu biểu hiện gen của bạn và dùng các thuật toán (như GRNBoost2 hoặc GENIE3) để dự đoán gen nào (gen điều hòa) có thể ảnh hưởng đến biểu hiện của các gen khác (gen đích). Kết quả là một danh sách xếp hạng các ảnh hưởng này.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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)

…
Câu hỏi thường gặp

“Gen điều hòa” và “gen đích” là gì?

Gen điều hòa là gen có thể kiểm soát biểu hiện của gen khác. Gen đích là gen bị kiểm soát.

Danh sách này có chứng minh gen này điều khiển gen kia không?

Không. Danh sách chỉ cho thấy các liên kết dự đoán dựa trên dữ liệu. Nó gợi ý các mối liên kết tiềm năng nhưng không chứng minh quan hệ nhân quả hay sự gắn kết trực tiếp.

GRNBoost2 và GENIE3 khác nhau thế nào?

Đây là hai thuật toán khác nhau mà công cụ có thể dùng. GRNBoost2 dùng “gradient boosting” còn GENIE3 dùng “random forests”. Kết quả của chúng có thể hơi khác nhau nên rất hữu ích để so sánh.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
51k
Vị trí xếp hạng
#3426
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự