Skip to contents

This function generates a matrix of metacells where each metacell corresponds to a CNV cluster. The CNV matrix is calculated by chromosome arm. If specified, certain clusters will be labeled as "Benign" rather than "Clone".

Usage

generateCNVClonesMatrix(seuratObj, healthyClusters = NULL)

Arguments

seuratObj

A Seurat object containing CNV data and metadata.

healthyClusters

A numeric vector or NULL. If provided, clusters specified in this vector will be labeled as "Benign" instead of "Clone". Default is NULL.

Value

A matrix of CNVs with row names corresponding to the clone or benign labels and columns representing the chromosome arms.