Function to calculate gene signature enrichment scores per spatial position using a rank based approach.
extractNearestNetwork(...)Arguments passed on to select_NearestNetwork
gobjectgiotto object
nn_network_to_usekNN or sNN
network_namename of NN network to be used
outputreturn a igraph or data.table object