LSMA

LONDON SCHOOL OF MULTIOMICS & AI

LSMA

LONDON SCHOOL OF MULTIOMICS & AI

Free course

Free course

0 of 41 lessons

Guided project

Module 1 · Python basics · GitHub essentials · Self-checked

Your portfolio repository

Your portfolio repository

Your portfolio repository

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.

⏱ 3 min readModule 1 · Python basics · GitHub essentials · Self-checkedFree
Lesson at a glance7 steps · about 3 min
  1. How to approach this
  2. Create and clone the repository
  3. Organise and commit your work
  4. Write the README
  5. Improve it through a pull request
  6. Make it citable and release it
  7. Check it and share the link

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 the notebook and the seqtools.py module from this module, 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.
Study guide for this moduleThe GitHub study guide explains every step in this module in more detail, with a command cheat sheet, a glossary and fixes for common problems. Keep it open beside the lessons.
lsma-github-study-guide.pdfGitHub essentials: the complete study guide (PDF)
1

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'.

2

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.

3

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?

4

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.

5

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.

6

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

Project

A sequence and sample report

Ask LSMA