BiomedicalMachineLearning / stLearn

A novel machine learning pipeline to analyse spatial transcriptomics data
Other
201 stars 26 forks source link

stlearn CCI is not working for multiple slides? #270

Closed howtofindme closed 8 months ago

howtofindme commented 11 months ago

Dear developer, Thanks for your wonderful jobs! I have learned from your tutorials in Integration_multiple_datasets section. But I found the integrated object is not working correctly for stLearn Cell-Cell Interaction Analysis when I run the following codes using the integrated data:

Basic normalisation

st.pp.filter_genes(data, min_cells=1) st.pp.normalize_total(data) # NOTE: no log1p for CCI image you can see the data.var becomes zero.

duypham2108 commented 11 months ago

You should make sure 2 slides (samples) have to have the same set (or subset) of genes

howtofindme commented 10 months ago

You should make sure 2 slides (samples) have to have the same set (or subset) of genes

Yes, you are right,solved, Thanks