Closed HZT55 closed 1 week ago
Hi @HZT55,
thanks for reporting the issue! I think I found the problem. The issue was that the the X and Y chromosomes are by default removed from the anndata, and therefore the reference didn't match anymore.
The problem should be solved in #135. Would be great if you could test it by installing this version via
pip install git+https://github.com/icbi-lab/infercnvpy.git@fix-134
Cheers, Gregor
Hi Gregor,
Thank you for the quick fix! I can confirm that the issue has been resolved. Everything is working smoothly now.
Great, I'll include it in the next release then.
Report
Hi,
I am trying to use infercnvpy directly supply an array of average normal gene expression, but when I run:
I get the error message: Reference must match the number of genes in AnnData.
The normal_expr is generated by the following code:
So the number and order of genes in normal_expr does match the adata.
How do I deal with this?
Many thanks!
Version information
anndata 0.10.7 infercnvpy 0.4.5 matplotlib 3.8.4 numpy 1.26.4 pandas 2.2.1 scanpy 1.10.1