Skip to content
Back to skills

Bulkrna Ppi Network

ASecurity

Load when querying STRING for the protein-protein interaction subgraph induced by a bulk

  • 8 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 6, 2026
datapythongobashnodeexpressapidatabase

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned September 6, 2026

npx -y skills add lilinji/GeneTind-Life-Skills --skill bulkrna-ppi-network --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Bulkrna Ppi Network?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Bulkrna Ppi Network
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/lilinji-bulkrna-ppi-network/badge)](https://www.skillsdirectory.com/skills/lilinji-bulkrna-ppi-network)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
# AUTO-GENERATED header from skill.yaml β€” do not edit by hand.
# Edit skill.yaml, then run: python scripts/generate_skill_md.py <skill_dir>
name: bulkrna-ppi-network
description: Load when querying STRING for the protein-protein interaction subgraph induced by a bulk
  RNA-seq DEG list and finding hub genes. Skip when pathway enrichment of the same list (use bulkrna-enrichment);
  de novo co-expression network discovery (use bulkrna-coexpression).
version: 0.3.0
author: OmicsClaw
license: MIT
emoji: πŸ•ΈοΈ
tags:
- bulkrna
- PPI
- STRING
- network
- hub-genes
- protein-interaction
requires:
- matplotlib
- numpy
- pandas
- requests
---

# bulkrna-ppi-network

## When to use

Run after `bulkrna-de` to ask "what does the STRING PPI subgraph
induced by my DEG list look like, and which proteins are central?".
Queries the public STRING API (no installation needed), constructs the
induced subgraph, and ranks hub proteins by degree centrality.

## Inputs & Outputs

<!-- AUTO-GENERATED from skill.yaml (interface) β€” do not edit by hand. Regenerate: python scripts/generate_skill_md.py <skill_dir> -->

**Inputs**

- File types: `.csv`, `.txt`

**Outputs**

- `tables/hub_genes.csv`
- `tables/interaction_edges.csv`
- `tables/node_centrality.csv`
- `figures/hub_genes_barplot.png`
- `figures/ppi_network.png`
- `report.md`
- `result.json`

## Flow

1. Parse gene list from `--input` (treats first column as gene names).
2. Query STRING API with `species` + `score_threshold`.
3. On API failure, fall back silently to built-in demo edges (`bulkrna_ppi_network.py:118` warns "STRING API failed (...) β€” using built-in demo edges").
4. Build NetworkX graph; compute degree centrality.
5. Report top-N hubs; render network + degree-distribution figures.

## Gotchas

- **STRING-API-failure fallback is to DEMO edges, not a smaller real query.**  `bulkrna_ppi_network.py:118` catches any API exception and substitutes the built-in toy network.  This means a transient network outage produces output that looks normal but is unrelated to the user's gene list.  The summary dict does not record which edge source ran β€” grep the run's stderr for "STRING API failed" to detect a silent fallback before reporting downstream conclusions.
- **`--score-threshold` is on STRING's 0–1000 scale, not 0–1.**  Default `400` is STRING's "medium" confidence band; `700` is "high"; `900` is "highest".  Passing `0.4` (a float) is silently coerced to `0` and pulls every edge in the database.
- **`--species` is the NCBI taxon ID** (default `9606` human, `10090` mouse).  Passing the string `"human"` or `"mouse"` raises a type error from `int(args.species)`.  STRING also requires the species to be in its supported list β€” exotic taxa fail at the API layer.
- **Gene-name namespace must match STRING's expectations.**  STRING uses HGNC symbols for human, MGI symbols for mouse.  Feeding Ensembl IDs gives ~zero hits and a near-empty network β€” pre-run `bulkrna-geneid-mapping` to convert.

## Key CLI

```bash
python omicsclaw.py run bulkrna-ppi-network --demo
python omicsclaw.py run bulkrna-ppi-network \
  --input de_significant.csv --output results/
python omicsclaw.py run bulkrna-ppi-network \
  --input de_significant.csv --output results/ \
  --species 10090 --score-threshold 700 --top-n 30
```

## See also

- `references/parameters.md` β€” every CLI flag and tuning hint
- `references/methodology.md` β€” STRING query format, hub-gene definition (degree centrality)
- `references/output_contract.md` β€” exact output directory layout
- Adjacent skills: `bulkrna-de` (upstream β€” DEG source), `bulkrna-enrichment` (parallel: pathway view of the same list), `bulkrna-coexpression` (parallel: de novo co-expression network from the count matrix), `bulkrna-geneid-mapping` (run upstream to convert IDs to HGNC/MGI)

Files in this skill

  • SKILL.md3.7 KB
  • bulkrna_ppi_network.py17.4 KB
  • references/methodology.md2 KB
  • references/output_contract.md1.3 KB
  • references/parameters.md298 B
  • skill.yaml1.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…