cnv-inference

Infer CNV scores and clone labels from spatial transcriptomics AnnData objects.

3|Updated Apr 3, 2026
One-click install
npx skills add https://github.com/chenyhvvvv/STAT-agent --skill cnv-inference
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cnv-inference
Source: https://github.com/chenyhvvvv/STAT-agent/tree/main/stat_agent/skills/cnv-infercnvpy
Command: npx skills add https://github.com/chenyhvvvv/STAT-agent --skill cnv-inference

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

CNV inference from gene expression data enables identification of tumor subclones and genomic alterations in cancer spatial transcriptomics.

Core Features & Use Cases

  • Infer CNV scores from expression data to identify CNV-based clones.
  • Output CNV score matrix (X_cnv) and CNV-based clone labels (cnv_leiden) for downstream analysis.
  • Works with single-slice datasets and uses normal/reference cell types to anchor CNV detection.

Quick Start

Run the CNV inference workflow on your AnnData slice to generate CNV scores and clone labels.

Frequently Asked Questions about cnv-inference

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I infer CNVs from spatial transcriptomics data to detect tumor clones?

To infer CNVs from spatial transcriptomics data, you can run a workflow that generates a CNV score matrix and assigns CNV-based clone labels using a prepared AnnData object with annotated cell types and genomic positions.

What is needed to detect CNVs in an AnnData object for tumor subclone analysis?

CNV detection in an AnnData object requires cell type annotations in adata.obs, genomic position annotations in adata.var, and a defined normal reference cell population to anchor the inference baseline.

Can I use infercnvpy on a single-slice spatial transcriptomics dataset?

Yes, infercnvpy can be applied to single-slice spatial transcriptomics datasets to calculate CNV scores and identify tumor subclones, provided the slice contains the required cell type and genomic position annotations.

What outputs do I get from running CNV inference on gene expression data?

Running CNV inference on gene expression data outputs a CNV score matrix stored in X_cnv, CNV-based clone labels in cnv_leiden, and an uns dictionary containing the parameter details used during the analysis.

Why do I need a normal reference cell population for CNV inference?

A normal reference cell population is required for CNV inference to establish a baseline expression profile, allowing the algorithm to distinguish copy number variations in tumor cells from normal expression noise.

What is the best way to identify tumor subclones from gene expression data?

Identifying tumor subclones from gene expression data is best achieved by inferring CNV scores to generate a matrix, then clustering the results to assign CNV-based clone labels for downstream spatial analysis.