feat(schema): 2.1 types, fragments, and JSON Schemas
Add the term, equation, value, and misconception registries (src/model/course/glossary.rs) and the new optional fields on objectives, targets, lectures, readings, bank options, and policy. Load registry entries from objective files, glossary.yaml, and course.yaml, with one definition site per id as for every other registry. Port every edit in docs/design/2.1/build_schemas.py into the hand-written schema builders, add glossary.schema.json, and test the generated schemas against the targets; the only differences are two 2.0 spellings the code already had. The 2.0 example fragments load and validate unchanged. The 2.1 example bank gains `status: draft`, which every coursebank item requires. tests/docs.rs skips docs/design/, which holds design records rather than guide pages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
47 files changed
+10568
-55
No files matched your search
@@ -0,0 +1,28 @@
|
||||
# lectures/l09.yaml (coursebank 2.1)
|
||||
lectures:
|
||||
l09:
|
||||
title: Pairwise alignment
|
||||
unit: u1
|
||||
description: >-
|
||||
How alike are two sequences? This lecture scores one alignment column by column, shows that there are far too
|
||||
many alignments to score one at a time ({val-alignment-count-100} for two 100-letter sequences), and builds the
|
||||
table that finds the best one anyway. It ends on when to align end to end and when to look for a shared region.
|
||||
teaches:
|
||||
- lo-alignment-scoring
|
||||
- lo-alignment-recurrence
|
||||
materials:
|
||||
- { kind: slides, url: 'https://example.edu/slides/l09' }
|
||||
- { kind: brief, title: 'Lecture brief', url: 'https://example.edu/briefs/l09' }
|
||||
- { kind: notebook, title: 'Fill a matrix in Python', url: 'https://example.edu/notebooks/l09.ipynb' }
|
||||
readings:
|
||||
- ref: durbin1998biological
|
||||
locator: 'ch. 2'
|
||||
minutes: 40
|
||||
targets: [t-align-matrix-terms, t-align-score-columns, t-align-fill-matrix, t-align-local-vs-global-diagnose]
|
||||
summary: >-
|
||||
Introduces the alignment matrix and {eq-global-recurrence}, then contrasts the global and local fills.
|
||||
focus: >-
|
||||
Fill one small matrix by hand and follow the traceback ({t-align-fill-matrix}). Watch what changes at the
|
||||
matrix boundaries and where the traceback starts; that is the whole global-versus-local distinction.
|
||||
skip: >-
|
||||
Gloss the affine-gap extension. It comes in a later lecture.
|
||||
Reference in new issue
Block a user