An MIT and Dana-Farber Institute-led team used large language models to examine nearly 4,000 studies and hundreds of code repositories, revealing gaps in the information needed to scrutinize and reuse published research.
There are two gaps in code repositories for medical studies: Code sharing remains uncommon, and making code public does not consistently mean providing the documentation and supporting information needed for reuse.
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 help researchers to answer these questions, to examine the methods, and to build on the work.
“Studies involve many choices about how to prepare data, develop models, and evaluate performance. These are sometimes called ‘researcher degrees of freedom,’” says Tom Pollard, a research scientist at MIT's Laboratory for Computational Physiology and Computer Science and Artificial Intelligence Laboratory. “The choices we make affect the results, and a methods section in a paper can only capture so much detail.”
While sharing code can be a first step, in order for code to be understood and reused, it must be sufficiently structured and described. 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. Such studies develop or evaluate models to estimate patient outcomes, such as the risk of developing a disease. Because these models inform decisions about patient care, researchers need to be able to scrutinize how they were built and tested.
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. The open-access findings, recently published in Nature Medicine, are informing TRIPOD-Code, a reporting guideline being developed to clarify what researchers should share.
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.
“The challenge was that the information was highly inconsistent. First, we had to identify whether or not a paper shared code” says Thomas Sounack, the study’s first author. He adds that authors “discuss and link to code from a paper in many different ways.”
The team used an LLM to help screen papers, identify statements about code availability, and extract links. Software then retrieved the linked repositories — online collections of code and related files — for further assessment.
The workflow went beyond checking whether a link existed. It also assessedrepositories against characteristics such as completeness of documentation, software requirements, and terms of reuse.
“The real benefit of LLMs is their ability to process unstructured information such as text. These models helped us work with information that was scattered across papers and software repositories, rather than neatly organized in a table,” says Pollard, who is a senior author of the study. “That allowed us to examine how code was being shared in much more detail across a large collection of studies.”
Human reviewers evaluated the work of the LLMs. Two researchers independently checked 500 papers and a separate sample of repositories, resolving disagreements before comparing their assessments with the automated results.
Agreement was stronger for concrete characteristics, such as whether a license file was present, than for judgments about the adequacy of documentation. Because classification errors remain possible, the authors emphasize the overall patterns rather than treating every count as exact.
Only about 1 in 8 studies reported sharing code. Where code was shared, the contents of repositories varied widely.
Some repositories were “extremely well-organized and -documented, while others gave almost no guidance at all,” Sounack says. Good code sharing, he explains, means “giving enough information to understand what the code does and be able to run it to reproduce the results reported in the paper.”
Practices also varied substantially across journals and countries. Among journals, the proportion of studies sharing code ranged from zero to more than 70 percent. Some journals with low sharing rates nevertheless had written code-sharing policies, suggesting that policies alone may not be enough to motivate code sharing.
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.
Researchers who share code are already making an effort to make their work transparent. But clinical prediction research brings together people from medicine, statistics, and computer science, whose expectations for documenting and sharing code may differ.
TRIPOD-Code aims to establish a consensus. Through an expert review process, the team is developing guidance on which elements of shared analytical code should be considered essential.
“We want to give researchers practical guidance on how to share code, and give journals clearer expectations to communicate to authors,” Pollard says. “The review gives us evidence to inform those discussions."
MIMIC Chest X-Ray database to provide researchers access to over 350,000 patient radiographs
scrutinizeC1高阶
仔细审查
用法 · 正式书面词,比 check 严格;常被动 scrutinized
Because these models inform decisions about patient care, researchers need to be able to scrutinize how they were built and tested.
underpin进阶
构成……的基础
用法 · 正式动词;underpinning 表示“基础”,学术写作高频
The data and code that underpin a research study can tell us what was actually done, and how.
repositoriesC2高阶
代码库;知识库
用法 · 技术语境指 GitHub 类代码库;复数重音在第二音节
An MIT and Dana-Farber Institute-led team used large language models to examine nearly 4,000 studies and hundreds of code repositories, revealing gaps in the information needed to scrutinize and reuse published research.
documentationC1高阶
文档;说明材料
用法 · 不可数;技术语境指代码说明文档,非“证明文件”
Code sharing remains uncommon, and making code public does not consistently mean providing the documentation and supporting information needed for reuse.
inconsistentB2进阶
不一致的
用法 · highly inconsistent 强调格式混乱;反义 consistent
"The challenge was that the information was highly inconsistent.
sufficientlyB2进阶
足够地
用法 · sufficiently + 形容词/过去分词;比 enough 书面
While sharing code can be a first step, in order for code to be understood and reused, it must be sufficiently structured and described.
workflow进阶
工作流程
用法 · 职场与技术场景通用词;复数 workflows
The workflow went beyond checking whether a link existed.
adequacyB2进阶
充分性
用法 · adequate 的名词形式;adequacy of sth 固定结构
Agreement was stronger for concrete characteristics, such as whether a license file was present, than for judgments about the adequacy of documentation.
substantiallyC1高阶
显著地;大幅地
用法 · 修饰 vary/increase/differ;正式写作表幅度
Practices also varied substantially across journals and countries.
transparentB2进阶
透明的;公开可查的
用法 · 形容研究/决策透明;make sth transparent 固定说法
Researchers who share code are already making an effort to make their work transparent.
consensusB2进阶
共识
用法 · reach/establish a consensus 固定搭配;不可数
TRIPOD-Code aims to establish a consensus.
radiographs进阶
X光片
用法 · 正式医学词;日常口语多说 X-rays
MIMIC Chest X-Ray database to provide researchers access to over 350,000 patient radiographs
checklist进阶
核对清单
用法 · 学术报告规范多以 checklist 形式发布
TRIPOD-Code builds on TRIPOD and TRIPOD+AI, checklists that help researchers report how clinical prediction models were developed and evaluated.
extractB2进阶
提取
用法 · 数据场景高频:extract links/data/features
The team used an LLM to help screen papers, identify statements about code availability, and extract links.
inclusionC1高阶
纳入(研究对象)
用法 · for inclusion 医学研究固定说法,指入选标准
In a medical study, for example, how were patients selected for inclusion?
assessB2进阶
评估
用法 · assess sth against criteria 固定搭配,评审高频
They then followed the statements to assess hundreds of associated code repositories.
retrieveB2进阶
检索;获取
用法 · 计算机与信息检索术语,retrieval 名词
Software then retrieved the linked repositories — online collections of code and related files — for further assessment.
validateC1高阶
验证
用法 · validated models 机器学习/医学统计高频
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.
full textsC2高阶
全文
用法 · 文献检索术语,与 abstract 相对
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.
researcher degrees of freedomC1高阶
研究者自由度
用法 · 科研方法论术语;字面是“学位”,此处 degree=自由度
clinical prediction studiesC2高阶
临床预测研究
用法 · clinical prediction 固定术语组合,医学AI文献高频
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.
patient outcomesC1高阶
患者结局/治疗结果
用法 · outcome 在医学语境固定译“结局”,不是普通“结果”
Such studies develop or evaluate models to estimate patient outcomes, such as the risk of developing a disease.
reporting guidelineC1高阶
报告规范
用法 · guideline 前加 reporting 特指论文写作规范,学术高频
The open-access findings, recently published in Nature Medicine, are informing TRIPOD-Code, a reporting guideline being developed to clarify what researchers should share.
methods sectionC2高阶
论文方法部分
用法 · 论文四大结构之一;section 指论文章节
The choices we make affect the results, and a methods section in a paper can only capture so much detail.
missing valuesC2高阶
缺失值
用法 · 数据分析固定术语;value 此处指数据值
How were missing values handled?
code availabilityC1高阶
代码可获得性
用法 · availability 在期刊投稿中指“是否公开可取”
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.
terms of reuseC1高阶
复用条款
用法 · terms 此处指许可条件,不是“术语”
It also assessed repositories against characteristics such as completeness of documentation, software requirements, and terms of reuse.
synthetic datasetsC2高阶
合成数据集
用法 · synthetic 此处指人工生成,非“合成的化学品”
Some researchers, for example, provided synthetic datasets to assist with code reuse where the original patient records could not be shared publicly.
expert review processB2进阶
专家评审流程
用法 · peer review 的变体;process 搭配固定
Through an expert review process, the team is developing guidance on which elements of shared analytical code should be considered essential.
screen papersB2高阶
筛选论文
用法 · screen 熟词僻义:文献综述中的“筛选”,非“屏幕”
The team used an LLM to help screen papers, identify statements about code availability, and extract links.
resolve disagreementsB2高阶
解决分歧
用法 · resolve + disagreement 固定搭配,评审场景高频
Two researchers independently checked 500 papers and a separate sample of repositories, resolving disagreements before comparing their assessments with the automated results.
a separate sampleB1进阶
单独抽取的样本
用法 · sample 熟词僻义:统计学“样本”,非“样品试用装”
Two researchers independently checked 500 papers and a separate sample of repositories, resolving disagreements before comparing their assessments with the automated results.
capture so much detailB2高阶
只能承载有限细节
用法 · capture 熟词僻义:捕捉/呈现信息;can only … so much 表有限
The choices we make affect the results, and a methods section in a paper can only capture so much detail.
in order for sth to be doneA1进阶
为了让某事得以实现
用法 · 比 so that 更书面;for 后接宾语再接 to do,注意介词结构
While sharing code can be a first step, in order for code to be understood and reused, it must be sufficiently structured and described.
go beyond doing sthB1进阶
不止步于做某事
用法 · go beyond 后接动名词;写作中表“不止于……”很地道
The workflow went beyond checking whether a link existed.
X, rather than YA2进阶
是X而非Y
用法 · rather than 前后结构对称;插入语形式显高级
These models helped us work with information that was scattered across papers and software repositories, rather than neatly organized in a table," says Pollard, who is a senior author of the study.
not be enough to …A2进阶
不足以做成某事
用法 · 常见搭配 alone may not be enough to…,表让步论证
Some journals with low sharing rates nevertheless had written code-sharing policies, suggesting that policies alone may not be enough to motivate code sharing.
what constitutes …B2进阶
什么才算作……
用法 · constitute 正式动词;what 从句作介词宾语,学术常用
The problem is that, right now, there is little guidance for researchers on what constitutes a well-organized, well-described collection of code.
such as …进阶
例如……
用法 · 举例子最中性的写法;比 for example 更紧凑
Such studies develop or evaluate models to estimate patient outcomes, such as the risk of developing a disease.
inform decisions about sthC1进阶
为决策提供依据
用法 · inform 熟词僻义:不是“通知”,而是“提供依据”,学术高频
Because these models inform decisions about patient care, researchers need to be able to scrutinize how they were built and tested.
be scattered across …C1高阶
散布于各处
用法 · scatter 过去分词作表语;across 后接多个来源很典型
These models helped us work with information that was scattered across papers and software repositories, rather than neatly organized in a table," says Pollard, who is a senior author of the study.
There is little guidance on …B2进阶
关于……几乎没有指导
用法 · little 表否定,可数不可数都要注意;on 引出话题
The problem is that, right now, there is little guidance for researchers on what constitutes a well-organized, well-described collection of code.
treat sth as …B1进阶
把某物当作……对待
用法 · treat A as B 固定结构;rather than treating 表对比
Because classification errors remain possible, the authors emphasize the overall patterns rather than treating every count as exact.
make an effort to …B1进阶
努力去做某事
用法 · make an effort 固定搭配;already 修饰表肯定让步
Researchers who share code are already making an effort to make their work transparent.
The data and code that underpin a research study can tell us what was actually done, and how.C1进阶
支撑一项研究的数据和代码能告诉我们实际做了什么、怎么做。
用法 · underpin + what was actually done 名词性从句,简洁有力
The data and code that underpin a research study can tell us what was actually done, and how.
Access to a study's data and code help researchers to answer these questions, to examine the methods, and to build on the work.C2高阶
获取研究的数据和代码能帮助研究者回答问题、审查方法并在其基础上继续。
用法 · 三个 to do 平行结构收尾,节奏感强,可整体借用
Access to a study's data and code help researchers to answer these questions, to examine the methods, and to build on the work.
The choices we make affect the results, and a methods section in a paper can only capture so much detail.C2高阶
我们的选择会影响结果,而论文方法部分只能承载有限的细节。
用法 · can only capture so much 表“终究有限”,含蓄有力
The choices we make affect the results, and a methods section in a paper can only capture so much detail.
Some journals with low sharing rates nevertheless had written code-sharing policies, suggesting that policies alone may not be enough to motivate code sharing.C2高阶
Some journals with low sharing rates nevertheless had written code-sharing policies, suggesting that policies alone may not be enough to motivate code sharing.