SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2506.15698 · ICML · 2025

Global Context-aware Representation Learning for Spatially Resolved Transcriptomics

Namkyeong Lee, Chanyoung Park, Junseok Lee, Sangwoo Seo, Yeongmin Kim, Yunhak Oh

arXiv · PDF · Open in the Atlas

Code that ran

8 of 9 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 6 failures of our instrument; 1 no recorded run), measured 2026-11-24; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2506.15698.json · badge: /api/ran/2506.15698.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
yunhak0/Spotscape canonical (classifier label)
classifier basis: census
8 ran · 1 no recorded run
FunctionStatusWhere it lives
cluster_acc Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
yunhak0/Spotscape/utils/metric.py
code served (permissive licence) · get_code("936b939e947c30da")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create simple test data for clustering
# y_true: ground truth cluster labels
# y_pred: predicted cluster labels

np.random.seed(0)

# Create sample data with 10 samples and 3 clusters
y_true = np.array([0, 0, 1, 1, 2, 2, 0, 1, 2, 0], dtype=np.int64)
y_pred = np.array([0, 0, 1, 2, 2, 1, 0, 1, 2, 0], dtype=np.int64)

ARGS = {
    "y_true": y_true,
    "y_pred": y_pred,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
config2string Ran
ran; our contract draft was wrong, not the code
yunhak0/Spotscape/utils/utils.py
code served (permissive licence) · get_code("75374ec2bf1f4bf8")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from argparse import Namespace

torch.manual_seed(0)

# Create a simple args object with attributes that config2string expects
args = Namespace(
    project='test_project',
    wb_name='test_wb',
    trials=5,
    batch_size=32,
    n_hvg=2000,
    decay=0.95,
    clustering_method='leiden',
    device='cpu',
    enc_type='vae',
    ee=True,
    wandb=False,
    result_dir='/results',
    data_dir='/data',
    estimate_n_clusters=True,
    dropout=0.1,
    size_factors=True,
    logtrans_input=True,
    layers=[128, 64, 32],
    neighs=15,
    graph_type='knn',
    graphenc='gcn',
    de1=64,
    de2=32,
    df1=128,
    df2=256,
    lam_bt=0.5,
    eval_only=False,
    normalize_coord=True,
    proto_granularity='cell_type',
    # Additional parameters that will be processed by the function
    alpha=0.01,
    beta=0.02,
    learning_rate=0.001,
    seed=42,
    model_type='standard',
    use_attention=True,
    num_heads=8,
    hidden_dim=256,
    activation='relu'
)

ARGS = {'args': args}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
cos_sim_p Ran
ran; our contract draft was wrong, not the code
yunhak0/Spotscape/models/loss/selfsupervised.py
code served (permissive licence) · get_code("9a43dbf09ad8eafb")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 2) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn.functional as F

torch.manual_seed(0)

# z1 and z2 are tensors that will be normalized and multiplied
# They need to be 2D tensors for meaningful cosine similarity
# Using distinct dimensions: batch=2, embedding_dim=4

z1 = torch.randn(2, 4)
z2 = torch.randn(2, 4)

ARGS = {
    "z1": z1,
    "z2": z2,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 2) — shape (2, 2) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
exp_func Ran
ran; our contract draft was wrong, not the code
yunhak0/Spotscape/models/loss/selfsupervised.py
code served (permissive licence) · get_code("e6b1ef3b7c455a77")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

x = torch.randn(2, 4)
tau = 0.5

ARGS = {
    "x": x,
    "tau": tau,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_graph_drop_transform Ran
ran; our contract draft was wrong, not the code
yunhak0/Spotscape/utils/transform.py
code served (permissive licence) · get_code("e0350077c97b9bf3")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Compose. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import copy
from torch_geometric.utils.dropout import dropout_edge
from torch_geometric.transforms import Compose

torch.manual_seed(0)

ARGS = {
    'drop_edge_p': 0.2,
    'drop_feat_p': 0.3,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torch_geometric — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Compose — a Compose output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Compose output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
infer_n_protos Ran
ran; our contract draft was wrong, not the code
yunhak0/Spotscape/models/loss/selfsupervised.py
code served (permissive licence) · get_code("4ee4de74e7a2ba13")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Construct arguments for infer_n_protos
k = 10  # integer representing number of clusters
proto_granularity = [0.3, 0.5, 0.7]  # list of floats representing granularity levels

ARGS = {
    "k": k,
    "proto_granularity": proto_granularity
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family int — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
list_of_ints Ran
ran, honoured the contract we drafted
yunhak0/Spotscape/utils/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from razaimam45/ttl-test-time-low-rank-adaptation, is pointer only (licence: NONE) · get_code("7d1ac1a66da5f14c")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from razaimam45/ttl-test-time-low-rank-adaptation, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

str2bool Ran
ran, violated the contract we drafted
yunhak0/Spotscape/utils/utils.py
code served (permissive licence) · get_code("834a7e5ca5c383d0")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function str2bool takes a single parameter 's' which should be a string
# It checks if 's' is in the set {'False', 'True', 'false', 'true'}
# and returns True if s is 'True' or 'true', False otherwise

ARGS = {
    's': 'True'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
perf_clustering_metric Not yet run
unverified (harvested, no recorded run)
yunhak0/Spotscape/utils/metric.py
code served (permissive licence) · get_code("a7753647bda5770d")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 1 later) and 6 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
list_of_ints 4 other papers
4 dated earlier
2309.17179 (2023-09)
Alphazero-like Tree-Search can Guide Large Language Model Decoding and Training
2310.19046 (2023-10)
Large Language Models as Evolutionary Optimizers
2407.15913 (2024-07)
Test-Time Low Rank Adaptation via Confidence Maximization for Zero-Shot Generalization of Vision-Language Models
and 1 more not named here
get_graph_drop_transform 3 other papers
2 dated earlier, 1 later
2312.02619 (2023-12)
Rethinking and Simplifying Bootstrapped Graph Latents
2408.05087 (2024-08)
Bootstrap Latents of Nodes and Neighbors for Graph Self-Supervised Learning
2606.10284 (2026-06)
Revisiting Positive Samples in Graph Contrastive Learning: From the Perspective of Message Passing
str2bool 1 other paper
1 dated earlier
2307.10037 (2023-07)
Single-cell RNA-seq data imputation using Feature Propagation

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Spatially Resolved Transcriptomics (SRT) is a cutting-edge technique that captures the spatial context of cells within tissues, enabling the study of complex biological networks. Recent graphbased methods leverage both gene expression and spatial information to identify relevant spatial domains. However, these approaches fall short in obtaining meaningful spot representations, especially for spots near spatial domain boundaries, as they heavily emphasize adjacent spots that have minimal feature differences from an anchor node. To address this, we propose Spotscape, a novel framework that introduces the Similarity Telescope module to capture global relationships between multiple spots. Additionally, we propose a similarity scaling strategy to regulate the distances between intra-and inter-slice spots, facilitating effective multi-slice integration. Extensive experiments demonstrate the superiority of Spotscape in various downstream tasks, including single-slice and multi-slice scenarios. Our code is available at the following link: https: //github.com/yunhak0/Spotscape.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2506.15698")
get_code_for_paper("2506.15698")
have("2506.15698")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2506.15698.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2506.15698.svg)](https://syntology.ai/paper/2506.15698)

Connect an agent — have() is free.