Teichlab / cellphonedb

MIT License
345 stars 105 forks source link

labels shown by string encoding #301

Closed yjgeno closed 3 years ago

yjgeno commented 3 years ago

Hi there, thanks for your package, excellent work!

I followed your guidebook and plot the heatmap using your example dataset. It turns out the labels show in their encoding instead of string: image

Any thought about this issue? Thank you in advance!

prete commented 3 years ago

Hi @yjgeno indeed 41 44 52 42 32 5F 56 45 47 46 42 represents ADRB2_VEGFB. This may be caused by your system's encoding. Could you please inform your Operating System, CellphoneDB version and R version? and also, just to check, the example dataset you used are the files in in/example_data?

prete commented 3 years ago

also, is that from PDF output? do you face the same error when using PNG or JPEG formats?

yjgeno commented 3 years ago

Hi, thanks for your comment. Yes, this happened across all the format (PDF, PNG, and JPEG)

OS: "Red Hat Enterprise Linux Server 7.1 (Maipo)" R version 3.6.1 Python 3.7.10 cellphonedb 2.1.7

prete commented 3 years ago

Hi @yjgeno could you try running the plotting scripts manually as described here to rule out rpy2 being the culprit?

If that fails, perhaps changing the script to your encoding or wrapping the values from read.table like: str(all_pval) and str(all_means) could help.

yjgeno commented 3 years ago

Thanks, the latter works!