Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

registration using gene expression information #20

Open
common-chenlab opened this issue Oct 19, 2023 · 5 comments
Open

registration using gene expression information #20

common-chenlab opened this issue Oct 19, 2023 · 5 comments

Comments

@common-chenlab
Copy link

I'm trying to get a better understanding of the objective function that is used to determine how well the image at a given point in space matches and how it could be used to take into account expression of multiple genes to obtain a more accurrate fit. Currently, most tutorials seem to be working with a single channel image of using cell density or intensity value as input (ie. a 2D matrix). However, looking at the code, I see that inputs could take a tensor. In principle, would it be possible to supply a "multi-channel" image wherein each channel corresponds to the spatial map for N genes to calculate the match? Would this work out of the box or would changes need to be made?

@common-chenlab common-chenlab changed the title registering using gene expression information registerion using gene expression information Oct 19, 2023
@common-chenlab common-chenlab changed the title registerion using gene expression information registration using gene expression information Oct 19, 2023
@kpclifton
Copy link
Collaborator

Hi,

Thanks for your inquiry about STalign and its applications. Yes, it should be possible to align with gene expression information because the source and target inputs to the objective functions are tensors and not limited to certain dimensions. During the development of STalign, one of my co-authors aligned with principle components of gene expression data so I believe that what you are describing with multi-channels for each gene is also possible with STalign. We just haven't shared this analysis because if we use gene expression info to make the alignment then gene expression correspondence is not an orthogonal method to test alignment performance. You are welcome explore and provide us with feedback if you identify limitations of STalign on aligning images with gene expression information.

Best,
Kalen

@common-chenlab
Copy link
Author

common-chenlab commented Dec 7, 2023 via email

@common-chenlab
Copy link
Author

image

@common-chenlab
Copy link
Author

Maybe to clarify my question and the guidance I'm looking for, I see that there are a number of parameters that can be edited ( epV, sigmaM, sigmaB, sigmaA,sigmaR, sigmaP) but I don't have the intuition for how to iteratively adjust the parameters, which ones will have the biggest effect, and in what order should one try to adjust the parameter. In tutorial, I see each tutorial has different parameters values. It would be helpful to know what why those values were chosen and or the logic for how you arrived at those values. For example, if you were to start with data that you have not work before, what would be first value that you try to change, then would would be the next, etc etc?

@cathalgking
Copy link

@kpclifton Can I use STalign for Visium data and a matched TIFF (mass spec data)? For the mass spec data I also have a table with m/z values and x-y co-ordinates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants