In the previous tutorial of STAligner, I mistakenly transformed adata.X from a Pandas DataFrame to a sparse matrix by default. However, adata.X is typically already of type sparse matrix. This transform code could result in errors during data analysis. To address this issue, I added code to check the type of adata.X.
In the previous tutorial of STAligner, I mistakenly transformed adata.X from a Pandas DataFrame to a sparse matrix by default. However, adata.X is typically already of type sparse matrix. This transform code could result in errors during data analysis. To address this issue, I added code to check the type of adata.X.