STOmics / Stereopy

A toolkit of spatial transcriptomic analysis.
MIT License
179 stars 59 forks source link

write_h5ms lost index #270

Closed LILI-0000-0002-8173-7367 closed 2 weeks ago

LILI-0000-0002-8173-7367 commented 2 months ago

Hello, Stereopy team.

I noticed that some attributes were lost once ms_data object was saved as h5ms file formart, related to post #234.

originial ms_data image image image

reloaded ms_data1 from h5ms file. image image image

You will noticed that leiden show up in ms_data1.obs and mean_umi is completely disappreared in ms_data.var. Basically I can replot anything from this h5ms file. Would you please help? st.__version__ '1.2.0' st.io.write_h5ms(ms_data,output='/work/InternalMedicine/sssss/Stereopy/bin50_ALL.h5ms') ms_data1 = st.io.read_h5ms(file_path ='/work/InternalMedicine/sssss/Stereopy/bin50_ALL.h5ms', use_raw=True, use_result=True)

tanliwei-genomics-cn commented 2 weeks ago

We have already solved this problem in latest version stereopy, thanks so much for your feedback.