# CNV scores in infercnvpy

**URL:** <https://discourse.scverse.org/t/cnv-scores-in-infercnvpy/2497>\
**Category:** anndata\
**Created:** [September 6, 2024, 12:57pm UTC](https://discourse.scverse.org/t/cnv-scores-in-infercnvpy/2497 "2024-09-06T12:57:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ilarius](https://avatars.discourse-cdn.com/v4/letter/i/e68b1a/32.png) [@Ilarius](https://discourse.scverse.org/u/Ilarius)\
**Post date:** [September 6, 2024, 12:57pm UTC](https://discourse.scverse.org/t/cnv-scores-in-infercnvpy/2497/1 "2024-09-06T12:57:54Z")

</div>

Hello, first of all I wante dto ask if the matrix in data.obsm[”X\_cnv”] corresponds to the slot in R: infercnv\_obj@expr.data.

Secondly how are cnv scores calculated starting from this matrix by the function infercnvpy.tl.cnv\_score?

It says: “Ths score is currently simply defined as the mean of the absolute values of the CNV scores in each cluster”.  
If I take the row means of the abs values of data.obsm[”X\_cnv”] I don’t get the same values.  
Thanks
