The CODECHECK community process described here is the steps that codecheckers follow when using open platforms for codechecking software from scientific articles, in particular the GitHub organisation codecheckers and Zenodo for depositing check reports. These codechecks may be part of a journal review or not and are a concrete implementation of the abstract CODECHECK process following the CODECHECK principles. Be aware that community CODECHECKs may fall short of Rule 3 as the CODECHECKs might not be properly registered as peer reviews in the respective public databases.
README: all else is details. *
Inspired by Greg Wilson’s first rule of Teaching Tech Together.
The author must provide a preproducible workflow: all data and code files necessary to reproduce the results are provided in a way that allows fellow researchers to follow and execute the steps. Often this workflow includes the generation of key figures from the article based on data.
A typical measure for a good level of documentation is to provide at least so much information as the author would themselves need after a longer period of time, e.g., 1 year, to run the analysis again. Any researcher, even if not familiar with the software stack, should be able to run the workflow and find out if the code works.
Common sense shall be applied to decide about the suitable amount of data and to handle big datasets, sensitive datasets with privacy concerns, and long execution times. For example, data may be deposited depending on community practices in remote repositories, synthetic data may be used, subsets or preprocessed data may be included, or protected access to information may be provided (e.g. cloud-based data enclaves).
The minimal set of files, besides all required data and code, to implement a CODECHECK process are the following (
/ is the project root directory, which could be for example,
/home/username/research-project/2020/great-paper). Ideally, the author supplies these three files, though they might also be created in collaboration with the codechecker.
/READMEfile with instructions how to execute the workflow (must be plain text, may have suitable extension, e.g.,
/codecheck.ymlfile with a list of output files created by the workflow, the so called manifest; these files must be created by the workflow and are the basis for validating a successful CODECHECK; see the latest CODECHECK configuration file specification for the required and optional contents
/LICENSEfile with information about licenses for all submitted material, e.g. code license for scripts and data licenses for used datasets
The required files and the workflow code and data are published in a dedicated self-contained repository in the codecheckers organisation on GitHub. This happens by forking the authors repository, if one already exist. If the repository is on GitLab(.com), the cdchck organisation on GitLab can be used. After the CODECHECK, authors may transfer the improvements and certificate back to their own repository.
Beyond the minimally required files to run a workflow, any additional configuration and information is extremely helpful, of course, and can greatly improve the smoothness of the CODECHECK process. Some hints as to what this can entail are given by the codechecker’s tasks below - it is worth taking the checker’s perspective to improve your submission.
Furthermore, the concept of a research compendium to package all building blocks of a research project together is very useful. You can find examples and best practices for using research compendia on https://research-compendium.science/.
Ideally, you make your repository “Binder-ready”, which means that you define all the software your workflow needs in common file formats for specifying dependencies and projects so that you and others can open your repository on MyBinder.org. Note that there are resource limitations to this free instance of BinderHub. Feel free to inquire in the CODECHECK discussion forum how you can best handle your specific case of sensitive or big data.
A great way to learn what a good way to meaningfully package your research for others to inspect, understand, and reproduce is to participate in a ReproHack and take on the reader/codechecker perspective.
When your workflow is ready to be CODECHECK, open an issue on the CODECHECK register.
The codechecker in general is not there to fix things, but to document how far they got. The result is either is a completed CODECHECK, or a documentation why the check was found impossible to complete (see principle 1). Codecheckers should give feedback to the author and definetely allow workflows to be fixed. It is very hard to put a precise number on the amount of work you should put into a CODECHECK. You’re not expected to spend more time on a CODECHECK than you would on peer-reviewing a manuscript. You should take advantage of the fact that you can talk to the author and feel free to reach out early and often, when you think that issues can be resolved quickly. Depending on your familiarity with the used programming language and specific tools at hand, a very rough experience value could be 30 minutes of reading documentation, downloading and installing software, and another 30 minutes to write up the CODECHECK report. The time in between for running the actual workflow will vary greatly, from minutes to hours, and hopefully can be run in the background. In case the computations run longer than your regular working day, consider asking the author to prepare a subset of the workflow.
However, a codechecker may, for example out of personal interest in the research at hand, invest additional efforts. In any case, the overall goal is to leave the workflow repository in the same or better condition.
Some further tips:
- A familiarity with
makeis helpful to provide an easy entrypoint and build up useful code snippets for your CODECHECKs, see https://the-turing-way.netlify.com/make/make.html and https://swcarpentry.github.io/make-novice/reference
- Open an issue on the CODECHECK register to notify other codecheckers about the CODECHECK you’re starting.
- Fork the author’s repository to the codecheckers GitHub organisation, or create a new repository with the naming scheme
Lastname-YYYYusing the family name of the corresponding author. Please take care to follow the terms and conditions of the workspace licenses; stop your CODECHECK if the licensing is unclear and contact the author to fix the documentation.
- Create a directory
codecheckto not interfere with original files. This is the check directory. You can use
codecheckexists in submission for some reason. All files created by you go into this directory. The exception are files that the author could have used and which you suggest the author transfers into her own repository after the check (see “leave in a better condition” above).
- Write a
Makefileto re-run the workflow based on provided documentation, i.e., recreate all files listed in the manifest by runnign the command
make codecheck. This target should run the whole or most suitable subset of the workflow and create the report.
- Optional contents of the check directory.
- Write the CODECHECK report and save it as a PDF file named
codecheck.pdfin the check directory. The report should cover at least WHO checked WHAT, and HOW. Imagine the report as a reminder for future you so you will be to re-check the workflow in two years time - what help would you need to do that? Take a look at the example CODECHECKs for existing reports to serve as templates.
- Optional report sections depending on interest, time, and skills:
- How to cite the report? Your CODECHECK is a valuable contribution to science, and you should add a short note on how to cite your report (see below for reserving the DOI).
- Do the generated outputs match the ones in the original manuscript? Are the differences relevant or not?
- Are there any parts of the workflow where the author could improve the code?
- How long did it take you to conduct the CHECK, and where did you struggle?
- Are used pieces of software and data properly CITED and publicly DEPOSITED und suitable LICENSES?
- Are open formats (text-based etc.) used for input and output data?
- Is the data and software FAIR?
- Add mandatory codechecker-contributed information to the
codecheck.ymlfile, see spec
- Deposit the CODECHECK report on Zenodo using your own Zenodo account
- Optional: You can add any material to this record that you see fit, especially things that helped you with your reproduction, i.e., the CODECHECK bundle
- Communities: Search for “codecheck” to add the record to the CODECHECK community on Zenodo
- Authors: Add all codecheckers as authors
"CODECHECK Certificate YYYY-NNN"(certificate number issued via the register ticket above)
- License: Use
Creative Commons Attribution 4.0 Internationalif you only upload the CODECHECK report, otherwise use
Other (Attribution)and document the licensing in the “Additional notes” field.
- Reserve a DOI
- Add the DOI to the
- Mention the DOI to the
codecheck.pdfCODECHECK report, e.g. as a subtitle
- Add the DOI to the
- Use other fields as you see fit (Description, Version, Language, Keywords)
- Contributors: Add the original authors as contributors (see Zendo Metadata form section “Contributors (optional)”) with a suitable role (e.g., “Researcher”)
- Optionally, add extra metadata
- connect the Zenodo record to the GitHub repository with a “Relate/alternate identifier”
- connect the Zenodo record to the article/preprint with a “Relate/alternate identifier”
- If the check was conducted for a piece of software for the first time or resulted in important lessons learned, consider adding it to the list of examples below.
- If possible, add the CODE WORKS badge to the article or the original software repository, e.g., by sending a pull request. The badge should link directly to the Zenodo record via the DOI. The following snippet should work in Markdown:
- Update the CODECHECK register with all important information, then close the issue.
Every CODECHECK is unique, just as the associated research article. The codechecker can thereby rely on the examples below and future published CODECHECKs for good practices and approaches for codechecking. Reach out to fellow codecheckers in the CODECHECK discussion forum if you face any problems.
See the CODECHECK register for a full list of codechecks, including direct links to the reports and register issues with background information.
Journal: GigaScience, see also related blog post reporting on this first CODECHECK for the journal.
A classical neuroscience paper.