Complete cohort studies

Start with the subjects and sampling design. Follow the same visible steps for usable studies, and retain the failed check when the design cannot identify the comparison.

Choose an artificial study

Generate one of these examples locally, open its files, and choose Cohort → Guided steps (also available in Tracking). These are controlled software demonstrations with fictional receptors and complete generating truth. They are not fitted human populations or antigen-specificity models.

ExampleSubjects and observationsPurpose
Replicated independent clonotype counts16 control + 16 stimulated; 32 samplesPositive effects with heterogeneous gamma-Poisson counts and uneven sampling depths.
Replicated counts with no group effect16 + 16; 32 samplesAll generating group effects are zero; subject, batch and sampling variation remain.
Unbalanced cohort study12 control + 20 stimulated; 32 samplesBoth batches occur in each group. Unequal group sizes do not by themselves make a contrast unidentifiable.
Replicated paired clonotype counts28 subjects, day 0 and day 14; 56 samplesRepeated samples are paired within subjects, with a subject-blocked count model.
Fully confounded cohort study16 controls in B1 + 16 stimulated in B2Batch and group effects cannot be separated. Keep the failed check; run no group inference.

Follow the saved analysis chain

  1. Record subjects, groups and batches. This teaching step applies the generator's documented annotations and saves a named design check. Every sample stays in the report. In real studies, supply the actual design rather than borrowing these assignments.
  2. Save observed-depth subject features. Measure diversity, then bind the exact diversity result to the saved design version. Each subject/group observation retains its own sample's values, units, missingness, definition and QC. Richness remains dependent on observed sampling depth.
  3. Compare three declared subject features. The guide selects richness, Shannon entropy and Hill diversity q=1, with 95% marginal intervals, 9,999 requested randomizations and seed 20261025. Both mean and rank tests enter the declared BH family. These feature tests do not adjust for batch; read the sampling/design limits.
  4. Fit counts with an explicit batch term. Use raw clonotype UMI counts, total-count offsets, minimum count 10 in at least 12 observations, 95% conditional intervals and an estimable batch term. The paired study also includes subject blocks. Inspect filtered/failed fits and the full multiplicity family. These are unmoderated NB2 fits, not full edgeR or DESeq2.
  5. Keep methods and references. Each result is saved automatically with exact parents and parameters. Export complete tables and source notices from its view. Reopen the saved results without refitting. Repeating the design step creates a new version; rebuild its feature table before continuing.
Saved unbalanced cohort count analysis with 12 control and 20 stimulated subject observations, abundance and fitted effects, and a separate conditional effect intervalSaved unbalanced cohort count analysis with 12 control and 20 stimulated subject observations, abundance and fitted effects, and a separate conditional effect interval
Every point in the selected-clonotype panel is one subject observation. No subjects were removed to balance the groups. The selected clone illustrates an effect near zero; color marks selection and group, not discovery.

Keep an unidentifiable design visible

The fully confounded example has a 1.2-fold generating B2 effect as well as planted group effects. No within-batch group comparison exists. The guide saves its failed check, including the complete batch membership, and stops. More cells, deeper sequencing or adding a batch term cannot restore the missing comparison. The saved check is marked FAILED CHECK, cannot be selected as a feature design, and appears in cited Methods. It is an inspection record, not a fitted result.

Fully confounded artificial design with 16 subjects in each group, a saved failed check, and an explicit group-inseparable-from-batch findingFully confounded artificial design with 16 subjects in each group, a saved failed check, and an explicit group-inseparable-from-batch finding
A failed design check is a useful result of design review. Zero analysis artifacts are created for this example.

Interpret the evidence

Count effects are changes in relative repertoire abundance conditional on library offsets and the fitted design. They need not equal the generator's absolute count effects. The abundance/effect panel has a logarithmic horizontal abundance scale and a linear log2-effect axis centered on zero. Subject observations use a zero-based linear CPM scale; paired links join the same subject. Raw CPM points are not batch-adjusted fitted values. Wald intervals treat the fitted dispersion as known and are marginal, not BH-adjusted simultaneous intervals.

Uneven counts, a private long tail and subject variation make these examples useful for exercising research workflows; their particular sample sizes and filters are software policies, not power recommendations. One null study does not establish calibration or guarantee zero small p-values. The independent scientific suite separately checks numerical reference values, null panels and positive controls. A structural pass does not establish randomization, independence, absence of hidden confounding or a causal effect.

Compatibility and scientific basis

The 0.7.0 compatibility project retains all five studies, five design checks and sixteen analysis artifacts. Validation reopens the sources and recomputes each saved diversity, feature, comparison and count result byte for byte. Complete source and truth hashes are checked, and older release projects remain part of the same regression suite.

The subject-unit distinction follows Lazic (2010). Count modeling and exact adaptations are documented with sources in Replicated counts; group estimands and multiplicity in Group comparisons. See simulation rules and research notes. No new inferential method is introduced by these guides.