COSIE.linkage_construction

Functions

compute_linkages

Construct pairwise linkage triplets across specified tissue sections and modalities using symmetric nearest neighbor matching.

compute_linkages_per_subgraph

Compute triplet linkages between two spatial subgraphs, each from a different section.

load_protein_gene_mapping

Load relationships between proteins and their associated genes.

perform_strong_linkage_knn

Construct triplet pairs between two sections of the same modality using symmetric KNN-based linkage.

perform_weak_linkage_knn

Construct weak linkage triplet pairs between two datasets of different but biologically related modalities.

preprocess_data_for_subgraphs

Split each section into spatial subgraphs and compute cross-section triplet linkages at the subgraph level.

split_into_subgraphs

Split a feature tensor and its corresponding spatial coordinates into n_x × n_y rectangular subregions.

split_raw_data

Divide spatial omics data from each section into spatially partitioned subgraphs.