You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way in the spatial interaction analysis to pass a variable containing cohort information? Lets say I have a adata.obs called disease, would it somehow be possible to pass that to the plotting or calculation function to compare the different disease cohorts? I suspect that passing disease to the imageid variable in sm.tl.spatial_interaction is not correct right? If I am doing this, I will get a heatmap comparing the disease cohorts when summarize_plot is set to False but I guess this messes with the coordinates right? Would the only solution be to split the anndata based on the disease column and run it separately and then compare? Or do you have other suggestions?
Further, for the proximity scoring, would it be possible to set the score_by = 'disease?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Dear @ajitjohnson,
Is there a way in the spatial interaction analysis to pass a variable containing cohort information? Lets say I have a
adata.obs
calleddisease
, would it somehow be possible to pass that to the plotting or calculation function to compare the different disease cohorts? I suspect that passingdisease
to theimageid
variable insm.tl.spatial_interaction
is not correct right? If I am doing this, I will get a heatmap comparing the disease cohorts whensummarize_plot
is set to False but I guess this messes with the coordinates right? Would the only solution be to split the anndata based on the disease column and run it separately and then compare? Or do you have other suggestions?Further, for the proximity scoring, would it be possible to set the
score_by = 'disease
?Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions