Replies: 2 comments 1 reply
-
Hi @Umaarasu do you have a reproducible example? And can you provide details about the version of Giotto etc? Thanks |
Beta Was this translation helpful? Give feedback.
-
So, the Knn network is the one that does not work. The Delaunay network works. This issue is in my data and not the example data. I am not sure how I can get an reproducible example.
showGiottoSpatNetworks(visium) |
Beta Was this translation helpful? Give feedback.
-
Hi,
Can anyone please tell why I am getting NA in the spatial network? Because of which I am not able to create a rank test. Thanks!
visium <- createSpatialNetwork(gobject = visium,
method = 'kNN', k = 5,
maximum_distance_knn = 50,
name = 'spatial_network')
showGiottoSpatNetworks(visium)
└──Spatial unit "cell"
└──S4 spatialNetworkObj "spatial_network" (0 rows)
from to sdimx_begin sdimy_begin sdimx_end sdimy_end distance weight
1: NA NA NA NA NA NA
ranktest = binSpect(visium, bin_method = 'rank',
calc_hub = T, hub_min_int = 5,
spatial_network_name = 'spatial_network')
Error in
[.data.table
(full_spatial_network_DT, ,:=
(rank_int, 1:.N), :Supplied 2 items to be assigned to group 1 of size 0 in column 'rank_int'. The RHS length must either be 1 (single values are ok) or match the LHS length exactly. If you wish to 'recycle' the RHS please use rep() explicitly to make this intent clear to readers of your code.
Beta Was this translation helpful? Give feedback.
All reactions