Start here
Levels and requirements
Checks and reports
Connect
Docs: Workflow
Start here
Levels and requirements
Checks and reports
Connect
- Home
- Docs
- Requirements
- Workflow
Workflow: what a rerun needs
L2 Rerunnable adds what a rerun needs: pinned versions and identifiers, documented preparation, a result map, instructions that match the repository, controlled randomness.
Applies to: Self-check · RepoReady Platform
Last updated
On this page
- At a glance
- B1 · Dependencies and versions are listed
- B2 · The exact code version is identified
- B3 · Data sources have stable identifiers
- B4 · Data preparation steps are documented
- B5 · Code is linked to the paper’s results
- B6 · Instructions explain how to run the analysis
- B7 · Documented commands agree with the code
- B8 · Machine assumptions documented
- B10 · Randomness of key results is controlled
- G1 · A tidy repository
- G4 · Hardware, tools and versions
- Related
1 missing · 8 of 9 met
- Dependencies and versions are listedMet
- The exact code version is identifiedMet
- Data sources have stable identifiersMissing
- Data preparation steps are documentedMet
- Code is linked to the paper’s resultsMet
- Instructions explain how to run the analysisMet
- Documented commands agree with the codeMet
- Machine assumptions documentedMet
- Randomness of key results is controlledMet
Documentation or automation can supply each item; a pinned workflow that runs with one command counts. Of over 9,000 R files from Harvard Dataverse, 74% failed to complete without error (Trisovic et al., 2022).
Some findings here are Warnings: they point to an improvement and never change the level.
B1Dependencies and versions are listed
- What counts
- A standard file (
requirements.txt,environment.yml,pyproject.toml,renv.lock,DESCRIPTION) lists every imported package with a version. - What it flags
- No dependency file.
- Imported packages missing or without a version.
- A package installed only as another package’s dependency (a Warning).
- How to fix
- Pin the versions from the environment your analysis runs in (lock file, installed packages, notebook metadata), after checking it made the results; update it with the code.
B2The exact code version is identified
- What counts
- The paper cites an immutable version of the code; named forks, models and tools are pinned.
- What it flags
- No version cited: only a branch, a concept DOI or a tag that does not exist.
- Result code only on the default branch, not in the cited version.
- A fork, repository or model without a fixed tag, commit or revision.
- A tool version the pins, lock file or logs contradict.
- How to fix
- Once the submitted version is final, tag and archive it and cite its version DOI (Zenodo can reserve one); pin forks and models to a commit or revision:
git tag -a v1.0-paper -m "Code as submitted with the manuscript"
git push origin v1.0-paperB3Data sources have stable identifiers
- What counts
- Each dataset has an accession, DOI, versioned record or release URL; live services a date; controlled data an access route.
- What it flags
- A dataset named in prose, without accession, DOI or versioned record.
- Data identified only as a supplementary table of an article.
- A changeable link: cloud drive, personal URL, model without a revision.
- Controlled data without an access procedure.
- A placeholder where the identifier belongs.
- A link that resolves to another file.
- How to fix
- List each dataset with source, identifier, version and access in the README (example); pin models; replace personal links.
B4Data preparation steps are documented
- What counts
- Every input that shared code does not produce comes with its steps: tool, version, parameters, manual curation.
- What it flags
- An input no shared code produces: a hand-edited table, deposited processed data, a model without training code.
- Steps described only in prose.
- A file only commented-out code writes.
- How to fix
- Make each step a script or workflow rule, remove or re-enable commented-out steps, describe manual steps exactly:
rule filter_cells:
input: "data/raw/counts.h5ad"
output: "data/processed/filtered.h5ad"
params: min_genes=200
shell: "python -m pipeline.filter {input} {output} --min-genes {params.min_genes}"
rule train_model:
input: "data/processed/filtered.h5ad"
output: "models/classifier.pt"
shell: "python -m pipeline.train {input} {output} --seed 0"B5Code is linked to the paper’s results
- What counts
- A table links each key figure, panel, table and number to the code that computes its values (and to the code that draws it, when that is separate). Plotting code is not required: a figure drawn by hand or in another program is linked once the code behind its values is named.
- What it flags
- No map from results to code.
- A map that skips figures, panels or tables.
- Variant copies of code for one result (
analysis_v2.pybesideanalysis_final.py).
- How to fix
- Add a results table to the README: one row per paper item, the one command that computes its values and the output that holds them:
- Fig. 1bscripts/umap.py:42data/raw/counts.h5ad
- Fig. 2notebooks/figure2.ipynbdata/processed/cells.h5ad
- Fig. 3cNo code foundBlocks L1
Code for each result is available
- Fig. S3scripts/batch_s3.Rdata/batches.csvWarning
Input data can be obtaineda supplementary result is a Warning
- Table 1scripts/evaluate.py:88data/cohort.parquetCaps at L1
PaperAUROC 0.91results/table1.csv0.87
Outputs correspond to the reported results
## Results
| Paper item | Command | Output |
|------------|------------------------------------|---------------------------|
| Figure 2 | Rscript analysis/figure2.R | results/figure2.csv |
| Figure 3B | python -m analysis.fig3 --panel b | results/fig3_panel_b.csv |
| Table 2 | python -m analysis.evaluate_cohort | results/table2_auroc.json |B6Instructions explain how to run the analysis
- What counts
- The README, paper or linked docs cover setup, input placement, run order and manual steps.
- What it flags
- Setup, input placement, run order or manual steps missing, or no README.
- Data read from an unnamed folder outside the repository, or a download that never happens.
- How to fix
- Write a “How to reproduce” section: setup, where inputs go, then each command and its outputs, in order.
B7Documented commands agree with the code
- What counts
- Every documented name (command, file, option, folder, package) matches the repository; notebooks are saved without errors.
- What it flags
- A name that does not match the repository, such as
data.csvforData.csv.gz. - An install name that belongs to another package.
- A notebook saved with an error.
- Leftover placeholder text like
<your-path>. - Code that waits for a person:
breakpoint(),input(),View(). - A configuration that turns off promised outputs, such as
save_img: False(a Warning).
- A name that does not match the repository, such as
- How to fix
- In a fresh clone, check every name the README uses, create the folders it writes to, replace placeholders, save notebooks without errors.
B8Machine assumptions documented
- What counts
- Result code builds paths from the project folder or a setting, with no unexplained check for one host.
- What it flags
- Author-machine paths like
/Users/you/data. - A script tied to one host, system or shell profile.
- Author-machine paths like
- How to fix
- Build paths from the project root, let data locations be overridden, explain any check that refuses other systems:
from pathlib import Path
import os
ROOT = Path(__file__).resolve().parents[1] # repository root, from src/pipeline.py
DATA = Path(os.environ.get("DATA_DIR", ROOT / "data"))
counts = DATA / "raw" / "counts.h5ad"B10Randomness of key results is controlled
- What counts
- Each key result with random steps seeds them, library defaults included, or the paper reports its spread.
- What it flags
- A stochastic key result with unseeded steps and no reported spread (seeding every other call is an Automation item).
- How to fix
- Seed each key result’s random steps with the seed your history, saved outputs or logs record (a new seed changes your values), or report the spread over runs.
G1Beside the level · Warnings onlyA tidy repository
- What counts
- The repository holds only what the analysis needs, and no credentials.
- What it flags
- Junk, scratch copies, duplicates, large binaries or files your
.gitignoreexcludes. - Functions nothing calls and files nothing reads.
- A committed API key, which only you see.
- Junk, scratch copies, duplicates, large binaries or files your
- How to fix
- Add a
.gitignore, remove what no result needs, revoke any committed key and purge it from history.
G4Beside the level · Warnings onlyHardware, tools and versions
- What counts
- The README states GPU, memory, run time and any commercial software with its version; cited and current code agree.
- What it flags
- GPU, memory or run-time needs not stated.
- A step that needs commercial software.
- Code last changed long before the paper was accepted.
- Cited and current code differ.
- How to fix
- Note hardware needs and run time in the README, name commercial steps, cite a new release when the code changes.
Related
- Materials: code, inputs and software
- Automation: one command, locked and seeded
- Pre-submission checklist
See where your project stands
Run the free self-check in your coding agent, or get a platform assessment through your institute, company or journal.
On this page
- At a glance
- B1 · Dependencies and versions are listed
- B2 · The exact code version is identified
- B3 · Data sources have stable identifiers
- B4 · Data preparation steps are documented
- B5 · Code is linked to the paper’s results
- B6 · Instructions explain how to run the analysis
- B7 · Documented commands agree with the code
- B8 · Machine assumptions documented
- B10 · Randomness of key results is controlled
- G1 · A tidy repository
- G4 · Hardware, tools and versions
- Related