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
69 stars 15 forks source link

Extracting coordinates after initial affine transformation only #29

Open dbuszta opened 8 months ago

dbuszta commented 8 months ago

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

mmganant commented 5 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