Group Project

Two mornings in groups on one of two new datasets. On Friday you present to a group that worked on the other one. There is no answer to check against.

Your group

  1. Find your group below. Groups A1 to A5 work on Study A, and B1 to B5 on Study B.
  2. Split into three pairs on Wednesday at 10:00. In a group of seven, one pair is three people.
  3. Each pair takes one sub-question. Partners work on the same sub-question, but each on their own laptop with their own Pi. You compare at the check-ins.

Find your group

Type part of your name. If your name is missing or spelled wrong, tell one of the TAs.

A1Study A · Friday with B1
  • Abubakar Suleiman Masoud
  • Arthur Baluwa
  • Brian Kipkorir
  • Matrona Mbendo Akiso
  • Samuel Chima Ugbaja
  • Simarin Naicker
  • Terry Idaya Ngala
A2Study A · Friday with B2
  • Elizabeth Wamoni Kimani
  • Evans O. Mudibo
  • Felix Maingi
  • Festus David Lutaaya
  • Julia Wangui Nderitu
  • Khadija Muhammad
  • Lilian Nkirote Njagi
A3Study A · Friday with B3
  • Arnold Lambisia
  • Ezbon Kiprotich Malel
  • Jerome Bright Ogenrwot
  • Joel Walugembe
  • Jonathan Mutinda
  • Noella Awino Okumu
A4Study A · Friday with B4
  • Collins Amoo
  • David Mwania
  • Delphine Lagat
  • John Nderitu Kimotho
  • Joseph Michael Okorie
  • Samson Otiso Oyieyo
  • Stephen Njuguna Kuria
A5Study A · Friday with B5
  • Aliyi Hassen Jarso
  • Ann Laigong'
  • Mukisa John
  • Purity Wanjiku Njenga
  • Rahma Ordofa Golicha
  • Samuel Muoria Ng'ang'a
  • Vanessa Natasha Onyonyi
B1Study B · Friday with A1
  • Anthony Njooro
  • Fathy Jacob Fathy Hanna
  • Munyaradzi Paul Mapingure
  • Privilege Tendai Munjoma
  • Samuel Kariuki Ndegwa
  • Samwel Elegwa
B2Study B · Friday with A2
  • Doreen Kinya
  • Endalkachew Girma Andargie
  • Immaculate Nkatha Kaikitha
  • Khautu Zanelle
  • Sally Karimi Kinyua
  • Sandra Achieng Otieno
  • Shakira Babirye
B3Study B · Friday with A3
  • Kasmira Gopee
  • Misheck Ndirangu Munga
  • Oyintando Somila Ntsiyane
  • Samuel Chenge
  • Sheila Okwisa Francis
  • Sophia Mogere Nyasore
B4Study B · Friday with A4
  • Alvin Odongo
  • Bantayehu Bekele Amde
  • Marea Neo Pema
  • Meshack Tweya Omwega
  • Rachael Gachogo
  • Zamira Wesonga
B5Study B · Friday with A5
  • Benn Kibui Kibunja
  • Erika Manuela Londi Teujou
  • Jimmy Kipetuan Nkaiwuatei
  • Kitts Kikumu
  • Oluwaseun O. Taofeek
  • Paola Isabella Sabbatini
  • Rozy Abiero

Wednesday

On your own means your own laptop and your own Pi, even though your partner has the same sub-question. Don’t compare notes until the check-in.

time who what
9:30 Whole group Sit together. Open your study’s card below the table.
9:40 On your own Ask Pi about your dataset. No code yet: what is in each file, how many people are in each arm, what does a column mean?
10:00 Whole group Pick three sub-questions from your study’s card. Split into three pairs and give each pair one sub-question. In each pair, decide who uses which model.
10:10 On your own Write the QC report.
10:30 On your own Finish the QC report, then start on your pair’s sub-question.
11:00 Tea
11:15 With your pair Check-in W1: compare your two QC reports.
11:30 On your own Ask Pi for whatever your QC report missed, then carry on with the sub-question.
12:15 Whole group Check-in W2: agree one QC decision for the group.
12:35 On your own Rerun with the group’s QC decision. Before lunch, write a few lines at the top of your .qmd saying where you got to.
1:00 Lunch

A randomised trial. Participants received either a live Lactobacillus crispatus product or a placebo, and were sampled before and after the course of treatment.

participants 176
samples 352, one before and one after per person
arms 121 probiotic, 55 placebo
metadata arm, time_point (pre, post), age, pH, Nugent score, Amsel criteria

The arms are unbalanced, 121 against 55, so check your baseline before you interpret anything about the follow-up.

Sub-questions. Pick three, ideally one from each column, so your pairs cover the bacteria, the host and the link between them.

Microbiome Host Connecting the two
Did the community shift from pre to post, and differently by arm? Tuesday’s ordination is a good start. Did host gene expression change with treatment? Wednesday afternoon’s module covers this; this morning, start by ordinating the genes. Did the probiotic only work in people whose community started a certain way? Tuesday’s community grouping is a good start.
Which species changed in the probiotic arm, besides L. crispatus? Wednesday afternoon’s module covers this. Which biological processes do the gene changes point to? Harder. Enrichment is taught on Thursday afternoon, so you will learn it from Pi and from reading. Do pH, Nugent score and cytokines move with the community change, or on their own? Tuesday’s anatomy module is a good start.

A cross-sectional comparison of three contraceptive methods, each person sampled once.

participants 93, one sample each
arms 39 injectable, 28 pill, 26 ring
metadata arm, bv (Amsel), nugent, ph, any_sti

Nobody was randomised to a method, and people who choose different methods differ in other ways. With 93 samples in three groups, ask which of your comparisons is actually powered.

Sub-questions. Pick three, ideally one from each column.

Microbiome Host Connecting the two
Do the three methods differ in community composition? Tuesday’s ordination is a good start. The ring is delivered locally and the other two are systemic. Does the ring differ from the other two in host gene expression? Wednesday afternoon’s module covers this; this morning, start by ordinating the genes. Group people by community type, then test their genes. Does community type explain more than the method does? Tuesday’s community grouping is a good start.
Is bacterial vaginosis more common in one arm? Tuesday’s anatomy module is a good start. Which biological processes do the ring-versus-systemic genes point to? Harder. Enrichment is taught on Thursday afternoon, so you will learn it from Pi and from reading. Is bacterial vaginosis the explanation for whatever the method seems to do? Start from your group’s other two sub-questions.

If your pair finishes early, write your own sub-question and tell the rest of your group at the next check-in.

Thursday

time who what
9:00 With your pair Read yesterday’s notes and swap models.
9:05 On your own Ask your new model to review yesterday’s .qmd: “Read this document and critique the choices made. What would you do differently?” Decide what to change.
10:00 Tea
10:15 On your own Carry on and render your final figures.
10:45 With your pair Check-in T1: choose your figures and your “choice we made”.
11:00 On your own Put your figures in your group’s deck.
11:45 Whole group Check-in T2: put the talk together.
12:05 Whole group Finish the slides.
12:30 Lunch
  • Baseline. The arms are 121 against 55. Did the two arms look the same before treatment? If not, say so before you show any change.
  • Pre and post. Each person was sampled twice. Check that your test knows the two samples come from the same person.
  • Enrichment. If your pair took the processes sub-question, say which method you used and which source you read for it.
  • Your Friday audience is B1 to B5. They have not seen this trial, so your first slide explains it.
  • No randomisation. People chose their method. Name one way the three arms might differ apart from the method.
  • Power. 93 samples in three arms of 26 to 39. For each comparison you show, say how many samples were in it.
  • Ring versus systemic. If you merged the pill and the injectable, say why that is fair.
  • Your Friday audience is A1 to A5. They have not seen this study, so your first slide explains it.

Friday

how long who what
30 minutes Whole group Run through your deck. Each pair asks another pair one question about their slide.
1 hour With your partner group A1 sits with B1, A2 with B2, and so on. Present for 30 minutes, then listen to theirs for 30.

Two models in each pair

On Wednesday one partner uses z-ai/glm-5.3-flash, the default, and the other switches to z-ai/glm-5.3 by typing /model in Pi. On Thursday you swap. In a pair of three, two of you use the same model. The stronger model costs roughly ten times as much for a morning’s work, a couple of dollars, which is still a small part of your budget.

If you are curious on Thursday, try anthropic/claude-opus-5.5 for a while. Then look at what it cost on your OpenRouter activity page and decide for yourself whether it was worth it.

Your group’s deck

Each group gets a shared Google Slides deck on Wednesday morning. From the start it has a slide for the group’s QC decision and one open-questions slide for each pair. Put anything you and your partner cannot explain yet on your pair’s open-questions slide, and note what you found out as you go, with a link to whatever you read. On Thursday that slide becomes your “choice we made” slide.

To get a figure into the deck, ask Pi to save it as a PNG in group_project/figures/, then right-click the file in the Codespace file list and choose Download.

Sharing a report with your group

A rendered .html file keeps its figures and styling in a separate _files folder, so if you download only the .html and send it to someone, the figures are missing. Ask Pi to put everything in one file:

Render group_project/01-qc.qmd with embed-resources: true so the HTML
is a single file I can share.

Then right-click the .html file in the Codespace file list, choose Download, and send it to your group.

If you want every render to do this, ask Pi to add it to the YAML header at the top of your .qmd:

format:
  html:
    embed-resources: true

The QC report

Everyone starts with the same prompt. Copy the one for your study into Pi as it is.

Study A:

Make group_project/01-qc.qmd that checks the quality of the Study A data
before we analyse it. Render it.

Study B:

Make group_project/01-qc.qmd that checks the quality of the Study B data
before we analyse it. Render it.

The prompt is short on purpose. Your partner’s model will decide differently from yours what a quality check needs, and you will compare the two at 11:15.

Check-ins

NoteW1, Wednesday 11:15, with your partner
  1. Open your two QC reports side by side. Does each one check

    • that sample IDs match across all the tables?
    • library sizes in both count tables, and which samples have very few reads?
    • missing metadata?
    • rnaseq_batch cross-tabulated against arm (and against time point in Study A)?
    • whether the arms differed at baseline (Study A)?

    For anything missing, ask your Pi to add it.

  2. Compare the Choices made sections at the end of your two reports. For each difference, can either of you say why? If not, add it to your pair’s open-questions slide.

  3. Split the open questions between you.

NoteW2, Wednesday 12:15, the whole group
  1. Each pair shows one figure and its open-questions slide, about three minutes per pair.
  2. Answer each other’s open questions where you can.
  3. Agree one QC decision for the whole group: which samples you drop and how you filter features. Write it on the QC slide. All three pairs use it from now on.
  4. What did your morning cost? Look at your OpenRouter activity page and compare the two models.
NoteT1, Thursday 10:45, with your partner
  1. Which approach are you keeping, or are you keeping both to show the result does not depend on it? What is your reason, and what did you read that supports it?
  2. Which one or two figures go in the talk?
  3. Turn your open-questions slide into your “choice we made” slide.
NoteT2, Thursday 11:45, the whole group
  1. Write the question for the whole talk in one sentence.
  2. Put the slides in order.
  3. State the answer as plainly as the data allow.
  4. Write down what you do not believe about your own result.
  5. Decide who is speaking.

Deliverables

A presentation that fits your 30-minute slot, containing:

  1. the question you settled on, in one sentence
  2. what you did, including what you filtered and why
  3. two or three figures, each with a caption you read out
  4. for each sub-question, a “choice we made” slide: the two routes you and your partner were given, which one you kept and why, and one source you opened and read yourself, even if Pi found it for you
  5. the answer, stated as plainly as the data allow
  6. what you do not believe about your own result

The last of these is required. When you are the audience, ask the other group about theirs. Every analysis this week had something wrong with it, so look for the problems in yours before you present.

Advice from the modules

TipThings that bit people earlier in the week
  • Check your sample table and your count matrix are in the same order before you run any test.
  • Decide your filter before you look at the result, and write down why.
  • On a species table, give DESeq2 poscounts size factors and check how many species they were built from.
  • Define a grouping from one table and test the other, never the same table twice.
  • Look at how lopsided a ranking is before you believe an enrichment.
  • Your dataset has an rnaseq_batch column. Cross-tabulate it against your groups early, and find out whether you have a confound rather than a finding.