← Về thư mục
📄 / / profiles / r-and-d / raw_evidence / OpenAI4S / skills / bioskills / bio-single-cell-cnv-inference / references / usage-guide.md

Copy-Number Inference from Single-Cell RNA-seq - Usage Guide

Overview

This skill infers large-scale copy-number alterations from tumor single-cell or single-nucleus RNA-seq by treating averaged expression over genomic windows as a proxy for DNA copy number. It separates malignant from normal cells and calls subclones at chromosome-arm / large-segment (~5 Mb) resolution. It covers reference-based expression smoothing (inferCNV), reference-free segmentation (copyKAT, SCEVAN), and haplotype-aware allele-plus-expression inference (Numbat). It is distinct from DNA/WES-based copy-number (copy-number/cnvkit-analysis), which measures DNA read depth and resolves focal events.

Prerequisites

# inferCNV (Bioconductor)
BiocManager::install('infercnv')

# copyKAT and SCEVAN (GitHub)
remotes::install_github('navinlabcode/copykat')
remotes::install_github('AntonioDeFalco/SCEVAN')

# Numbat (CRAN); preprocessing also needs cellsnp-lite and Eagle2 on the PATH
install.packages('numbat')

Quick Start

Tell your AI agent what you want to do: - "Which cells in my tumor scRNA-seq are malignant?" - "Infer chromosome-arm CNVs from my tumor expression matrix" - "Run inferCNV using my T cells and myeloid cells as the normal reference" - "Call tumor subclones with allele-aware Numbat" - "Pick a CNV-inference method when I have no annotated normal cells"

Example Prompts

Malignant vs normal

"Separate malignant from normal cells in this tumor sample using a CNV-inference method" "I annotated immune and stromal cells; use them as the inferCNV reference and call which cells are aneuploid"

Method choice

"I have no normal cells annotated - which reference-free CNV caller should I use?" "Should I use inferCNV, copyKAT, or Numbat for this dataset, and why?"

Subclones and alleles

"Run Numbat to resolve subclones and copy-neutral LOH from my BAM and counts" "My copyKAT subclones look unstable - how do I confirm them?"

Interpretation and pitfalls

"My immune cells are being called aneuploid - what went wrong with my reference?" "Run CNV inference per patient instead of on my integrated cross-patient object"

What the Agent Will Do

  1. Confirm the analysis is per sample / per patient, never on a cross-patient integrated object (tumor karyotypes are patient-private)
  2. Decide reference-based vs reference-free by whether confident non-malignant cells are annotated in the sample
  3. Decide expression-only vs allele-aware by whether subclone resolution or copy-neutral LOH matters and whether a BAM is available
  4. For reference-based inferCNV, assemble the counts matrix, annotation file, and gene-ordering file and name the normal groups
  5. Run the chosen method with droplet-appropriate parameters, denoising, and (inferCNV) the HMM
  6. Classify cells as malignant vs normal and validate the call with lineage markers, mutations, or allele evidence, not the CNV heatmap alone
  7. Treat subclone calls as hypotheses and reconcile expression-only calls against allele-aware (Numbat) or DNA evidence

Tips