saezlab / mistyR

Multiview Intercellular SpaTial modeling framework
https://saezlab.github.io/mistyR/
GNU General Public License v3.0
48 stars 11 forks source link

Question about juxta and para view #45

Open LynnChan99 opened 2 months ago

LynnChan99 commented 2 months ago

Hi, I am a little confused about the difference between juxta and para view. for example, if i set the diameter of juxta view as 3 and para view as 5, does the para view included all spots within 5 circles or just the outer 2 circles after excluded 3 circles of juxta view?

This question raised from when I setted juxta view as 2 and para view as 3, after a while, I changed them to 3 and 5. If it means included all spots within the parameter, then the importance results of juxta view (n=3) and para view (n=3) should be the same. However, they are totally different results.

Thank you for your time!

jtanevski commented 1 month ago

Hi. The meaning and the function of the parameters for the construction of juxtaview and paraview are quite different.

The parameter for creating a juxtaview is a thresholding parameter. ,i.e., a parameter of exclusion. To create a juxtaview we first create a graph of neighboring cells. Each edge in this graph comes with a value equal to the distance between the neighboring cells. In order to remove edges that are too long and do not capture two cells that are touching, for example edge connecting two cells in a sparsely populated region, we use a threshold parameter.

The parameter for creating a paraview has a completely different meaning. It is a parameter of inclusion. It helps to determine the importance of the abundances of cells in the broader tissue structure and assign appropriate weights.

The results of using the same parameter in the juxtaview and the paraview should be different as they are not related. Hope this explanation helps clarify things a bit better.