SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2206.00668 · 2022

Learning to Untangle Genome Assembly with Graph Convolutional Networks

arXiv · PDF · Open in the Atlas

Code that ran

3 of 10 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; 7 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/2206.00668.json · badge: /api/ran/2206.00668.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
lvrcek/gnnome-assembly canonical (classifier label)
classifier basis not recorded on the link
3 ran · 7 no recorded run
FunctionStatusWhere it lives
get_contig_length Ran
ran on a synthesized input
lvrcek/gnnome-assembly/inference.py
code served (permissive licence) · get_code("bc2bea2ba4475310")
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
import torch.nn as nn
import numpy as np

torch.manual_seed(0)

# Create a simple graph object with DGL-like interface
class SimpleGraph:
    def __init__(self):
        # edata stores edge features (prefix_length)
        self.edata = {
            'prefix_length': torch.tensor([5.0, 3.0, 7.0, 2.0])
        }
        # ndata stores node features (read_length)
        self.ndata = {
            'read_length': torch.tensor([10.0, 8.0, 6.0, 4.0])
        }

# Create graph instance
graph = SimpleGraph()

# Create walk: sequence of node indices
# walk[:-1] and walk[1:] will give us pairs for edge lookup
walk = torch.tensor([0, 1, 2, 3])

# Create edges: a 2D tensor/dict-like structure where edges[src, dst] gives edge_id
# We need edges[0, 1], edges[1, 2], edges[2, 3] to be valid
edges = torch.tensor([
    [0, 0, 0, 0],      # row 0: edges from node 0
    [0, 1, 0, 0],      # row 1: edges from node 1 (edge to node 2 is edge_id 1)
    [0, 0, 2, 0],      # row 2: edges from node 2 (edge to node 3 is edge_id 2)
    [0, 0, 0, 3]       # row 3: edges from node 3
], dtype=torch.long)

ARGS = {
    'walk': walk,
    'graph': graph,
    'edges': edges
}
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 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
walk_backwards Ran
ran on a synthesized input
lvrcek/gnnome-assembly/inference.py
code served (permissive licence) · get_code("7734b237c5527287")
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.

import torch

torch.manual_seed(0)

# Analyze the function:
# - start: an integer node identifier
# - edges_p: a tensor that can be indexed with edge indices, supports torch.topk
# - predecessors: a dict-like mapping from node to list of predecessor nodes
# - neighbors: parameter not used in function body
# - edges: a 2D tensor that can be indexed as edges[n, current] to get edge indices
# - visited_old: a set of visited nodes

# Build minimal valid arguments:

# Create a small graph with nodes 0-7 (using XOR trick with node ^ 1)
start = 0

# edges_p: tensor of edge probabilities, indexed by edge_id
# We need enough edges to support indexing from edges tensor
edges_p = torch.randn(20)  # 20 possible edges

# predecessors: dict mapping node_id to list of predecessor node_ids
predecessors = {
    0: [],           # start node has no predecessors
    1: [0],          # node 1 has predecessor 0
    2: [1, 3],       # node 2 has two predecessors
    3: [2],
    4: [],
    5: [4],
    6: [5, 7],
    7: [6],
}

# neighbors: not used in function, can be empty dict
neighbors = {}

# edges: 2D tensor mapping (from_node, to_node) -> edge_id
# Shape should allow indexing edges[n, current]
edges = torch.zeros(8, 8, dtype=torch.long)
edges[0, 1] = 1
edges[3, 2] = 2
edges[1, 2] = 3
edges[2, 3] = 4
edges[4, 5] = 5
edges[7, 6] = 6
edges[5, 6] = 7

# visited_old: set of nodes already visited in previous walks
visited_old = set()

ARGS = {
    "start": start,
    "edges_p": edges_p,
    "predecessors": predecessors,
    "neighbors": neighbors,
    "edges": edges,
    "visited_old": visited_old,
}
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 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
walk_forwards Ran
ran on a synthesized input
lvrcek/gnnome-assembly/inference.py
code served (permissive licence) · get_code("546230dc4cad5690")
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.

import torch

torch.manual_seed(0)

# Build arguments for walk_forwards function
# Analyzing the function:
# - start: an integer node identifier
# - edges_p: a tensor of edge probabilities (indexed by edge IDs)
# - neighbors: dict/list mapping node to list of neighbor nodes
# - predecessors: dict/list mapping node to predecessor (not used in function)
# - edges: a 2D tensor where edges[current, n] gives edge ID
# - visited_old: a set of already visited nodes

# Create a small graph with 4 nodes (0, 1, 2, 3)
start = 0

# edges_p: tensor of probabilities for edges (let's say we have 8 possible edges)
edges_p = torch.tensor([0.1, 0.9, 0.3, 0.7, 0.2, 0.8, 0.4, 0.6], dtype=torch.float32)

# neighbors: adjacency list representation
# node 0 -> [1, 2], node 1 -> [2], node 2 -> [3], node 3 -> []
neighbors = {
    0: [1, 2],
    1: [2],
    2: [3],
    3: []
}

# predecessors: simple mapping (not actually used in function)
predecessors = {
    0: -1,
    1: 0,
    2: 0,
    3: 2
}

# edges: 2D tensor mapping (current, neighbor) pairs to edge indices
# Shape should be large enough to accommodate all node pairs
edges = torch.zeros((4, 4), dtype=torch.long)
edges[0, 1] = 0
edges[0, 2] = 1
edges[1, 2] = 2
edges[2, 3] = 3

# visited_old: set of nodes that were already visited in prior walks
visited_old = set()

ARGS = {
    "start": start,
    "edges_p": edges_p,
    "neighbors": neighbors,
    "predecessors": predecessors,
    "edges": edges,
    "visited_old": visited_old
}
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 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
calculate_N50 Not yet run
unverified (harvested, no recorded run)
lvrcek/gnnome-assembly/evaluate.py
code served (permissive licence) · get_code("cd0df2aaaf7eb6ff")
How it ran

no invocation recorded.

calculate_NG50 Not yet run
unverified (harvested, no recorded run)
lvrcek/gnnome-assembly/evaluate.py
code served (permissive licence) · get_code("6d30f2fa85caa52a")
How it ran

no invocation recorded.

dfs Not yet run
unverified (harvested, no recorded run)
lvrcek/gnnome-assembly/algorithms.py
code served (permissive licence) · get_code("ccbf684acb260268")
How it ran

no invocation recorded.

get_correct_edges Not yet run
unverified (harvested, no recorded run)
lvrcek/gnnome-assembly/algorithms.py
code served (permissive licence) · get_code("d739ae06ace50d26")
How it ran

no invocation recorded.

get_edges Not yet run
unverified (harvested, no recorded run)
lvrcek/gnnome-assembly/graph_parser.py
code served (permissive licence) · get_code("089336c8dc1a6008")
How it ran

no invocation recorded.

get_neighbors Not yet run
unverified (harvested, no recorded run)
lvrcek/gnnome-assembly/graph_parser.py
code served (permissive licence) · get_code("c477bd6fb6e11e89")
How it ran

no invocation recorded.

get_predecessors Not yet run
unverified (harvested, no recorded run)
lvrcek/gnnome-assembly/graph_parser.py
code served (permissive licence) · get_code("45e942f2f82b36b1")
How it ran

no invocation recorded.

Also present in other papers' code

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

A quest to determine the complete sequence of a human DNA from telomere to telomere started three decades ago and was finally completed in 2021. This accomplishment was a result of a tremendous effort of numerous experts who engineered various tools and performed laborious manual inspection to achieve the first gapless genome sequence. However, such method can hardly be used as a general approach to assemble different genomes, especially when the assembly speed is critical given the large amount of data. In this work, we explore a different approach to the central part of the genome assembly task that consists of untangling a large assembly graph from which a genomic sequence needs to be reconstructed. Our main motivation is to reduce human-engineered heuristics and use deep learning to develop more generalizable reconstruction techniques. Precisely, we introduce a new learning framework to train a graph convolutional network to resolve assembly graphs by finding a correct path through them. The training is supervised with a dataset generated from the resolved CHM13 human sequence and tested on assembly graphs built using real human PacBio HiFi reads. Experimental results show that a model, trained on simulated graphs generated solely from a single chromosome, is able to remarkably resolve all other chromosomes. Moreover, the model outperforms hand-crafted heuristics from a state-of-the-art \textit{de novo} assembler on the same graphs. Reconstructed chromosomes with graph networks are more accurate on nucleotide level, report lower number of contigs, higher genome reconstructed fraction and NG50/NGA50 assessment metrics.

For agents

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

get_harvested_code_for_paper("2206.00668")
get_code_for_paper("2206.00668")
have("2206.00668")

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

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

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

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

Connect an agent — have() is free.