A large-scale study on research code quality and execution.
Journal
Scientific data
ISSN: 2052-4463
Titre abrégé: Sci Data
Pays: England
ID NLM: 101640192
Informations de publication
Date de publication:
21 02 2022
21 02 2022
Historique:
received:
26
03
2021
accepted:
17
01
2022
entrez:
22
2
2022
pubmed:
23
2
2022
medline:
16
4
2022
Statut:
epublish
Résumé
This article presents a study on the quality and execution of research code from publicly-available replication datasets at the Harvard Dataverse repository. Research code is typically created by a group of scientists and published together with academic papers to facilitate research transparency and reproducibility. For this study, we define ten questions to address aspects impacting research reproducibility and reuse. First, we retrieve and analyze more than 2000 replication datasets with over 9000 unique R files published from 2010 to 2020. Second, we execute the code in a clean runtime environment to assess its ease of reuse. Common coding errors were identified, and some of them were solved with automatic code cleaning to aid code execution. We find that 74% of R files failed to complete without error in the initial execution, while 56% failed when code cleaning was applied, showing that many errors can be prevented with good coding practices. We also analyze the replication datasets from journals' collections and discuss the impact of the journal policy strictness on the code re-execution rate. Finally, based on our results, we propose a set of recommendations for code dissemination aimed at researchers, journals, and repositories.
Identifiants
pubmed: 35190569
doi: 10.1038/s41597-022-01143-6
pii: 10.1038/s41597-022-01143-6
pmc: PMC8861064
doi:
Types de publication
Journal Article
Research Support, Non-U.S. Gov't
Langues
eng
Sous-ensembles de citation
IM
Pagination
60Subventions
Organisme : Alfred P. Sloan Foundation
ID : P-2020-13988
Informations de copyright
© 2022. The Author(s).
Références
Sci Data. 2017 Sep 05;4:170114
pubmed: 28872630
Proc Natl Acad Sci U S A. 2018 Mar 13;115(11):2584-2589
pubmed: 29531050
Sci Data. 2016 Mar 15;3:160018
pubmed: 26978244
Nature. 2016 May 25;533(7604):452-4
pubmed: 27225100
Genome Biol. 2021 Feb 19;22(1):65
pubmed: 33608018
PLoS Comput Biol. 2013 Oct;9(10):e1003285
pubmed: 24204232
FASEB J. 2013 Apr;27(4):1304-8
pubmed: 23288929
PLoS Comput Biol. 2018 Dec 20;14(12):e1006561
pubmed: 30571677
F1000Res. 2017 Jun 13;6:
pubmed: 28751965