跳到正文
cccskills
免费在 GitHub 公开

lncrna-regulatory-network-construction-analysis

Builds an lncRNA–mRNA network by looking up shared miRNA evidence in local ceRNA reference tables for supplied gene or lncRNA lists. It produces network and evidence tables, summary statistics, and a PDF plot; it does not infer links from expression data.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

Use this bioinformatics data analysis skill to construct a database-driven lncRNA-mRNA regulatory network from target lncRNA and/or gene lists by projecting shared miRNA evidence from local ceRNA reference tables. It does not infer networks from expression matrices.

实测评分 未实测

查看安装方法

适用场景

  • Exploring lncRNAs linked to a candidate gene list
  • Finding mRNAs associated with candidate lncRNAs
  • Reviewing the evidence chains behind network edges
  • Redrawing a saved network as a PDF

包含的文件(24)

  • SKILL.md10.4 KB
  • eval_report_lncrna-regulatory-network-construction-analysis_result.json12.8 KB
  • references/algorithm.md2.1 KB
  • references/cli-guide.md4.6 KB
  • references/database/miRDB_miRNA_mRNA.csv48.0 MB
  • references/database/miRNA_mRNA.csv578.9 KB
  • references/database/miRTarbase_miRNA_mRNA.csv11.2 MB
  • references/database/starbase_miRNA_lncRNA_High.csv101.7 KB
  • references/database/starbase_miRNA_lncRNA_Low.csv325.5 KB
  • references/database/starbase_miRNA_lncRNA_Median.csv163.4 KB
  • references/database/starbase_miRNA_mRNA.csv12.1 MB
  • references/troubleshooting.md2.3 KB
  • scripts/cli_options.R4.7 KB
  • scripts/functions.R3.1 KB
  • scripts/io.R2.5 KB
  • scripts/main.R3.9 KB
  • scripts/plot_helpers.R265 B
  • scripts/recording.R2.9 KB
  • scripts/run_analysis.R2.7 KB
  • scripts/utils.R4.1 KB
  • scripts/visualization.R1.3 KB
  • tests/data/target_genes.txt15 B
  • tests/data/target_lncrna.txt23 B
  • tests/run_tests.R3.7 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Source: https://github.com/aipoch/medical-research-skills

lncRNA Regulatory Network Construction Analysis

When to Use

Use this skill when the user wants a local-database network lookup workflow rather than expression-based inference.

Typical use cases:

  • Build an lncRNA-mRNA network from target genes and the bundled ceRNA reference tables
  • Start from a candidate lncRNA list and retrieve linked mRNAs through shared miRNAs
  • Generate an auditable lncRNA-mRNA network table plus a tripartite evidence table
  • Reuse a saved database-derived network object to regenerate a PDF plot

Do not use this skill when the user asks for:

  • Expression-matrix-based network inference
  • Correlation analysis between lncRNAs and mRNAs
  • Causal inference or regulatory-strength estimation from expression data
  • Online database querying or remote API lookups

Execution Model

This is a hybrid skill.

  1. Read SKILL.md to confirm that the request is database-driven.
  2. Use scripts/main.R for actual execution.
  3. Use --mode analyze to build tables and a saved .rda object.
  4. Use --mode visualize to reuse the saved object and redraw the PDF without rebuilding the database tables.
  5. Use --mode full to run both steps in one pass.
  6. Read reference files only when more detail is needed.
  7. Before --mode visualize, confirm that output_dir/data/lncrna_network.rda already exists.
  8. In visualize mode, the saved .rda object is the required input; a missing or invalid reference_dir does not block plot reuse.
  9. After execution, report the mode, output directory, key files, and either the retained network size or the surfaced skill error code.

When to Read External Files

SituationFile to ReadPurpose
Need algorithm detailsreferences/algorithm.mdUnderstand the shared-miRNA projection logic
Need troubleshooting helpreferences/troubleshooting.mdReview error codes and fixes
Need CLI examples or the baseline recordreferences/cli-guide.mdReview installation, examples, and the recorded run
Need runnable demo inputstests/data/Use the bundled target gene and lncRNA lists
Need actual executionscripts/main.RRun the CLI workflow

Out-of-Scope Response Pattern

If the request is expression-based rather than database-driven, do not run this skill. Respond briefly with:

This skill only projects lncRNA-mRNA links from local ceRNA reference tables using target gene and/or lncRNA lists. It does not infer networks from expression matrices or estimate causal regulatory strength. Use a different workflow for expression-based correlation or causal inference.

If the request is ambiguous between database-driven lookup and expression-based inference, ask one short clarifying question before running any command.

Agent Response Contract

For a successful run, report:

  • The selected mode and why it fits the request
  • The output_dir
  • The key output files that were generated or reused
  • The retained network size from table/network_stats.txt when available
  • A short reminder that the result is database-driven rather than expression-inferred

For a failed run, report:

  • The surfaced SKILL_* error code
  • The most likely cause based on references/troubleshooting.md
  • The shortest actionable next step for rerunning the workflow

Usage

Rscript scripts/main.R \
  --mode full \
  --target_genes ./target_genes.txt \
  --target_lncrna ./target_lncrna.txt \
  --mirna_dataset combined \
  --lncrna_strictness High \
  --min_shared_mirna 1 \
  --reference_dir ./references/database \
  --output_dir ./output \
  --seed 42

Arguments

LongTypeDefaultDescription
--modecharacterfullRun mode: analyze, visualize, or full
--target_genescharacteremptyTarget gene list file or comma-separated gene list
--target_lncrnacharacteremptyTarget lncRNA list file or comma-separated lncRNA list
--mirna_datasetcharactercombinedmiRNA-mRNA dataset: combined, starbase, mirdb, mirtarbase, starbase+mirdb, starbase+mirtarbase, or mirdb+mirtarbase
--lncrna_strictnesscharacterHighmiRNA-lncRNA strictness: Low, Median, or High
--lncrna_freq_threshinteger0Minimum lncRNA degree threshold after edge aggregation
--min_shared_mirnainteger1Minimum shared miRNA count for keeping an lncRNA-mRNA edge
--reference_dircharacterreferences/databaseLocal directory containing the bundled ceRNA reference tables; required for analyze and full
--output_dircharactertests/outputOutput directory inside the skill root
--plot_filecharacterlncrna_mrna_network.pdfPDF file name under plot/
--plot_titlecharacterlncRNA-mRNA Regulatory NetworkPlot title
--layout_typecharacterkkPlot layout: kk, fr, circle, or nicely
--widthdouble14Plot width in inches
--heightdouble9Plot height in inches
--node_size_basedouble6Base node size
--node_size_scaledouble1.5Node size increment per degree
--lncrna_colorcharacter#1f77b4lncRNA node color
--mrna_colorcharacter#d62728mRNA node color
--seedinteger42Random seed
--timeout_secondsinteger0Optional timeout in seconds; 0 disables it

Input Format

Target Gene List

  • Plain-text file or comma-separated list
  • One gene symbol per line when using a file

Example:

TP53
BRCA1
MYC

Target lncRNA List

  • Plain-text file or comma-separated list
  • One lncRNA symbol per line when using a file

Example:

XIST
SNHG16
HNRNPU-AS1

At least one of --target_genes or --target_lncrna must be provided.

Output Files

FileDescription
table/lncrna_mrna_edges.csvProjected lncRNA-mRNA network with shared-miRNA counts and labels
table/lncrna_mirna_mrna_evidence.csvTripartite evidence table with one lncRNA-miRNA-mRNA row per evidence chain
table/lncrna_mrna_nodes.csvNode table with node type and degree
table/network_stats.txtNetwork summary statistics
data/lncrna_network.rdaSerialized R object used by visualization mode
plot/lncrna_mrna_network.pdfProjected lncRNA-mRNA network PDF
session_info.txtR session and package version record
output_manifest.txtAppend-only manifest of generated outputs
run_record.txtAppend-only run history with parameters, runtime, and output summary

Error Handling

Error CodeMeaningSolution
SKILL_FILE_NOT_FOUNDA required list file, reference file, or saved result object is missingCheck the path and rerun
SKILL_MISSING_COLUMNSA required database column is absentValidate the reference table format
SKILL_EMPTY_DATANo target IDs, evidence rows, or final edges remainedBroaden the target list or relax filtering
SKILL_INVALID_PARAMETERA CLI argument is missing, invalid, or unsafeRecheck the parameter table
SKILL_SAMPLE_MISMATCHReserved for workflows expecting matched entitiesNot expected in the database-only workflow
SKILL_PACKAGE_NOT_FOUNDRequired R packages are missingInstall the packages from references/cli-guide.md

Progressive Disclosure

  1. Start with --target_genes or --target_lncrna.
  2. Add the second target list if a more focused subnetwork is needed.
  3. Switch --mirna_dataset if a different miRNA-mRNA evidence source is required.
  4. Adjust --lncrna_strictness, --lncrna_freq_thresh, and --min_shared_mirna to tighten or relax the projected network.
  5. Reuse --mode visualize once the .rda object exists.

Result Size Guidance

  • Broad gene-only or lncRNA-only runs can expand quickly and may retain hundreds to thousands of edges.
  • If the retained network is too large for practical review, report the edge and node totals, then increase --min_shared_mirna, increase --lncrna_freq_thresh, or provide the complementary target list.
  • Start with the bundled demo inputs before moving to broader target lists.

Examples

Gene-Driven Network

Rscript scripts/main.R \
  --mode full \
  --target_genes ./target_genes.txt \
  --reference_dir ./references/database \
  --output_dir ./output

lncRNA-Driven Network

Rscript scripts/main.R \
  --mode analyze \
  --target_lncrna ./target_lncrna.txt \
  --mirna_dataset starbase \
  --lncrna_strictness Median \
  --output_dir ./lncrna_only_output

Focused Bipartite Network

Rscript scripts/main.R \
  --mode full \
  --target_genes TP53,BRCA1,MYC \
  --target_lncrna XIST,SNHG16,HNRNPU-AS1 \
  --mirna_dataset combined \
  --lncrna_strictness High \
  --min_shared_mirna 2 \
  --output_dir ./focused_output

Visualization Reuse

Rscript scripts/main.R \
  --mode visualize \
  --output_dir ./focused_output \
  --plot_file reused_network.pdf \
  --layout_type fr

For the bundled baseline and CLI notes, read references/cli-guide.md.

Testing

Rscript scripts/main.R --help

Rscript tests/run_tests.R

Rscript scripts/main.R \
  --mode full \
  --target_genes tests/data/target_genes.txt \
  --target_lncrna tests/data/target_lncrna.txt \
  --reference_dir references/database \
  --output_dir tests/output \
  --seed 42

Expected retained outputs after a validated run:

  • tests/output/table/lncrna_mrna_edges.csv
  • tests/output/table/lncrna_mirna_mrna_evidence.csv
  • tests/output/table/lncrna_mrna_nodes.csv
  • tests/output/table/network_stats.txt
  • tests/output/data/lncrna_network.rda
  • tests/output/plot/lncrna_mrna_network.pdf
  • tests/output/session_info.txt
  • tests/output/output_manifest.txt
  • tests/output/run_record.txt

Scope Limits

This skill does not infer networks from expression matrices and does not perform online queries.

If the user needs expression-based correlation or causal inference, use a different workflow.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Condense an academic paper into a structured abstract of up to 250 words, organized by background, objective, methods, results, and conclusion. It aims to retain key quantitative findings and supports papers from several research fields; figures and charts are not interpreted.

中文简介正在准备中。当前显示英语简介。

  • Creating a concise abstract from a research paper
  • Summarizing empirical studies while retaining key statistics
  • Preparing structured summaries across multiple papers
aipoch/medical-research-skills19802026年9月17日 更新

Trim English academic abstracts to a target word count while preserving key findings, statistics, and the background-to-conclusion structure. Choose conservative, balanced, or aggressive compression, check word counts, and review the edited text for readability and accuracy.

中文简介正在准备中。当前显示英语简介。

  • Cutting an abstract to meet a journal word limit
  • Preparing a conference abstract with a strict word count
  • Checking an abstract's word count before submission
aipoch/medical-research-skills19802026年9月17日 更新

Refines long medical drafts, reports, or literature notes into formal, single-paragraph Chinese and English abstracts in an SCI journal style. It can place both abstracts in a Markdown report while keeping claims grounded in the source text.

中文简介正在准备中。当前显示英语简介。

  • Condensing a medical study report into bilingual abstracts
  • Preparing unstructured abstracts from literature notes
  • Creating a Markdown report with Chinese and English abstracts
aipoch/medical-research-skills19802026年9月17日 更新

Creates three to five concise English Highlights for journal submission from manuscript text or supported files. It adapts bullets to the article type, keeps each within 85 characters, and grounds every claim in the supplied source without inventing results.

中文简介正在准备中。当前显示英语简介。

  • Draft journal Highlights from an abstract or manuscript
  • Summarize a meta-analysis or review for submission
  • Extract key findings from a supported PDF or DOCX
aipoch/medical-research-skills19802026年9月17日 更新

Design comparative drug safety studies using FAERS, the FDA’s adverse event reporting database, within one defined safety area. The plan compares drugs or classes, lays out workload options and analysis steps, and distinguishes detected signals from conclusions the data cannot support.

中文简介正在准备中。当前显示英语简介。

  • Comparing drug classes within one adverse event area
  • Planning a FAERS study with active comparators
  • Adding declared subgroup or onset characterization
aipoch/medical-research-skills19802026年9月17日 更新

Predicts absorption, distribution, metabolism, and excretion properties for small molecules from their structures. Use the results to compare compounds, screen libraries, and review drug-likeness scores in structured outputs. Predictions support prioritization and need experimental validation.

中文简介正在准备中。当前显示英语简介。

  • Compare predicted ADME profiles for small-molecule candidates
  • Screen a compound library for drug-likeness
  • Rank candidates against target property ranges
aipoch/medical-research-skills19802026年9月17日 更新

查看 aipoch 的全部技能

报告此技能的问题