Guided project
Module 2 · Statistics · GitHub essentials · Self-checked
Turn one piece of your own work into a repository that a stranger could understand, run and cite. Work through the six tasks, check each against its checkpoint, and tick it off. Nothing is submitted.
Your goal
Turn one piece of your own work into a portfolio repository that a stranger could understand, run and cite, and that you could submit as an LSMA project link.
How to approach this
This project brings the module together. Use an R script or Quarto/R Markdown file from this course, or any small analysis of your own that uses only public or made-up data. Work through the tasks in order and tick each one when it meets its checkpoint. Nothing is submitted: the checkpoints tell you when each step is right.
- Work on your computer and push often. Each task should end with at least one commit.
- Use a branch and a pull request for at least one change, even though you work alone.
- Keep data and secrets out from the start. Write .gitignore before you add any files.
Create and clone the repository
Lessons 1 and 2
Create a new public repository with a descriptive name, a README, a .gitignore template and a licence. Or start from the MultiOmics Intelligence practice template: open github.com/MultiOmics-Intelligence/lsma-github-practice, choose Use this template, and follow its six steps alongside these tasks. Clone your repository to your computer.
Check your answer
Checkpoint. git status in the new folder says Your branch is up to date with 'origin/main'.
Organise and commit your work
Lesson 2
Add your code in a clear structure, for example analysis/ for scripts, results/ for small outputs such as figures, and a short list of the packages you use (requirements.txt for Python, or a list in the README for R). Commit in small steps and push.
Check your answer
Checkpoint. git log --oneline shows several commits with clear messages, and GitHub shows the same files.
Write the README
Lesson 1
Write a README with: a one-paragraph summary of the question, where the data comes from (with a link or accession), how to run the code step by step, what the output is, and the licence.
Check your answer
Checkpoint. Ask someone else, or read it yourself the next day: could they run it without asking you anything?
Improve it through a pull request
Lesson 3
Open an issue for one improvement, such as a clearer figure or a missing step in the README. Make it on a branch, open a pull request that closes the issue, read the diff, and merge.
Check your answer
Checkpoint. The issue is closed and linked to a merged pull request.
Make it citable and release it
Lesson 4
Add CITATION.cff, then publish release v1.0.0. Optionally connect Zenodo first so the release gets a DOI.
Check your answer
Checkpoint. Cite this repository appears in the sidebar and the release shows as Latest.
Check it and share the link
Lesson 4
Read every file and the history for personal data, keys and large files. Then open your repository link in a private browser window, where you are not signed in.
Check your answer
Checkpoint. The page opens without a sign-in request and shows your README. This is exactly the test a marker uses for LSMA project links. Pin the repository on your profile.
Up next
Lesson 6
A reproducible workflow