sciskillhub/sciskill / community/infercnvpy-skill
infercnvpy-skill
VerifiedscRNA-seq CNV analysis with infercnvpy. Infer copy number variation (CNV) from scRNA-seq data. Plays nicely with Scanpy and AnnData.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 8.6 KB |
| references/annotation_heuristics.md | markdown | 2.0 KB |
| references/feature_definitions.md | markdown | 1.1 KB |
| references/genomic_positions.md | markdown | 2.0 KB |
| scripts/check_preflight.py | script | 9.6 KB |
| scripts/run_infercnvpy.py | script | 18.9 KB |
references/feature_definitions.md
View on GitHub# Feature Definitions
## `cnv_score_cell`
Per-cell CNV score:
`mean(abs(X_cnv_i))`
Interpretation:
- high values mean strong overall CNV deviation
- useful for first-pass abnormality screening
## `cnv_normal_distance`
Distance from the normal-baseline centroid.
Procedure:
1. compute a baseline centroid from normal reference cells in `X_cnv`
2. compute similarity of each cell to the centroid
3. convert similarity into a distance-like score
Interpretation:
- high values mean the cell profile does not look like normal baseline cells
- complements the per-cell CNV score
## `cnv_segment_score`
Automatic proxy for “broad, contiguous CNV blocks” seen in chromosome heatmaps.
Procedure:
1. z-score each CNV bin using the baseline normal cells
2. mark bins where `abs(z) >= z_threshold`
3. keep only same-sign runs of length `>= min_run`
4. compute the fraction of bins belonging to valid runs
Interpretation:
- low score: fragmented or noise-like deviation
- high score: segment-like CNV structure
This is the most important feature for replacing manual heatmap inspection in automated pipelines.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |