JEFworks-Lab / STalign

Python tool for alignment of spatial transcriptomics (ST) data using diffeomorphic metric mapping
https://jef.works/STalign/
GNU General Public License v3.0
61 stars 10 forks source link

Extracting coordinates after initial affine transformation only #29

Open dbuszta opened 6 months ago

dbuszta commented 6 months ago

Hi there, is it possible to quickly get coordinates of the target with just affine transformation?

mmganant commented 2 months ago

Hello, yes this is possible.

After getting you affine transform 'A' you can run: STalign.transform_points_source_to_target(xv, v, A, pointsI), where xv=None and v=None (because there is no diffeomorphism). 'A' is your affine transform, and pointsI are the source points that are transformed to match the target using the affine transform.

Hope this helps & let me know if you have additional questions! Best, Manjari