BiomedicalMachineLearning / stLearn

A novel machine learning pipeline to analyse spatial transcriptomics data
Other
190 stars 25 forks source link

Error in the step to stack horizontally 2 images from section 1 and section 2 in-house datasets #253

Closed tyaoi closed 11 months ago

tyaoi commented 11 months ago

Hi,

Thanks a lot for your great tool !

When I tried to stack two images from in-house datasets according to the tutorial "Integrate multiple spatial transcriptomics datasets", the following error message was return;

ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 0, the array at index 0 has size 1895 and the array at index 1 has size 1157

Would you any suggestion for trouble shooting ?

Sincerely,

duypham2108 commented 11 months ago

This function is not broadly applicable yet. np.hstack requires you to have two images that have at least one dimension has the same size. One a bit manual solution is to extend your second image from 1157 to match 1895 by adding white space (crop tool maybe useful)