Background
In the afternoon lecture, you learned about the importance of documentation for workflow reproducibility. Documentation is an essential part of communicating how your analysis works and why you made your design choices.
Always keep the target audience for your documentation in mind as you write it! Typically, for a workflow, your target audience is someone interested in reproducing or building on your work. This could be:
A scientist you’ll never meet directly
A collaborator who is also contributing to the code
Future you (you’d be surprised by what they can forget)
Goals
During this interactive session, you will implement a README for your replication project.
Instructions
The specification for your project’s README says:
-
- A short, but descriptive title
- A README’s title is set to the repository name by default - change this!
- A brief explanation of the repository’s purpose
- Paragraphs or a bulleted list are both acceptable options
- You may include an image or logo that represents the project
- A concise description of what’s housed in the repository
- This includes information about the repository structure or file organization
- Details regarding data access
- Any necessary information on where data lives (e.g. is it housed in the repo, on a server, in a library/package etc.) and how to access it in order to run the code
- A list of authors or current contributors (for collaborative work)
- Consider hyperlinking collaborators’ GitHub profiles or other professional profile
- References
- In an appropriate, consistent format, including links.
- Don’t forget to add references for datasets too.
- A short, but descriptive title
Create a README for your project following this specification.
One bullet point in the spec says “A concise description of what’s housed in the repository”. At this point in the week, your repo has barely been filled out, so there’s not much do yet. You’ll keep adding to your README to fulfill this requirement as the course progresses.
Bonus
If you’re done with your repo’s README, create a README in your data/ folder that describes each file’s contents and the columns contained within (i.e., a data dictionary).
Recap
In this interactive session you gained practical experience documenting your workflow. You created a repo for your analysis, formatted your code according to a style guide, and added comments to clarify your script. These changes make it easier for your target audience to comprehend your workflow - a key baseline for reproducibility.