BiomedicalMachineLearning/stLearn

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

Closed this issue · 1 comments

tyaoi commented

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,

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)