icbi-lab / infercnvpy

Infer copy number variation (CNV) from scRNA-seq data. Plays nicely with Scanpy.

Home Page:https://infercnvpy.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NA/NaN/Inf in foreign function call (arg 10)

lacey359 opened this issue · comments

when I use the copycat,it made a issue:
rpy2.rinterface_lib.embedded.RRuntimeError: Error in hclust(d, method = "ward.D2") :
NA/NaN/Inf in foreign function call (arg 10)

how can I solve it?

Any chance there are NA values in your gene expression matrix?

If that's not the issue that sounds more like a problem with copykat itself -- infercnvpy just provides a thin wrapper that executes the R code from python. You may be better off asking for help in their repository.