Teichlab / cellphonedb

MIT License
342 stars 105 forks source link

Input error cellphonedb statistical analysis #382

Closed MathiniVaikunthan closed 1 year ago

MathiniVaikunthan commented 2 years ago

Hello! I'm having trouble with the statistical analysis function because it is throwing an error with my inputs possibly being the wrong type but I think that the class of the metadata and the counts are what they should be? Counts are numeric, and metadata are characters. Any help would be much appreciated! New Note Cluster class(counts_list 1 $Gene) New Note

lisbeth-dot-95 commented 1 year ago

The problem was resolved when I just pasted a "Cluster_" in front of the cluster numbers.

prete commented 1 year ago

We recommend clusters to be strings to prevent this specific issue in some environments. Like @lisbeth-dot-95 mentioned, prepending Cluster_ (or any other string for that matter) should solve the issue.