Skip to content

Image path when creating st object from other packages #303

Closed

Description

@je71xusa

Hi stlearn team.

I just started trying your package out and have a question about the image_path parameter in create_stlearn.
I tried importing everything from a seurat object and everything is working except for the image_path. It does not allign with the spots and instead the image is just at top left corner.

Thus, I wanted to ask how create_stlearn alligns the image to the spots? What format or information does it need to correctly allign spots to image?

If I missed this information in the documentation I apologize and would be thankful if you send me a link or screenshot with the information.

Thank you!

Activity

  1. newmana commented on Oct 31, 2026

    @newmana
    Collaborator

    To answer your questions:

    • Each spot is aligned to image by imagecol x scale, imagerow x scale.
    • There was a bug in create_stalign where the scaling was applied twice. This is now fixed in stLearn 1.5.0 #362
  2. added a commit that references this issue on Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions