SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2306.03117 · ICLR · 2024

Str2Str: A Score-based Framework for Zero-shot Protein Conformation Sampling

Jian Tang, Zuobai Zhang, Jiarui Lu, Bozitao Zhong

arXiv · PDF · Open in the Atlas

Code that ran

22 of 24 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 11 have no contract verdict; 11 failures of our instrument; 2 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/2306.03117.json · badge: /api/ran/2306.03117.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
lujiarui/Str2Str canonical (classifier label)
classifier basis: census
22 ran · 2 no recorded run
FunctionStatusWhere it lives
adjacent_ca_distance Ran
ran on a synthesized input
lujiarui/Str2Str/src/metrics/metrics.py
code served (permissive licence) · get_code("856e610be8ee89d4")
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 (3,) 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 a 2D coordinate array (L, 3) for a single chain of CA atoms
# L=4 atoms, each with 3D coordinates
coords_2d = np.array([
    [1.0, 2.0, 3.0],
    [4.0, 5.0, 6.0],
    [7.0, 8.0, 9.0],
    [10.0, 11.0, 12.0]
], dtype=np.float32)

ARGS = {
    "coords": coords_2d
}
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 (3,) — shape (3,) 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
cast_to_64bit_ints Ran
ran on a synthesized input
lujiarui/Str2Str/src/common/data_transforms.py
code served (permissive licence) · get_code("b76df65cb485a1dd")
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 dict. 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

torch.manual_seed(0)

# Create a protein dictionary with mixed int32 and int64 tensors
protein = {
    "seq_length": torch.tensor([10, 20], dtype=torch.int32),
    "atom_positions": torch.tensor([[1, 2, 3, 4], [5, 6, 7, 8]], dtype=torch.int32),
    "already_int64": torch.tensor([[100, 200], [300, 400]], dtype=torch.int64),
    "float_data": torch.tensor([[1.5, 2.5, 3.5], [4.5, 5.5, 6.5]], dtype=torch.float32),
}

ARGS = {
    "protein": protein
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
chi_angle_atom Ran
ran on a synthesized input
lujiarui/Str2Str/src/common/residue_constants.py
code served (permissive licence) · get_code("ecc8098ecd6f4746")
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 3, dtype family float, shape (21, 37, 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

ARGS = {
    'atom_index': 0
}
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 3, dtype family float, shape (21, 37, 4) — shape (21, 37, 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
dihedral Ran
ran; our contract draft was wrong, not the code
lujiarui/Str2Str/src/common/geo_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from lujiarui/esmdiff, is pointer only (licence: NOASSERTION) · get_code("f199987a1f0ff137")
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 lujiarui/esmdiff, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

distance Ran
ran; our contract draft was wrong, not the code
lujiarui/Str2Str/src/common/geo_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from lujiarui/esmdiff, is pointer only (licence: NOASSERTION) · get_code("d1caaec311724c12")
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 lujiarui/esmdiff, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

distance_matrix_ca Ran
ran on a synthesized input
lujiarui/Str2Str/src/metrics/metrics.py
code served (permissive licence) · get_code("e84fc04d3c204b45")
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 2, dtype family float, shape (4, 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 a small CA coordinate array
# Shape: (L, 3) where L is number of CA atoms and 3 is x,y,z coordinates
coords_2d = np.random.randn(4, 3).astype(np.float32)

ARGS = {
    "coords": coords_2d
}
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 2, dtype family float, shape (4, 4) — shape (4, 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
euler_angles_to_matrix Ran
ran; our contract draft was wrong, not the code
lujiarui/Str2Str/src/common/rotation3d.py
code served (permissive licence) · get_code("97dae9745013aa60")
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 3, dtype family float, shape (2, 3, 3) 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)

# Create a small euler angles tensor of shape (2, 3)
# Each row contains 3 euler angles (one for each axis)
euler_angles = torch.randn(2, 3)

# Valid convention strings must have 3 letters from {X, Y, Z}
# where the middle letter is different from first and third
convention = "XYZ"

ARGS = {
    "euler_angles": euler_angles,
    "convention": convention,
}
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 3, dtype family float, shape (2, 3, 3) — shape (2, 3, 3) 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
identity_rot_mats Ran
ran; our contract draft was wrong, not the code
lujiarui/Str2Str/src/common/rigid_utils.py
code served (permissive licence) · get_code("9d856f853a62747f")
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 4, dtype family float, shape (2, 3, 3, 3) 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)

ARGS = {
    "batch_dims": (2, 3),
    "dtype": torch.float32,
    "device": torch.device("cpu"),
    "requires_grad": 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 Tensor, ndim 4, dtype family float, shape (2, 3, 3, 3) — shape (2, 3, 3, 3) 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
make_one_hot Ran
ran on a synthesized input
lujiarui/Str2Str/src/common/data_transforms.py
code served (permissive licence) · get_code("68d0ff89dbb1e05b")
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 3, dtype family float, shape (2, 4, 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)

# Create a small tensor with class indices
# Shape: (2, 4) - batch of 2, 4 positions
x = torch.tensor([[0, 1, 2, 1],
                   [3, 0, 1, 2]], dtype=torch.long)

# Number of classes
num_classes = 4

ARGS = {
    "x": x,
    "num_classes": num_classes
}
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 3, dtype family float, shape (2, 4, 4) — shape (2, 4, 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
make_seq_mask Ran
ran on a synthesized input
lujiarui/Str2Str/src/common/data_transforms.py
code served (permissive licence) · get_code("e7921e51b2d4316f")
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 dict. 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

torch.manual_seed(0)

# The function expects a dict with 'aatype' key containing a tensor
# It will create a 'seq_mask' based on the shape of 'aatype'
protein = {
    'aatype': torch.randint(0, 20, (2, 4), dtype=torch.int32)
}

ARGS = {
    'protein': protein
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
matrix_to_quaternion Ran
ran; our contract draft was wrong, not the code
lujiarui/Str2Str/src/common/rotation3d.py
code served (permissive licence) · get_code("50d2fff01c986a3b")
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)

# Create a valid rotation matrix of shape (2, 3, 3)
# A rotation matrix must be orthogonal with determinant 1
# For simplicity, use identity matrices scaled appropriately
matrix = torch.tensor([
    [[1.0, 0.0, 0.0],
     [0.0, 1.0, 0.0],
     [0.0, 0.0, 1.0]],
    [[0.9239, -0.3827, 0.0],
     [0.3827, 0.9239, 0.0],
     [0.0, 0.0, 1.0]]
], dtype=torch.float32)

ARGS = {
    "matrix": matrix,
}
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
pairwise_distance_ca Ran
ran on a synthesized input
lujiarui/Str2Str/src/metrics/metrics.py
code served (permissive licence) · get_code("910384add37bc7d9")
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 (6,) 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 sample CA coordinates
# Shape (L, 3) for a single chain
coords_2d = np.array([
    [1.0, 2.0, 3.0],
    [4.0, 5.0, 6.0],
    [7.0, 8.0, 9.0],
    [10.0, 11.0, 12.0]
], dtype=np.float32)

# Shape (B, L, 3) for batched coordinates
coords_3d = np.array([
    [[1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [7.0, 8.0, 9.0], [10.0, 11.0, 12.0]],
    [[2.0, 3.0, 4.0], [5.0, 6.0, 7.0], [8.0, 9.0, 10.0], [11.0, 12.0, 13.0]]
], dtype=np.float32)

ARGS = {
    "coords": coords_2d,
    "k": 1
}
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 (6,) — shape (6,) 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
quaternion_to_matrix Ran
ran; our contract draft was wrong, not the code
lujiarui/Str2Str/src/common/rotation3d.py
code served (permissive licence) · get_code("e0238352153c0549")
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 3, dtype family float, shape (2, 3, 3) 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)

# Create valid quaternions with real part first
# Shape: (2, 4) - batch of 2 quaternions, each with 4 components (r, i, j, k)
quaternions = torch.tensor([
    [1.0, 0.0, 0.0, 0.0],  # identity quaternion
    [0.7071, 0.7071, 0.0, 0.0]  # 90 degree rotation around x-axis
], dtype=torch.float32)

# Normalize to ensure valid quaternions
quaternions = quaternions / torch.norm(quaternions, dim=-1, keepdim=True)

ARGS = {
    "quaternions": quaternions
}
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 3, dtype family float, shape (2, 3, 3) — shape (2, 3, 3) 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
read_pdb_to_string Ran
ran on a synthesized input
lujiarui/Str2Str/src/common/pdb_utils.py
code served (permissive licence) · get_code("b1557091b069dc8a")
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 tempfile
import os

# Create a temporary PDB file with valid content
temp_dir = tempfile.mkdtemp()
pdb_file_path = os.path.join(temp_dir, "test.pdb")

pdb_content = """MODEL        1
ATOM      1  N   ALA A   1       0.000   0.000   0.000  1.00  0.00           N
ATOM      2  CA  ALA A   1       1.458   0.000   0.000  1.00  0.00           C
ATOM      3  C   ALA A   1       2.009   1.420   0.000  1.00  0.00           C
TER
END
"""

with open(pdb_file_path, 'w') as f:
    f.write(pdb_content)

ARGS = {
    'pdb_file': pdb_file_path
}
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 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
rot_matmul Ran
ran; our contract draft was wrong, not the code
lujiarui/Str2Str/src/common/rigid_utils.py
code served (permissive licence) · get_code("2e879b992afd2e24")
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 3, dtype family float, shape (2, 3, 3) 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)

# Create two rotation matrices with shape [batch, 3, 3]
# Using batch size 2 for testing
a = torch.randn(2, 3, 3)
b = torch.randn(2, 3, 3)

ARGS = {
    "a": a,
    "b": b,
}
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 3, dtype family float, shape (2, 3, 3) — shape (2, 3, 3) 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
rot_vec_mul Ran
ran; our contract draft was wrong, not the code
lujiarui/Str2Str/src/common/rigid_utils.py
code served (permissive licence) · get_code("8f2b10d716763add")
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, 3) 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)

# Create rotation matrices: shape [2, 3, 3]
# Batch size 2, each element is a 3x3 rotation matrix
r = torch.eye(3).unsqueeze(0).repeat(2, 1, 1)
# Add some rotation by modifying slightly
r[0] = torch.tensor([[0.866, -0.5, 0.0],
                     [0.5, 0.866, 0.0],
                     [0.0, 0.0, 1.0]])
r[1] = torch.tensor([[1.0, 0.0, 0.0],
                     [0.0, 0.866, -0.5],
                     [0.0, 0.5, 0.866]])

# Create coordinate vectors: shape [2, 3]
# Batch size 2, each vector has 3 coordinates
t = torch.tensor([[1.0, 2.0, 3.0],
                  [4.0, 5.0, 6.0]])

ARGS = {
    "r": r,
    "t": t,
}
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, 3) — shape (2, 3) 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
rots_mul_vecs Ran
ran; our contract draft was wrong, not the code
lujiarui/Str2Str/src/common/geo_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from lujiarui/esmdiff, is pointer only (licence: NOASSERTION) · get_code("d3e5669be2ccbba5")
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 lujiarui/esmdiff, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

sequence_to_onehot Ran
ran on a synthesized input
lujiarui/Str2Str/src/common/residue_constants.py
code served (permissive licence) · get_code("35fa5e610a62edb5")
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 2, dtype family int, shape (20, 21) 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
from typing import Mapping

# Create a mapping for amino acids to integers
# Standard 20 amino acids + X (unknown)
mapping = {
    'A': 0, 'C': 1, 'D': 2, 'E': 3, 'F': 4,
    'G': 5, 'H': 6, 'I': 7, 'K': 8, 'L': 9,
    'M': 10, 'N': 11, 'P': 12, 'Q': 13, 'R': 14,
    'S': 15, 'T': 16, 'V': 17, 'W': 18, 'Y': 19,
    'X': 20
}

# Define the arguments
ARGS = {
    'sequence': 'ACDEFGHIKLMNPQRSTVWY',
    'mapping': mapping,
    'map_unknown_to_x': False
}
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 2, dtype family int, shape (20, 21) — shape (20, 21) 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
sigmoid_cross_entropy Ran
ran on a synthesized input
lujiarui/Str2Str/src/models/loss.py
code served (permissive licence) · get_code("15326c79adab79b0")
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)

# Create small tensors for logits and labels
batch_size = 2
num_classes = 4

logits = torch.randn(batch_size, num_classes)
labels = torch.randint(0, 2, (batch_size, num_classes)).float()

ARGS = {
    "logits": logits,
    "labels": labels,
}
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
softmax_cross_entropy Ran
ran; our contract draft was wrong, not the code
lujiarui/Str2Str/src/models/loss.py
code served (permissive licence) · get_code("f3ea8d22a1778541")
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 1, dtype family float, shape (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)

# Create logits: shape (batch_size=2, num_classes=4)
logits = torch.randn(2, 4)

# Create labels: shape (batch_size=2, num_classes=4)
# Labels should be probability distributions (sum to 1 along last dim)
labels = torch.nn.functional.softmax(torch.randn(2, 4), dim=-1)

ARGS = {
    "logits": logits,
    "labels": labels,
}
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 1, dtype family float, shape (2,) — shape (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
split_pdbfile Ran
ran on a synthesized input
lujiarui/Str2Str/src/common/pdb_utils.py
code served (permissive licence) · get_code("874dfea9f59cccc3")
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 os
import tempfile

# Create a temporary directory and a sample PDB file
temp_dir = tempfile.mkdtemp()
pdb_file_path = os.path.join(temp_dir, "test.pdb")

# Create a valid PDB file with multiple models
pdb_content = """MODEL        1
ATOM      1  N   ALA A   1      10.000  20.000  30.000  1.00  0.00           N
ATOM      2  CA  ALA A   1      11.000  21.000  31.000  1.00  0.00           C
TER
ENDMDL
MODEL        2
ATOM      3  N   ALA A   1      12.000  22.000  32.000  1.00  0.00           N
ATOM      4  CA  ALA A   1      13.000  23.000  33.000  1.00  0.00           C
TER
ENDMDL
END
"""

with open(pdb_file_path, 'w') as f:
    f.write(pdb_content)

# Create output directory for split PDB files
output_dir = os.path.join(temp_dir, "output")

ARGS = {
    'pdb_file': pdb_file_path,
    'output_dir': output_dir,
    'suffix': 'index',
    'verbose': True
}
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 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
torsion_angle_loss Ran
ran; our contract draft was wrong, not the code
lujiarui/Str2Str/src/models/loss.py
code served (permissive licence) · get_code("3e97deab6d7d9366")
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 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)

# Create small tensors with distinct shapes for clarity
# a: predicted angles, shape (batch=2, seq_len=3, angle_dim=4)
a = torch.randn(2, 3, 4)

# a_gt: ground truth angles, same shape as a
a_gt = torch.randn(2, 3, 4)

# a_alt_gt: alternative ground truth angles, same shape as a
a_alt_gt = torch.randn(2, 3, 4)

ARGS = {
    "a": a,
    "a_gt": a_gt,
    "a_alt_gt": a_alt_gt,
}
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 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
load_model_checkpoint Not yet run
unverified (harvested, no recorded run)
lujiarui/Str2Str/src/utils/checkpoint_utils.py
code served (permissive licence) · get_code("b0920535d36bde78")
How it ran

no invocation recorded.

make_atom14_dists_bounds Not yet run
unverified (harvested, no recorded run)
lujiarui/Str2Str/src/common/residue_constants.py
code served (permissive licence) · get_code("fb537d8922261d67")
How it ran

no invocation recorded.

Also present in other papers' code

Of 24 samples lifted from this paper's linked repositories, 24 carry a function identity and 0 do not. Of the 24 distinct functions with an identity, 11 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 0 the same month, 11 later) and 13 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
matrix_to_quaternion 4 other papers
1 dated earlier, 3 later
2303.12787 (2023-03)
EPro-PnP: Generalized End-to-End Probabilistic Perspective-n-Points for Monocular Object Pose Estimation
2403.07494 (2024-03)
SemGauss-SLAM: Dense Semantic Gaussian Splatting SLAM
and 1 more not named here
euler_angles_to_matrix 3 other papers
1 dated earlier, 2 later
2303.12787 (2023-03)
EPro-PnP: Generalized End-to-End Probabilistic Perspective-n-Points for Monocular Object Pose Estimation
2404.11735 (2024-04)
Learning with 3D rotations, a hitchhiker's guide to SO(3)
quaternion_to_matrix 3 other papers
1 dated earlier, 2 later
2303.12787 (2023-03)
EPro-PnP: Generalized End-to-End Probabilistic Perspective-n-Points for Monocular Object Pose Estimation
2404.03736 (2024-04)
SC4D: Sparse-Controlled Video-to-4D Generation and Motion Transfer
dihedral 2 other papers
1 dated earlier, 1 later
2302.00203 (2023-02)
End-to-End Full-Atom Antibody Design
2410.18403 (2024-10)
Structure Language Models for Protein Conformation Generation
distance 2 other papers
1 dated earlier, 1 later
2302.00203 (2023-02)
End-to-End Full-Atom Antibody Design
2410.18403 (2024-10)
Structure Language Models for Protein Conformation Generation
identity_rot_mats 1 other paper
1 later
2502.02513 (2025-02)
Diffusion Generative Modeling on Lie Group Representations
rot_matmul 1 other paper
1 later
2502.02513 (2025-02)
Diffusion Generative Modeling on Lie Group Representations
rot_vec_mul 1 other paper
1 later
2502.02513 (2025-02)
Diffusion Generative Modeling on Lie Group Representations
rots_mul_vecs 1 other paper
1 later
2410.18403 (2024-10)
Structure Language Models for Protein Conformation Generation
softmax_cross_entropy 1 other paper
1 later
2402.04845 (2024-02)
AlphaFold Meets Flow Matching for Generating Protein Ensembles
torsion_angle_loss 1 other paper
1 later
2402.04845 (2024-02)
AlphaFold Meets Flow Matching for Generating Protein Ensembles

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

The dynamic nature of proteins is crucial for determining their biological functions and properties, for which Monte Carlo (MC) and molecular dynamics (MD) simulations stand as predominant tools to study such phenomena. By utilizing empirically derived force fields, MC or MD simulations explore the conformational space through numerically evolving the system via Markov chain or Newtonian mechanics. However, the high-energy barrier of the force fields can hamper the exploration of both methods by the rare event, resulting in inadequately sampled ensemble without exhaustive running. Existing learning-based approaches perform direct sampling yet heavily rely on target-specific simulation data for training, which suffers from high data acquisition cost and poor generalizability. Inspired by simulated annealing, we propose STR2STR, a novel structure-to-structure translation framework capable of zero-shot conformation sampling with rototranslation equivariant property. Our method leverages an amortized denoising score matching objective trained on general crystal structures and has no reliance on simulation data during both training and inference. Experimental results across several benchmarking protein systems demonstrate that STR2STR outperforms previous state-of-the-art generative structure prediction models and can be orders of magnitude faster compared to long MD simulations. Our open-source implementation is available at https://github.com/lujiarui/Str2Str.

For agents

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

get_harvested_code_for_paper("2306.03117")
get_code_for_paper("2306.03117")
have("2306.03117")

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

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

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

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

Connect an agent — have() is free.