SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2305.13338 · 2023

Gene Set Summarization using Large Language Models

arXiv · PDF · Open in the Atlas

Code that ran

3 of 3 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 3 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/2305.13338.json · badge: /api/ran/2305.13338.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
monarch-initiative/talisman canonical (classifier label)
classifier basis: census
3 ran · 0 no recorded run
FunctionStatusWhere it lives
jaccard_index Ran
ran on a synthesized input
monarch-initiative/talisman/src/talisman/evaluation/evaluation_engine.py
code served (permissive licence) · get_code("15f567db8e06a7bc")
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 float, 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
import numpy as np
from typing import List, Optional, Set, Type, Union

# Construct two sets for computing Jaccard index
set_a = {1, 2, 3, 4, 5}
set_b = {3, 4, 5, 6, 7}

ARGS = {
    "a": set_a,
    "b": set_b,
}
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 float, 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
parse_gene_set Ran
ran on a synthesized input
monarch-initiative/talisman/src/talisman/utils/gene_set_utils.py
code served (permissive licence) · get_code("eee49805ef82e2ef")
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 GeneSet. 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

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

# Create a YAML format gene set file
yaml_file = os.path.join(temp_dir, "test_geneset.yaml")
with open(yaml_file, 'w') as f:
    f.write("""name: TestGeneSet
gene_symbols:
  - BRCA1
  - TP53
  - EGFR
taxon: human
description: Test gene set
source: test_source
""")

# Create a JSON/MSigDB format gene set file
json_file = os.path.join(temp_dir, "test_msigdb.json")
with open(json_file, 'w') as f:
    f.write("""{
  "HALLMARK_APOPTOSIS": {
    "geneSymbols": ["BAX", "BAK1", "BID", "CASP3"]
  }
}""")

# Create a TXT format gene set file
txt_file = os.path.join(temp_dir, "test_genes.txt")
with open(txt_file, 'w') as f:
    f.write("GENE1\nGENE2\nGENE3\n")

# Create a geneweaver format file (tab-delimited with Wormbase column)
geneweaver_file = os.path.join(temp_dir, "gene_export_geneset.txt")
with open(geneweaver_file, 'w') as f:
    f.write("Gene Symbol\tWormbase\n")
    f.write("daf-2\tWBGene00000898\n")
    f.write("daf-16\tWBGene00000912\n")

ARGS = {
    'input_path': yaml_file,
    'format': 'yaml'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pydantic, yaml — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type GeneSet — a GeneSet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a GeneSet 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
parse_geneweaver Ran
ran on a synthesized input
monarch-initiative/talisman/src/talisman/utils/gene_set_utils.py
code served (permissive licence) · get_code("0b2a96fa35d9d63c")
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 GeneSet. 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 csv
from pathlib import Path
from tempfile import NamedTemporaryFile
import os

# Create a temporary TSV file with the expected format
temp_file = NamedTemporaryFile(mode='w', suffix='.tsv', delete=False)
temp_path = temp_file.name

try:
    # Write header and sample data for Wormbase format
    writer = csv.DictWriter(temp_file, fieldnames=['Gene Symbol', 'Wormbase'], delimiter='\t')
    writer.writeheader()
    writer.writerow({'Gene Symbol': 'daf-2', 'Wormbase': 'WBGene00000912'})
    writer.writerow({'Gene Symbol': 'age-1', 'Wormbase': 'WBGene00000050'})
    temp_file.close()
    
    ARGS = {
        'path': temp_path
    }
finally:
    # Keep the file for execution but ensure cleanup happens after
    pass
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pydantic — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type GeneSet — a GeneSet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a GeneSet 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

Also present in other papers' code

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

Molecular biologists frequently interpret gene lists derived from high-throughput experiments and computational analysis. This is typically done as a statistical enrichment analysis that measures the over- or under-representation of biological function terms associated with genes or their properties, based on curated assertions from a knowledge base (KB) such as the Gene Ontology (GO). Interpreting gene lists can also be framed as a textual summarization task, enabling the use of Large Language Models (LLMs), potentially utilizing scientific texts directly and avoiding reliance on a KB. We developed SPINDOCTOR (Structured Prompt Interpolation of Natural Language Descriptions of Controlled Terms for Ontology Reporting), a method that uses GPT models to perform gene set function summarization as a complement to standard enrichment analysis. This method can use different sources of gene functional information: (1) structured text derived from curated ontological KB annotations, (2) ontology-free narrative gene summaries, or (3) direct model retrieval. We demonstrate that these methods are able to generate plausible and biologically valid summary GO term lists for gene sets. However, GPT-based approaches are unable to deliver reliable scores or p-values and often return terms that are not statistically significant. Crucially, these methods were rarely able to recapitulate the most precise and informative term from standard enrichment, likely due to an inability to generalize and reason using an ontology. Results are highly nondeterministic, with minor variations in prompt resulting in radically different term lists. Our results show that at this point, LLM-based methods are unsuitable as a replacement for standard term enrichment analysis and that manual curation of ontological assertions remains necessary.

For agents

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

get_harvested_code_for_paper("2305.13338")
get_code_for_paper("2305.13338")
have("2305.13338")

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

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

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

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

Connect an agent — have() is free.