immunarch
immunarch copied to clipboard
geneUsageAnalysis: Can't convert from <double> to <integer> due to loss of precision.
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
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
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.