Function to calculate gene signature enrichment scores per spatial position using a rank based approach.
extractNearestNetwork(...)
Arguments passed on to select_NearestNetwork
gobject
giotto object
nn_network_to_use
kNN or sNN
network_name
name of NN network to be used
output
return a igraph or data.table object