immunarch icon indicating copy to clipboard operation
immunarch copied to clipboard

geneUsageAnalysis: Can't convert from <double> to <integer> due to loss of precision.

Open anabbi opened this issue 2 years ago • 2 comments

Hello,

I tried to do gene usage analysis using TRBV:

imm_gu <- geneUsage(imm$data, "hs.trbv")

The following command gives me an error:

imm_gu_js <- geneUsageAnalysis(imm_gu, .method = "js")

Error:
! Assigned data `.laplace` must be compatible with existing data.
ℹ Error occurred for column `SampleX`.
✖ Can't convert from <double> to <integer> due to loss of precision.
• Locations: 1.
Traceback:

It seems it is an issue with tibble. Converting to dataframe works fine:

imm_gu_js <- geneUsageAnalysis(as.data.frame(imm_gu), .method = "js")

It would be great if it is addressed in the next release.

Thanks

anabbi avatar Apr 14 '22 14:04 anabbi

Hi, @anabbi ! My name is Maria Volobueva, I am a developer of the Immunarch package.

We have managed to reproduce your issue. Now we are working on fixing it.

I will get back to you with any updates.

Thank you so much for drawing our attention to this.

Good luck, Maria Volobueva

MVolobueva avatar Apr 29 '22 11:04 MVolobueva

same here. I get:

Error:
! Assigned data `.laplace` must be compatible with existing data.
ℹ Error occurred for column `Names`.
✖ Can't convert <double> to <character>.

Not necessarily on TRBV, but other genes as well. converting to Dataframe solves this as well.

itagaf avatar Oct 10 '22 09:10 itagaf