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.
73
91%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Use this skill when the user wants a local-database network lookup workflow rather than expression-based inference.
Typical use cases:
Do not use this skill when the user asks for:
This is a hybrid skill.
SKILL.md to confirm that the request is database-driven.scripts/main.R for actual execution.--mode analyze to build tables and a saved .rda object.--mode visualize to reuse the saved object and redraw the PDF without rebuilding the database tables.--mode full to run both steps in one pass.--mode visualize, confirm that output_dir/data/lncrna_network.rda already exists.visualize mode, the saved .rda object is the required input; a missing or invalid reference_dir does not block plot reuse.| Situation | File to Read | Purpose |
|---|---|---|
| Need algorithm details | references/algorithm.md | Understand the shared-miRNA projection logic |
| Need troubleshooting help | references/troubleshooting.md | Review error codes and fixes |
| Need CLI examples or the baseline record | references/cli-guide.md | Review installation, examples, and the recorded run |
| Need runnable demo inputs | tests/data/ | Use the bundled target gene and lncRNA lists |
| Need actual execution | scripts/main.R | Run the CLI workflow |
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.
For a successful run, report:
output_dirtable/network_stats.txt when availableFor a failed run, report:
SKILL_* error codereferences/troubleshooting.mdRscript 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| Long | Type | Default | Description |
|---|---|---|---|
--mode | character | full | Run mode: analyze, visualize, or full |
--target_genes | character | empty | Target gene list file or comma-separated gene list |
--target_lncrna | character | empty | Target lncRNA list file or comma-separated lncRNA list |
--mirna_dataset | character | combined | miRNA-mRNA dataset: combined, starbase, mirdb, mirtarbase, starbase+mirdb, starbase+mirtarbase, or mirdb+mirtarbase |
--lncrna_strictness | character | High | miRNA-lncRNA strictness: Low, Median, or High |
--lncrna_freq_thresh | integer | 0 | Minimum lncRNA degree threshold after edge aggregation |
--min_shared_mirna | integer | 1 | Minimum shared miRNA count for keeping an lncRNA-mRNA edge |
--reference_dir | character | references/database | Local directory containing the bundled ceRNA reference tables; required for analyze and full |
--output_dir | character | tests/output | Output directory inside the skill root |
--plot_file | character | lncrna_mrna_network.pdf | PDF file name under plot/ |
--plot_title | character | lncRNA-mRNA Regulatory Network | Plot title |
--layout_type | character | kk | Plot layout: kk, fr, circle, or nicely |
--width | double | 14 | Plot width in inches |
--height | double | 9 | Plot height in inches |
--node_size_base | double | 6 | Base node size |
--node_size_scale | double | 1.5 | Node size increment per degree |
--lncrna_color | character | #1f77b4 | lncRNA node color |
--mrna_color | character | #d62728 | mRNA node color |
--seed | integer | 42 | Random seed |
--timeout_seconds | integer | 0 | Optional timeout in seconds; 0 disables it |
Example:
TP53
BRCA1
MYCExample:
XIST
SNHG16
HNRNPU-AS1At least one of --target_genes or --target_lncrna must be provided.
| File | Description |
|---|---|
table/lncrna_mrna_edges.csv | Projected lncRNA-mRNA network with shared-miRNA counts and labels |
table/lncrna_mirna_mrna_evidence.csv | Tripartite evidence table with one lncRNA-miRNA-mRNA row per evidence chain |
table/lncrna_mrna_nodes.csv | Node table with node type and degree |
table/network_stats.txt | Network summary statistics |
data/lncrna_network.rda | Serialized R object used by visualization mode |
plot/lncrna_mrna_network.pdf | Projected lncRNA-mRNA network PDF |
session_info.txt | R session and package version record |
output_manifest.txt | Append-only manifest of generated outputs |
run_record.txt | Append-only run history with parameters, runtime, and output summary |
| Error Code | Meaning | Solution |
|---|---|---|
SKILL_FILE_NOT_FOUND | A required list file, reference file, or saved result object is missing | Check the path and rerun |
SKILL_MISSING_COLUMNS | A required database column is absent | Validate the reference table format |
SKILL_EMPTY_DATA | No target IDs, evidence rows, or final edges remained | Broaden the target list or relax filtering |
SKILL_INVALID_PARAMETER | A CLI argument is missing, invalid, or unsafe | Recheck the parameter table |
SKILL_SAMPLE_MISMATCH | Reserved for workflows expecting matched entities | Not expected in the database-only workflow |
SKILL_PACKAGE_NOT_FOUND | Required R packages are missing | Install the packages from references/cli-guide.md |
--target_genes or --target_lncrna.--mirna_dataset if a different miRNA-mRNA evidence source is required.--lncrna_strictness, --lncrna_freq_thresh, and --min_shared_mirna to tighten or relax the projected network.--mode visualize once the .rda object exists.--min_shared_mirna, increase --lncrna_freq_thresh, or provide the complementary target list.Rscript scripts/main.R \
--mode full \
--target_genes ./target_genes.txt \
--reference_dir ./references/database \
--output_dir ./outputRscript scripts/main.R \
--mode analyze \
--target_lncrna ./target_lncrna.txt \
--mirna_dataset starbase \
--lncrna_strictness Median \
--output_dir ./lncrna_only_outputRscript 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_outputRscript scripts/main.R \
--mode visualize \
--output_dir ./focused_output \
--plot_file reused_network.pdf \
--layout_type frFor the bundled baseline and CLI notes, read references/cli-guide.md.
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 42Expected retained outputs after a validated run:
tests/output/table/lncrna_mrna_edges.csvtests/output/table/lncrna_mirna_mrna_evidence.csvtests/output/table/lncrna_mrna_nodes.csvtests/output/table/network_stats.txttests/output/data/lncrna_network.rdatests/output/plot/lncrna_mrna_network.pdftests/output/session_info.txttests/output/output_manifest.txttests/output/run_record.txtThis 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.
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.