SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2204.02337 · 2022

Multi-Scale Representation Learning on Proteins

arXiv · PDF · Open in the Atlas

Code that ran

7 of 7 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; 0 honoured the contract we drafted, 0 violated it and 7 have no contract verdict; 0 failures of our instrument; 0 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/2204.02337.json · badge: /api/ran/2204.02337.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
vsomnath/holoprot community (classifier label)
classifier basis not recorded on the link
7 ran · 0 no recorded run
FunctionStatusWhere it lives
assign_props_to_new_mesh Ran
ran on a synthesized input
vsomnath/holoprot/holoprot/feat/surface.py
code served (permissive licence) · get_code("9213118a8394c5a8")
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 ndarray, ndim 1, dtype family float, shape (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 numpy as np

# Create small sample data for the mesh vertices and properties
np.random.seed(0)

# Old mesh: 5 vertices in 3D space
old_vertices = np.array([
    [0.0, 0.0, 0.0],
    [1.0, 0.0, 0.0],
    [0.0, 1.0, 0.0],
    [1.0, 1.0, 0.0],
    [0.5, 0.5, 0.5]
], dtype=np.float64)

# Properties for old vertices (e.g., scalar values)
old_props = np.array([1.0, 2.0, 3.0, 4.0, 5.0], dtype=np.float64)

# New mesh: 4 vertices (some close to old ones, some new)
new_vertices = np.array([
    [0.1, 0.1, 0.0],
    [0.9, 0.0, 0.1],
    [0.5, 0.5, 0.4],
    [0.2, 0.8, 0.05]
], dtype=np.float64)

ARGS = {
    "new_vertices": new_vertices,
    "old_vertices": old_vertices,
    "old_props": old_props,
    "feature_interpolation": True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (4,) — shape (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
build_gemm Ran
ran on a synthesized input
vsomnath/holoprot/holoprot/graphs/patch.py
code served (permissive licence) · get_code("ce170683d7b5c957")
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 Data. 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 numpy as np
from torch_geometric.data import Data

# Create a simple mesh with 4 vertices and 2 triangular faces
vertices = np.array([
    [0.0, 0.0, 0.0],
    [1.0, 0.0, 0.0],
    [0.0, 1.0, 0.0],
    [0.5, 0.5, 1.0]
], dtype=np.float32)

# Two triangular faces sharing an edge
faces = np.array([
    [0, 1, 2],
    [1, 3, 2]
], dtype=np.int64)

# Create a Data object with vertices and faces
data = Data(
    vertices=vertices,
    faces=faces,
    pos=vertices
)

ARGS = {
    "data": data
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch_geometric — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Data — a Data output has no array shape of its own; none is 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
compute_angle Ran
ran on a synthesized input
vsomnath/holoprot/holoprot/graphs/surface.py
code served (permissive licence) · get_code("5bd854a6cf535c1d")
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 float64, ndim 0, 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 two normalized vectors for computing angle between them
norm_i = np.array([1.0, 0.0, 0.0, 0.0])
norm_j = np.array([0.707, 0.707, 0.0, 0.0])

ARGS = {
    "norm_i": norm_i,
    "norm_j": norm_j,
}
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 float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
compute_dist Ran
ran on a synthesized input
vsomnath/holoprot/holoprot/graphs/surface.py
code served (permissive licence) · get_code("f97ba048177305c1")
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 float64, ndim 0, 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

# Set random seed for reproducibility
np.random.seed(0)

# Create small numpy arrays for pos_i and pos_j
pos_i = np.array([1.0, 2.0, 3.0, 4.0])
pos_j = np.array([1.1, 2.1, 3.1, 4.1])

# Define sigma parameter
sigma = 0.01

# Construct ARGS dictionary mapping all parameters
ARGS = {
    "pos_i": pos_i,
    "pos_j": pos_j,
    "sigma": sigma,
}
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 float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
compute_shape_index Ran
ran on a synthesized input
vsomnath/holoprot/holoprot/feat/surface.py
code served (permissive licence) · get_code("3565f12303a59137")
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 ndarray, ndim 1, dtype family float, shape (5,) 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 numpy as np

class MockMesh:
    """Mock PyMesh Mesh object with required attributes and methods."""
    
    def __init__(self):
        # Create a simple mesh with 5 vertices
        self.num_vertices = 5
        self._attributes = {}
        
        # Pre-populate vertex normal components
        self._attributes['vertex_nx'] = np.array([0.1, 0.2, 0.3, 0.4, 0.5])
        self._attributes['vertex_ny'] = np.array([0.2, 0.3, 0.4, 0.5, 0.1])
        self._attributes['vertex_nz'] = np.array([0.7, 0.6, 0.5, 0.4, 0.8])
        
        # Curvature will be computed/added on demand
        self._attributes['vertex_mean_curvature'] = np.array([0.1, 0.15, 0.2, 0.12, 0.18])
        self._attributes['vertex_gaussian_curvature'] = np.array([0.05, 0.08, 0.1, 0.06, 0.09])
    
    def get_attribute(self, name):
        """Retrieve an attribute by name."""
        if name in self._attributes:
            return self._attributes[name].copy()
        raise KeyError(f"Attribute {name} not found")
    
    def add_attribute(self, name):
        """Add/ensure an attribute exists. For curvatures, populate with dummy values."""
        if name == 'vertex_mean_curvature' and name not in self._attributes:
            self._attributes[name] = np.array([0.1, 0.15, 0.2, 0.12, 0.18])
        elif name == 'vertex_gaussian_curvature' and name not in self._attributes:
            self._attributes[name] = np.array([0.05, 0.08, 0.1, 0.06, 0.09])

ARGS = {
    'mesh': MockMesh()
}
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 ndarray, ndim 1, dtype family float, shape (5,) — shape (5,) 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_resid_from_name Ran
ran on a synthesized input
vsomnath/holoprot/holoprot/graphs/hier_graph.py
code served (permissive licence) · get_code("25dee809a7c9caeb")
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. 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.

ARGS = {
    "name": "A_42_x"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is 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
onek_encoding_unk Ran
ran on a synthesized input
vsomnath/holoprot/holoprot/feat/complex.py
code served (permissive licence) · get_code("114c529716f31e58")
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 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 torch
import numpy as np
from typing import List, Union, Set, Any

torch.manual_seed(0)

# Test case 1: x is in allowable_set
x_in_set = "a"
allowable_set_list = ["a", "b", "c"]

# Test case 2: x is not in allowable_set (should use last element)
x_not_in_set = "z"
allowable_set_with_unk = ["x", "y", "z"]

# Test case 3: numeric values
x_numeric = 2
allowable_set_numeric = [0, 1, 2, 3]

# Test case 4: using a Set
x_set_test = "hello"
allowable_set_set = {"hello", "world", "test"}

ARGS = {
    "x": x_in_set,
    "allowable_set": allowable_set_list,
}
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 list, ndim 1, dtype family float — 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

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 7 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.

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-23.

Repositories linked to this paper

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

Abstract

Proteins are fundamental biological entities mediating key roles in cellular function and disease. This paper introduces a multi-scale graph construction of a protein -- HoloProt -- connecting surface to structure and sequence. The surface captures coarser details of the protein, while sequence as primary component and structure -- comprising secondary and tertiary components -- capture finer details. Our graph encoder then learns a multi-scale representation by allowing each level to integrate the encoding from level(s) below with the graph at that level. We test the learned representation on different tasks, (i.) ligand binding affinity (regression), and (ii.) protein function prediction (classification). On the regression task, contrary to previous methods, our model performs consistently and reliably across different dataset splits, outperforming all baselines on most splits. On the classification task, it achieves a performance close to the top-performing model while using 10x fewer parameters. To improve the memory efficiency of our construction, we segment the multiplex protein surface manifold into molecular superpixels and substitute the surface with these superpixels at little to no performance loss.

For agents

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

get_harvested_code_for_paper("2204.02337")
get_code_for_paper("2204.02337")
have("2204.02337")

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

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

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

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

Connect an agent — have() is free.