SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2311.04678 · 2023

Weakly supervised cross-modal learning in high-content screening

arXiv · PDF · Open in the Atlas

Code that ran

9 of 11 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; 3 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 6 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/2311.04678.json · badge: /api/ran/2311.04678.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
gwatkinson/jump_download canonical (classifier label)
classifier basis: census
9 ran · 2 no recorded run
FunctionStatusWhere it lives
check_df Ran
ran, honoured the contract we drafted
gwatkinson/jump_download/jump_download/sanity_check.py
code served (permissive licence) · get_code("72fe65d9283f5aea")
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 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 tempfile
import pandas as pd
from pathlib import Path

# Create temporary directory and files for testing
temp_dir = tempfile.mkdtemp()

# Create dummy files that will be referenced in the parquet file
dummy_files = []
for i in range(5):
    file_path = Path(temp_dir) / f"file_{i}.tif"
    file_path.touch()
    dummy_files.append(str(file_path))

# Create a non-existent file path for testing missing files
missing_file = str(Path(temp_dir) / "missing_file.tif")

# Create a parquet file with the required column structure
data = {
    'FileName_OrigDNA': [dummy_files[0], missing_file],
    'FileName_OrigAGP': [dummy_files[1], dummy_files[1]],
    'FileName_OrigER': [dummy_files[2], dummy_files[2]],
    'FileName_OrigMito': [dummy_files[3], dummy_files[3]],
    'FileName_OrigRNA': [dummy_files[4], missing_file],
}

df = pd.DataFrame(data)
parquet_path = Path(temp_dir) / "test_data.parquet"
df.to_parquet(parquet_path)

ARGS = {
    'df_path': str(parquet_path)
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — 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 int — 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
download_objects_from_paths Ran
ran; our contract draft was wrong, not the code
gwatkinson/jump_download/jump_download/sanity_check.py
code served (permissive licence) · get_code("57653675f0d31814")
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 pandas as pd
import tempfile
from pathlib import Path

# Create temporary parquet files for testing
temp_dir = tempfile.mkdtemp()

# Create a simple parquet file with the expected columns
df1_data = {
    'FileName_OrigDNA': ['/tmp/file1.tif'],
    'FileName_OrigAGP': ['/tmp/file2.tif'],
    'FileName_OrigER': ['/tmp/file3.tif'],
    'FileName_OrigMito': ['/tmp/file4.tif'],
    'FileName_OrigRNA': ['/tmp/file5.tif']
}
df1 = pd.DataFrame(df1_data)
parquet_path1 = Path(temp_dir) / "test1.parquet"
df1.to_parquet(parquet_path1)

# Create another parquet file
df2_data = {
    'FileName_OrigDNA': ['/tmp/file6.tif'],
    'FileName_OrigAGP': ['/tmp/file7.tif'],
    'FileName_OrigER': ['/tmp/file8.tif'],
    'FileName_OrigMito': ['/tmp/file9.tif'],
    'FileName_OrigRNA': ['/tmp/file10.tif']
}
df2 = pd.DataFrame(df2_data)
parquet_path2 = Path(temp_dir) / "test2.parquet"
df2.to_parquet(parquet_path2)

# Create the paths list for the function
paths = [str(parquet_path1), str(parquet_path2)]

ARGS = {
    'paths': paths,
    'max_workers': 2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas, tqdm — 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
get_otsu_threshold Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
gwatkinson/jump_download/jump_download/utils.py
code served (permissive licence) · get_code("2f978a1a12efa072")
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 torch
import numpy as np
from skimage.filters import threshold_otsu

torch.manual_seed(0)

# Create a small test image array
# The function expects a numpy array-like object that:
# - supports comparison operations (img_arr > threshold)
# - supports .sum() and .size attributes
# - is compatible with threshold_otsu from skimage

img_arr = np.random.rand(4, 3).astype(np.float32) * 255
img_arr = img_arr.astype(np.uint8)

nbins = 256

ARGS = {
    "img_arr": img_arr,
    "nbins": nbins
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, skimage, torch — 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
recreate_submission Ran
ran; our contract draft was wrong, not the code
gwatkinson/jump_download/jump_download/create_jobs/recreate_submission.py
code served (permissive licence) · get_code("417ff230e8f4e3d2")
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 DataFrame. 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
from pathlib import Path
import pandas as pd

# Create temporary directories for testing
temp_dir = tempfile.mkdtemp()
jobs_dir = os.path.join(temp_dir, 'jobs')
final_dir = os.path.join(temp_dir, 'final')
os.makedirs(jobs_dir, exist_ok=True)
os.makedirs(os.path.join(final_dir, 'final'), exist_ok=True)

# Create a submission.csv file with some file paths
submission_data = pd.DataFrame({
    'file': [
        'job_001.parquet',
        'job_002.parquet',
        'job_003.parquet',
        'job_004.parquet',
        'job_005.parquet'
    ]
})
submission_data.to_csv(os.path.join(jobs_dir, 'submission.csv'), header=False, index=False)

# Create some finished parquet files in the final directory
# Simulate that some jobs have been completed
finished_jobs = ['job_001.parquet', 'job_003.parquet']
for job in finished_jobs:
    Path(os.path.join(final_dir, 'final', job)).touch()

ARGS = {
    'jobs_dir': jobs_dir,
    'final_dir': final_dir,
    'file_name': 'submissions_left.csv'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 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
robust_convert_to_8bit Ran
ran, honoured the contract we drafted
gwatkinson/jump_download/jump_download/utils.py
code served (permissive licence) · get_code("4cd43a7dbdb7bb19")
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 (4, 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 sample image array with various values
np.random.seed(0)
img = np.random.rand(4, 3) * 100  # Random values between 0 and 100

# Define arguments for robust_convert_to_8bit
ARGS = {
    "img": img,
    "percentile": 1.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 2, dtype family int, shape (4, 3) — shape (4, 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
sample_compound Ran
ran; our contract draft was wrong, not the code
gwatkinson/jump_download/jump_download/create_jobs/sample_load_data.py
code served (permissive licence) · get_code("68e3ea9e68e31293")
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 pandas as pd
import numpy as np

# Create a minimal load_data DataFrame with all required columns
np.random.seed(0)
n_rows = 100

load_data = pd.DataFrame({
    'id': range(n_rows),
    'drop_sample': [False] * n_rows,
    'Metadata_PlateType': ['COMPOUND'] * n_rows,
    'Metadata_Source': np.random.choice(['source_A', 'source_B'], n_rows),
    'Metadata_Batch': np.random.choice(['batch_1', 'batch_2'], n_rows),
    'Metadata_Plate': np.random.choice(['plate_1', 'plate_2', 'plate_3'], n_rows),
    'Metadata_Well': np.random.choice(['A1', 'A2', 'B1', 'B2'], n_rows),
    'Metadata_InChI': [f'InChI_{i}' for i in range(n_rows)],
})

# Assign some rows to be positive controls, negative controls, and treatments
pos_control_indices = np.random.choice(n_rows, 10, replace=False)
neg_control_indices = np.random.choice(np.setdiff1d(np.arange(n_rows), pos_control_indices), 10, replace=False)

load_data.loc[pos_control_indices, 'Metadata_InChI'] = 'POS_CONTROL_1'
load_data.loc[neg_control_indices, 'Metadata_InChI'] = 'NEG_CONTROL_1'

positive_controls = ['POS_CONTROL_1']
negative_controls = ['NEG_CONTROL_1']
neg_per_well = 2
pos_per_well = 2
trt_per_well = 3
pert_to_drop = None
filter_var = 'Metadata_InChI'
sample_per_source = True

ARGS = {
    'load_data': load_data,
    'positive_controls': positive_controls,
    'negative_controls': negative_controls,
    'neg_per_well': neg_per_well,
    'pos_per_well': pos_per_well,
    'trt_per_well': trt_per_well,
    'pert_to_drop': pert_to_drop,
    'filter_var': filter_var,
    'sample_per_source': sample_per_source,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, tqdm — 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
sample_from_load_data Ran
ran; our contract draft was wrong, not the code
gwatkinson/jump_download/jump_download/create_jobs/sample_load_data.py
code served (permissive licence) · get_code("1a819608503045cc")
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 pandas as pd
import numpy as np

# Create a sample load_data dataframe
np.random.seed(0)
n_rows = 100

load_data = pd.DataFrame({
    'id': range(n_rows),
    'drop_sample': [False] * n_rows,
    'inchi': np.random.choice(['inchi_1', 'inchi_2', 'inchi_3', 'pos_control_1', 'neg_control_1'], n_rows),
    'jcp2022': np.random.choice(['jcp_1', 'jcp_2', 'jcp_3', 'pos_jcp', 'neg_jcp'], n_rows),
    'Metadata_PlateType': np.random.choice(['384PP', '96PP'], n_rows),
    'Metadata_Source': np.random.choice(['source_A', 'source_B'], n_rows),
    'Metadata_Batch': np.random.choice(['batch_1', 'batch_2'], n_rows),
    'Metadata_Plate': np.random.choice(['plate_1', 'plate_2', 'plate_3'], n_rows),
    'Metadata_Well': [f'A{i%12+1}' for i in range(n_rows)],
})

ARGS = {
    'load_data': load_data,
    'plate_type': '384PP',
    'positive_controls': ['pos_control_1', 'pos_jcp'],
    'negative_controls': ['neg_control_1', 'neg_jcp'],
    'neg_per_well': 2,
    'pos_per_well': 2,
    'trt_per_well': 3,
    'filter_var': 'inchi',
    'pert_to_drop': ['inchi_3'],
    'sample_per_source': False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, tqdm — 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
simple_convert_to_8bit Ran
ran, honoured the contract we drafted
gwatkinson/jump_download/jump_download/utils.py
code served (permissive licence) · get_code("2fe1d98a98a117d5")
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 (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 numpy as np

# The function simple_convert_to_8bit expects:
# - img: a numpy array that will be divided by 256 and converted to uint8

# Create a small test image as a numpy array
# Using values larger than 256 so the division by 256 produces meaningful results
img = np.array([[256, 512, 768, 1024],
                [1280, 1536, 1792, 2048]], dtype=np.int32)

ARGS = {
    "img": img
}
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 (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
source_and_plate_filter Ran
ran; our contract draft was wrong, not the code
gwatkinson/jump_download/jump_download/create_jobs/sample_load_data.py
code served (permissive licence) · get_code("d8ed3e88d2c463c8")
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 DataFrame. 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 pandas as pd
import numpy as np

# Create a sample DataFrame with the required metadata columns
load_data = pd.DataFrame({
    'Metadata_Source': ['source_A', 'source_B', 'source_A', 'source_C', 'source_B'],
    'Metadata_Batch': ['batch_1', 'batch_1', 'batch_2', 'batch_2', 'batch_3'],
    'Metadata_Plate': ['plate_1', 'plate_2', 'plate_1', 'plate_3', 'plate_2'],
    'Metadata_Well': ['A1', 'A2', 'B1', 'B2', 'C1'],
    'Metadata_Site': ['site_1', 'site_1', 'site_2', 'site_1', 'site_2'],
    'Metadata_PlateType': ['96well', '384well', '96well', '384well', '96well'],
    '_merge': ['both', 'both', 'both', 'left_only', 'both']
})

plate_types_to_keep = ['96well', '384well']
sources_to_exclude = ['source_C']

ARGS = {
    'load_data': load_data,
    'plate_types_to_keep': plate_types_to_keep,
    'sources_to_exclude': sources_to_exclude
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 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
file_exists Not yet run
unverified (harvested, no recorded run)
gwatkinson/jump_download/jump_download/sanity_check.py
code served (permissive licence) · get_code("fa041abf8807401e")
How it ran

no invocation recorded.

get_metadata_df Not yet run
unverified (harvested, no recorded run)
gwatkinson/jump_download/jump_download/metadata/download_jump_metadata.py
code served (permissive licence) · get_code("dca1823712418707")
How it ran

no invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 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 11 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

With the surge in available data from various modalities, there is a growing need to bridge the gap between different data types. In this work, we introduce a novel approach to learn cross-modal representations between image data and molecular representations for drug discovery. We propose EMM and IMM, two innovative loss functions built on top of CLIP that leverage weak supervision and cross sites replicates in High-Content Screening. Evaluating our model against known baseline on cross-modal retrieval, we show that our proposed approach allows to learn better representations and mitigate batch effect. In addition, we also present a preprocessing method for the JUMP-CP dataset that effectively reduce the required space from 85Tb to a mere usable 7Tb size, still retaining all perturbations and most of the information content.

For agents

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

get_harvested_code_for_paper("2311.04678")
get_code_for_paper("2311.04678")
have("2311.04678")

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

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

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

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

Connect an agent — have() is free.