Putting the Two Tables Together

When does a question need both tables? This module starts from the questions that sound like integration, draws what we think causes what before choosing a method, and then tours the methods: CCA and PLS, MOFA, and DIABLO.

This module is a lecture and a discussion. The second half of the morning is your group presentations, given to one paired group rather than the whole room. An optional notebook lets you run the methods yourself after the workshop.

Slides

Make slides full screen

What to take away

  • Grouping on one table and testing the other is already integration. It throws information away in exchange for a result you can say in one sentence.
  • Draw a DAG before you choose a method. Put in what you measured, what you did not, and which arrows you believe. A missing arrow is a claim too.
  • Predictive is not causal. In our data Nugent score and IL-1β predict preterm birth, and neither one caused it in the model that built the outcome. Every top-feature list, loading plot and network has the same limit.
  • “Doesn’t improve the prediction” is not “doesn’t matter.” A cause whose effect runs through the other table adds little to a prediction.
  • PLS goes after big groups of co-expressed genes, and the genes it selects are representatives of a group. Rerun on resampled people and the list changes.
  • With thousands of features, any labels separate on the training data. Only cross-validated numbers count, and every step that looks at the labels goes inside the cross-validation.
  • The simple baseline is hard to beat. Two hand-picked scores in a glm (cross-validated AUC 0.83) did better than DIABLO on 2,059 features (0.80).

Try it yourself

Notebook notebooks/06-integration.qmd in your Codespace walks through four exercises, as requests to Pi:

  1. Draw it first. Sketch a DAG for preterm birth, then rank three predictors by AUC and say which are causes.
  2. A baseline you can trust. Cross-validate the two-score glm from the lecture.
  3. Shuffled labels. Fit sparse PLS-DA with real and shuffled labels, compare the training plots, then the cross-validated AUC. Then watch a leak make noise look predictive.
  4. Patterns, then DIABLO. Sparse PLS between the species and gene tables, how stable its gene list is, and whether DIABLO beats the baseline.

The notebook needs the mixOmics package. New Codespaces have it. In an older one, the notebook’s setup chunk installs it the first time, which takes a few minutes.

The DAG you draw can be on paper or in Excalidraw.

More integration methods

A longer deck on multiomics integration, covering methods from correlation to multi-block factor models.

Further reading