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
The text was updated successfully, but these errors were encountered:
wyq977
changed the title
spatialdm_global does not work with a list specified index, pair_selection_matrix would change adata
spatialdm_global does not work with a list of specified index, pair_selection_matrix would change adata
Jan 5, 2023
Hi I found out there's a bug in spatialdm_global
SpatialDM/spatialdm/main.py
Line 155 in aa17624
For example, if there are 400 lr pairs after
extract_lr
, one select 10 pairs for computation.User cannot specify specified_ind as in globle_st_compute(adata) would also be still 400 (or 400x400)
That would throw a error in calculation due to
Also in this function, it would change/remove the
ligand
,receptor
andgeneInter
inadata
. Namely, the changes to adata would NOT be local.For example, if one only specify 2 pairs, after calculation,
ligand
,receptor
andgeneInter
would be reduced to 2.You have to re-run
extract_lr
to get the full list.SpatialDM/spatialdm/utils.py
Line 92 in aa17624
The text was updated successfully, but these errors were encountered: