Skip to main content
v2026.11,772 entries · CC-BY 4.0
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 22 Aug 2026
Share this

Ask CASRAI · included with Regulatory Radar

Ask about Open code

Ask CASRAI answers research-administration questions and cites the passages behind every claim — and says so when the corpus does not cover something, instead of guessing. It comes with a Regulatory Radar subscription at $29 a month, alongside the daily digest of regulatory changes and the dashboard of what changed.

150 questions a day, on this site, over the API, or inside your own tools through the CASRAI MCP server.

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

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.

Editorial commentary

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

Also known as

open-source research code · shared analysis code

Machine-readable encodings

Use in your systems

JATS XML <role> element
xml
<role vocab="credit"
      vocab-identifier="https://casrai.org/dictionary/"
      vocab-term="Open code"
      vocab-term-identifier="https://casrai.org/dictionary/term/open-code" />
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",
  "sameAs": [
    "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:49",
  "dateModified": "2026-08-22T15:41:38",
  "inLanguage": "en-GB",
  "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 →

Regulatory Radar

Stop finding out after the fact

$29/month, cancel anytime. Daily digest updates from our analysis, a dashboard holding the same items, and a cited assistant for everything they raise.

  • Federal Register, Federal Register+, Grants.gov, Regulations.gov, NSF News, UKRI, plus CASRAI’s own published content.
  • 72,264 indexed passages, and every answer cites the ones it drew on.