General
BuildGraph()
Gallery
Build nearest neighbor graph for mRNA/protein colocalization.
bg – Bering object
df_spots (DataFrame) – The table of spots from a defined spatial region
DataFrame
n_neighbors (int) – Number of neighbors in KNN
int
: Graph of torch_geometric.data.Data, which can be used for training.
torch_geometric.data.Data