SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1904.10337 · 2019

MinCall - MinION end2end convolutional deep learning basecaller

arXiv · PDF · Open in the Atlas

Code that ran

7 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; 0 honoured the contract we drafted, 0 violated it and 7 have no contract verdict; 0 failures of our instrument; 4 no recorded run), measured 2026-11-22; 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/1904.10337.json · badge: /api/ran/1904.10337.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
nmiculinic/minion-basecaller canonical (classifier label)
classifier basis: census
7 ran · 4 no recorded run
FunctionStatusWhere it lives
cigar_c_to_int Ran
ran on a synthesized input
nmiculinic/minion-basecaller/mincall/bioinf_utils.py
code served (permissive licence) · get_code("927b3beb2a1e0952")
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 int, ndim 0, dtype family int, 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 logging

CIGAR_TO_BYTE = {'M': 0, 'I': 1, 'D': 2, 'N': 3, 'S': 4, 'H': 5, 'P': 6, '=': 7, 'X': 8}

def cigar_c_to_int(c):
    ret = CIGAR_TO_BYTE.get(c, None)
    if ret is None:
        logging.error('cigar_c_to_int invalid base %s' % c)
    return ret

ARGS = {
    'c': 'M'
}
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 int, ndim 0, dtype family int, 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
cigar_int_to_c Ran
ran on a synthesized input
nmiculinic/minion-basecaller/mincall/bioinf_utils.py
code served (permissive licence) · get_code("e29d91610ea1d1a3")
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 logging
import torch
import numpy as np

# The function cigar_int_to_c takes a single parameter 'b' which is used as:
# 1. A key lookup in BYTE_TO_CIGAR dictionary (expects an integer)
# 2. Formatted in a logging error message with %d (expects an integer)

# Valid test cases:
# - b = 0 (valid, maps to 'M')
# - b = 7 (valid, maps to '=')
# - b = 9 (invalid, not in BYTE_TO_CIGAR, should trigger error logging)

ARGS = {
    'b': 0
}
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 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
cigar_pairs_to_str Ran
ran on a synthesized input
nmiculinic/minion-basecaller/mincall/bioinf_utils.py
code served (permissive licence) · get_code("4524dc6969e757f2")
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 logging

CIGAR_TO_BYTE = {'M': 0, 'I': 1, 'D': 2, 'N': 3, 'S': 4, 'H': 5, 'P': 6, '=': 7, 'X': 8}

BYTE_TO_CIGAR = {v: k for k, v in CIGAR_TO_BYTE.items()}

def cigar_int_to_c(b):
    ret = BYTE_TO_CIGAR.get(b, None)
    if ret is None:
        logging.error('cigar_int_to_c invalid byte %d' % b)
    return ret

def cigar_pairs_to_str(cigar_pairs, mode='ints'):
    if mode == 'ints':
        convert = cigar_int_to_c
    elif mode == 'chars':
        convert = lambda x: x
    else:
        raise ValueError('Invalid mode argument. Expected ints or chars')
    cigar = ('%d%s' % (cnt, convert(b)) for b, cnt in cigar_pairs)
    return ''.join(cigar)


# Setup code
cigar_pairs_ints = [(0, 5), (1, 3), (2, 7)]
cigar_pairs_chars = [('M', 5), ('I', 3), ('D', 7)]

ARGS = {
    'cigar_pairs': cigar_pairs_ints,
    'mode': 'ints'
}
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
load_model_parms Ran
ran on a synthesized input
nmiculinic/minion-basecaller/mincall/legacy/model_utils.py
code served (permissive licence) · get_code("d26e15bc284b9688")
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 sys
import os
import json
import tempfile
import importlib.util

# Create a temporary module that will be imported
temp_module_code = """
def model_setup_params(hyper):
    return {
        'learning_rate': hyper.get('lr', 0.001),
        'batch_size': hyper.get('batch_size', 32),
        'epochs': hyper.get('epochs', 10),
        'model_name': hyper.get('model_name', 'test_model')
    }
"""

# Create temporary directory structure
temp_dir = tempfile.mkdtemp()
model_subdir = os.path.join(temp_dir, 'test_model_run')
os.makedirs(model_subdir, exist_ok=True)

# Write the hyperparams JSON file
hyperparams = {
    'lr': 0.002,
    'batch_size': 64,
    'epochs': 20,
    'model_name': 'custom_model'
}
with open(os.path.join(model_subdir, 'model_hyperparams.json'), 'w') as f:
    json.dump(hyperparams, f)

# Create and register the temporary module
temp_module_path = os.path.join(temp_dir, 'test_module.py')
with open(temp_module_path, 'w') as f:
    f.write(temp_module_code)

spec = importlib.util.spec_from_file_location('test_model_module', temp_module_path)
test_module = importlib.util.module_from_spec(spec)
sys.modules['test_model_module'] = test_module
spec.loader.exec_module(test_module)

ARGS = {
    'module_name': 'test_model_module',
    'model_dir': model_subdir
}
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 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
next_num Ran
ran on a synthesized input
nmiculinic/minion-basecaller/mincall/util.py
code served (permissive licence) · get_code("7c01ed179ee119b1")
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

# The function next_num takes two parameters:
# - prev: a previous symbol (string)
# - symbol: a current symbol (string, one of 'A', 'G', 'T', 'C')

ARGS = {
    'prev': 'A',
    'symbol': 'G'
}
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 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
read_fasta Ran
ran on a synthesized input
nmiculinic/minion-basecaller/mincall/util.py
code served (permissive licence) · get_code("711be46a8370d9d4")
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 io

# Create a file-like object with FASTA format content
fasta_content = """>sequence_1
ATCGATCGATCG
ATCGATCGATCG
>sequence_2
GCTAGCTAGCTA
GCTAGCTAGCTA
"""

fasta_file = io.StringIO(fasta_content)

ARGS = {
    'fp': fasta_file
}
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
running_mean Ran
ran on a synthesized input
nmiculinic/minion-basecaller/mincall/ops.py
code served (permissive licence) · get_code("463016aa90518207")
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 EagerTensor, 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 tensorflow as tf
import numpy as np

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

# Create a small tensor with shape (max_len, batch_size, num_classes)
# max_len=5, batch_size=2, num_classes=3
net = tf.random.normal([5, 2, 3], dtype=tf.float32)

# Define sizes for running mean windows
sizes = [2, 3]

# Define penalties for each size
penalties = [0.5, 0.3]

# Number of output classes
out_classes = 3

# Optional name parameter
name = "test_running_mean"

ARGS = {
    "net": net,
    "sizes": sizes,
    "penalties": penalties,
    "out_classes": out_classes,
    "name": name,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, 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
decode Not yet run
unverified (harvested, no recorded run)
nmiculinic/minion-basecaller/mincall/util.py
code served (permissive licence) · get_code("e25051fd015f60d2")
How it ran

no invocation recorded.

default_lr_fn Not yet run
unverified (harvested, no recorded run)
nmiculinic/minion-basecaller/mincall/legacy/model_utils.py
code served (permissive licence) · get_code("6b1d3f7705562f99")
How it ran

no invocation recorded.

read_fast5_signal Not yet run
unverified (harvested, no recorded run)
nmiculinic/minion-basecaller/mincall/_experiments/plot_fast5_raw.py
code served (permissive licence) · get_code("33a3a63c2f74c6d5")
How it ran

no invocation recorded.

read_model_vars Not yet run
unverified (harvested, no recorded run)
nmiculinic/minion-basecaller/mincall/ops.py
code served (permissive licence) · get_code("8fcfa55267a2048e")
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-22.

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 Oxford Nanopore Technologies's MinION is the first portable DNA sequencing device. It is capable of producing long reads, over 100 kBp were reported. However, it has significantly higher error rate than other methods. In this study, we present MinCall, an end2end basecaller model for the MinION. The model is based on deep learning and uses convolutional neural networks (CNN) in its implementation. For extra performance, it uses cutting edge deep learning techniques and architectures, batch normalization and Connectionist Temporal Classification (CTC) loss. The best performing deep learning model achieves 91.4% median match rate on E. Coli dataset using R9 pore chemistry and 1D reads.

For agents

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

get_harvested_code_for_paper("1904.10337")
get_code_for_paper("1904.10337")
have("1904.10337")

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

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

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

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

Connect an agent — have() is free.