Skip to main content
v2026.11,986 entries · CC-BY 4.0
CASRAICASRAI Working GroupsHelp write the standards you have to implement24 working groups propose, review and ratify the terms CASRAI publishes, one per dictionary domain. Community and observer seats start at about two hours a month; chairs and co-chairs give 6–8 hours a month. Applications are reviewed.Apply to join a group CASRAI · Volunteer seats
Dictionary termTrack CStablev2026.2

Open code

The practice of releasing the source code used in a study, under an open-source licence, alongside the publication, such that any reader may inspect, reuse, and re-execute the analysis.

ByCASRAI Editorial Board
· Last updated 5 Sept 2026

Working group for this domain: Reproducibility and computational research working group

Share this

Ask CASRAI · full access

Ask about Open code

Full access: large monthly usage, up to 10 source passages behind each answer, and MCP and API access for Claude Code, Codex and other CLIs. Cancel any time.

An AI assistant for research: funder rules, compliance, methods and publishing. It links the sources behind its answers and labels answers that come from a web search.

Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.

Works on this site and inside Claude, Cursor and the AI tools you already use.

Everything CASRAI publishes — this page, the dictionary, the guides and the news — stays open to read, with no account and no card.

Editorial commentary

Open code in practice

Open code is the practice of releasing the source code used to process and analyse a study’s data — scripts, pipelines, notebooks — under an open-source licence alongside the publication, so that any reader can inspect exactly what was computed and re-execute the analysis rather than relying on a prose description of the method. It is a necessary condition for computational reproducibility: even a fully open dataset cannot be independently checked if the specific transformations, model specifications, and exclusion rules applied to it are not themselves available for inspection.

Established good practice combines several elements: a version-controlled repository (typically Git, hosted on GitHub or GitLab); a permanent archival snapshot taken at the time of publication (via Zenodo or Software Heritage, since a live repository can be edited, renamed, or deleted after the fact); an explicit open-source licence (MIT, BSD, GPL, and Apache-2.0 are the most common in research code); and a machine-readable citation file (CITATION.cff) so the software itself can be cited properly.

Why “available on request” does not count

Code described in a paper as “available from the authors on reasonable request,” or presented only as pseudocode in a methods section, does not meet the open-code standard: both leave a reader dependent on the original authors’ continued willingness and availability, rather than providing an independently accessible, citable artefact. A growing number of journals now decline this wording outright for both code and data availability statements. Journals implementing the TOP Guidelines' Analytic Methods (Code) Transparency standard grade exactly this: the higher levels require deposit in a trusted repository, not a promise of availability. Open code is a separate practice from open data (the inputs) and open materials (the instruments used to generate those inputs) — a study can release any one of the three without the others, though reproducibility is strongest when all three are present together.

References

Examples

Worked examples

  • Is an instance

    A study's analysis scripts published on GitHub and archived in Zenodo with DOI on paper acceptance.

  • Is an instance

    A bioinformatics pipeline released under MIT licence with a CITATION.cff file.

Counter-examples

Looks similar, but isn't

  • Not an instance

    Code 'available on reasonable request'.

  • Not an instance

    Pseudocode in a methods section.

Also known as

open-source research code · shared analysis code

Machine-readable encodings

Use in your systems

JATS XML <kwd> element
xml
<kwd vocab="CASRAI Dictionary"
     vocab-identifier="https://casrai.org/dictionary/"
     vocab-term="Open code"
     vocab-term-identifier="https://casrai.org/dictionary/term/open-code">Open code</kwd>
Schema.org DefinedTerm (JSON-LD)
Schema.org DefinedTerm (JSON-LD)
json
{
  "@context": "https://schema.org",
  "@type": "DefinedTerm",
  "@id": "https://casrai.org/dictionary/term/open-code",
  "name": "Open code",
  "identifier": "https://casrai.org/dictionary/term/open-code",
  "description": "The practice of releasing the source code used in a study, under an open-source licence, alongside the publication, such that any reader may inspect, reuse, and re-execute the analysis.",
  "inDefinedTermSet": "https://casrai.org/dictionary/domain/reproducibility#set",
  "url": "https://casrai.org/dictionary/term/open-code",
  "alternateName": [
    "open-source research code",
    "shared analysis code"
  ],
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "publisher": {
    "@id": "https://casrai.org/#organization"
  },
  "author": {
    "@id": "https://casrai.org/#editorial-team"
  },
  "datePublished": "2026-05-21T02:22:49Z",
  "dateModified": "2026-09-05T14:24:09Z",
  "inLanguage": "en",
  "isAccessibleForFree": true
}

Referenced across the research world

University of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logoUniversity of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logo
  • University of Cambridge logo
  • Columbia University logo
  • Crossref logo
  • University of Edinburgh logo
  • Harvard University logo
  • University of Oxford logo
  • Princeton University logo
  • Stanford School of Medicine logo
  • University College London logo
  • ORCID logo

View CASRAI adoption →