Manuscript Submission Code Review

Manuscript submission code reviews are the most in-depth reviews conducted in the lab. Their primary goals are to ensure that all code related to a manuscript is:

This includes code for data access, preprocessing, analysis, and table/figure generation.

When to Initiate a Review

A manuscript code review should take place before submitting the final draft to a journal or preprint server. At least two pod members must complete the review, which could be discussed in a scheduled pod meeting.


Manuscript GitHub Repository

All analysis-related materials must be included in a single GitHub repository. Data may be hosted externally, but the repository must contain clear instructions or code to retrieve that data.

Tip: Well-documented, modular code written throughout the project will reduce the workload during manuscript prep.


Reviewer Responsibilities

Reviewers should clone the repository and assess the following:

  1. Reproducibility

    • Can the R Markdown be run start-to-finish on your machine?
    • Output should match the included PDF.
    • All required data should be accessible (no local paths or hardcoded directories).
    • If errors occur, confirm whether they stem from environment/version differences.
    • Resolve these issues before moving to steps 2 and 3.
  2. Code Quality

    • R Markdown is clear and matches the manuscript's structure.
    • Code is well-commented.
    • Functions in the R/ folder have clear roxygen2 documentation.
  3. General Feedback


Giving Feedback

If clarification is needed, the author must update the code (e.g., improve README, improve object names, or expand function descriptions).