Friday, December 4, 2026SubscribeMastheadAbout
Cali ReporterCalifornia · National · West Coast · Good News

Advertisement

Health & Medicine

Public Code Is Not Always Reusable

A recent study has uncovered significant gaps in the sharing and documentation of code in medical research, highlighting the need for clearer guidelines.

Portrait of Colin Ashworth
Food & Nutrition · November 25, 2026
Share

AI-generated editorial illustration from an imagined camera angle.
AI-generated editorial illustration from an imagined camera angle. Source image: medicalxpress.com.

A review of nearly 4,000 clinical prediction studies has revealed that code sharing remains uncommon, with only about 1 in 8 studies reporting shared code (Evidence ID: 1). The study, conducted by an international team led by researchers at MIT and Dana-Farber Cancer Institute, used large language models (LLMs) to identify statements about code availability in papers and assess associated code repositories. This analysis found that while making code public is a step forward, it does not consistently mean that the documentation and supporting information needed for reuse are provided (Evidence ID: 1). [1]

The researchers found that the contents of code repositories varied widely, with some being extremely well organized and documented, while others gave almost no guidance at all (Evidence ID: 1). The study also noted that practices for code sharing differed substantially across journals and countries, with some journals having low sharing rates despite having written code-sharing policies (Evidence ID: 1). This inconsistency suggests that policies alone may not be sufficient to encourage effective code sharing (Evidence ID: 1). [1]

The findings are informing the development of TRIPOD-Code, a reporting guideline aimed at clarifying what researchers should share when publishing their work (Evidence ID: 1). The review has highlighted the importance of providing enough information to understand and reproduce the results reported in the paper, as well as the need for a consensus on essential elements of shared analytical code (Evidence ID: 1). [1]

A review of nearly 4,000 clinical prediction studies has revealed that code sharing remains uncommon, with only about 1 in 8 studies reporting shared code (Evidence ID: 1). The researchers found that the contents of code repositories varied widely, with some being extremely well organized and documented, while others gave almost no guidance at all (Evidence ID: 1). The findings are informing the development of TRIPOD-Code, a reporting guideline aimed at clarifying what researchers should share when publishing their work (Evidence ID: 1). [1]

Advertisement

According to the findings, the data and code that underpin a research study can tell us what was actually done, and how. In a medical study, for example, how were patients selected for inclusion? How were missing values handled? How were the results evaluated? Access to a study's data and code helps researchers to answer these questions, to examine the methods and to build on the work (Evidence ID: 1). [1]

The problem is that, right now, there is little guidance for researchers on what constitutes a well-organized, well-described collection of code. This is where an international team led by researchers at MIT and Dana-Farber Cancer Institute sought to help by examining how code is currently shared in clinical prediction studies (Evidence ID: 1). [1]

Using large language models (LLMs), the researchers examined nearly 4,000 papers to identify statements about shared code. They then followed the statements to assess hundreds of associated code repositories. Their review revealed two key gaps: Code sharing remains uncommon, and making code public does not consistently mean providing the documentation and supporting information needed for reuse (Evidence ID: 1). [1]

A review of nearly 4,000 clinical prediction studies has revealed that code sharing remains uncommon, with only about 1 in 8 studies reporting shared code (Evidence ID: 1). The researchers found that the contents of code repositories varied widely, with some being extremely well organized and documented, while others gave almost no guidance at all (Evidence ID: 1). This variability presents a challenge for researchers seeking to understand and reproduce the methods used in medical studies. The data and code that underpin a research study can tell us what was actually done, and how. In a medical study, for example, how were patients selected for inclusion? How were missing values handled? How were the results evaluated? Access to a study's data and code helps researchers to answer these questions, to examine the methods and to build on the work (Evidence ID: 1). [1]

Advertisement

According to the findings, the problem is that, right now, there is little guidance for researchers on what constitutes a well-organized, well-described collection of code (Evidence ID: 1). Using large language models (LLMs), the researchers examined nearly 4,000 papers to identify statements about shared code. They then followed the statements to assess hundreds of associated code repositories. Their review revealed two key gaps: Code sharing remains uncommon, and making code public does not consistently mean providing the documentation and supporting information needed for reuse (Evidence ID: 1). The open-access findings, recently published in Nature Medicine, are informing TRIPOD-Code, a reporting guideline being developed to clarify what researchers should share (Evidence ID: 1). [1]

The review also helped to identify examples of effective practice. Some researchers, for example, provided synthetic datasets to assist with code reuse where the original patient records could not be shared publicly (Evidence ID: 1). Practices also varied substantially across journals and countries. Among journals, the proportion of studies sharing code ranged from zero to more than 70% (Evidence ID: 1). Some journals with low sharing rates nevertheless had written code-sharing policies, suggesting that policies alone may not be enough to motivate code sharing (Evidence ID: 1). [1]

The review of nearly 4,000 clinical prediction studies has revealed that code sharing remains uncommon, with only about 1 in 8 studies reporting shared code (Evidence ID: 1). This low rate of code sharing highlights a significant gap in the transparency of medical research. The data and code that underpin a research study can tell us what was actually done, and how. In a medical study, for example, how were patients selected for inclusion? How were missing values handled? How were the results evaluated? Access to a study's data and code helps researchers to answer these questions, to examine the methods and to build on the work (Evidence ID: 1). [1]

According to the findings, the problem is that, right now, there is little guidance for researchers on what constitutes a well-organized, well-described collection of code (Evidence ID: 1). Using large language models (LLMs), the researchers examined nearly 4,000 papers to identify statements about shared code. They then followed the statements to assess hundreds of associated code repositories. Their review revealed two key gaps: Code sharing remains uncommon, and making code public does not consistently mean providing the documentation and supporting information needed for reuse (Evidence ID: 1). [1]

Advertisement

The open-access findings, recently published in Nature Medicine, are informing TRIPOD-Code, a reporting guideline being developed to clarify what researchers should share. Following the code TRIPOD-Code builds on TRIPOD and TRIPOD+AI, checklists that help researchers report how clinical prediction models were developed and evaluated. To understand current code-sharing practices, the team identified studies citing either guideline. The review included almost 4,000 studies that developed, updated or validated prediction models, and whose full texts were available through PubMed Central's open-access collection (Evidence ID: 1). [1]

Sources

Medical Xpress

Prepared with AI assistance from the cited sources.

The Cali Reporter newsletter

The stories worth your time.

California, the country, and what comes next. Join our free newsletter for reporting that keeps you informed.

By joining, you agree to receive the Cali Reporter newsletter. Unsubscribe at any time. Privacy policy.

More in Health & Medicine

Advertisement