Skip to content

Commit 3b02a35

Browse files
committed
docs update
1 parent 9383ffe commit 3b02a35

43 files changed

Lines changed: 675 additions & 675 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

site_docs/cartridges/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ you can pin in CI.</p>
88
## The three guides
99

1010
1. **[Build a reference cartridge](../guides/build-reference-cartridge.md)**
11-
the practical builder workflow from FASTA to `build()`.
11+
the practical builder workflow from FASTA to `build()`.
1212
Start here for any custom cartridge.
1313
2. **[Estimate models from data](../guides/estimate-cartridge-models.md)**
14-
turn an AIRR-like rearrangement table into empirical models
14+
turn an AIRR-like rearrangement table into empirical models
1515
on the cartridge (allele usage, trim, NP length, NP base,
1616
P-nucleotide length).
1717
3. **[Inspect manifest + build report](../guides/cartridge-manifest-report.md)**
18-
audit the cartridge's current state and how it was produced;
18+
audit the cartridge's current state and how it was produced;
1919
the canonical CI-gate surface.
2020

2121
## Background

site_docs/concepts/airr-record.md

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# The AIRR record
22

3-
<p class="lead">An AIRR record is one row of GenAIRR's output
3+
<p class="lead">An AIRR record is one row of GenAIRR's output -
44
one simulated molecule (or one paired-end read pair) with its
55
ground truth, its observed sequence, and the counters that
66
describe what happened on the way through the pipeline. This
@@ -13,7 +13,7 @@ the right field for the question you're asking.</p>
1313
A GenAIRR record is **not** an accumulator of fields filled in
1414
across the pipeline. It's computed once, at the end, by reading
1515
the final intermediate-representation pool. Coordinates, CIGARs,
16-
junction, productivity, calls everything is derived from one
16+
junction, productivity, calls - everything is derived from one
1717
source of truth, so nothing can drift out of sync.
1818

1919
Most simulators carry an AIRR record alongside the sequence and
@@ -25,7 +25,7 @@ chance to introduce a desynchronisation bug.
2525
GenAIRR keeps no such running record. Coordinates exist only on
2626
the final pool. CIGARs are walked once at the end. `productive`
2727
is decided by reading the junction codons from the final state.
28-
There is no parallel state to fall out of sync there is
28+
There is no parallel state to fall out of sync - there is
2929
nothing to fall out of sync *with*.
3030

3131
That property is also why the [`validate_records`](../validation/validate-records.md)
@@ -68,7 +68,7 @@ The remaining sections walk through each.
6868

6969
| Field | Type | Meaning |
7070
|---|---|---|
71-
| `sequence_id` | str | `"{prefix}{i}"` defaults to `"seq0"`, `"seq1"`, … |
71+
| `sequence_id` | str | `"{prefix}{i}"` - defaults to `"seq0"`, `"seq1"`, … |
7272
| `sequence` | str | The observed nucleotide sequence; lower-case bases mark corrupted positions (low quality / PCR / sequencing error) |
7373
| `sequence_aa` | str | Amino-acid translation in the V reading frame |
7474
| `sequence_alignment` | str | Gapped sequence aligned to the germline (when present) |
@@ -78,7 +78,7 @@ The remaining sections walk through each.
7878
| `rev_comp` | bool | `True` when the projection reverse-complemented the molecule (set by `random_strand_orientation`) |
7979
| `locus` | str | Cartridge identity (e.g. `"IGH"`, `"TRB"`) |
8080

81-
The lower-case base convention on `sequence` is load-bearing
81+
The lower-case base convention on `sequence` is load-bearing -
8282
the FASTQ exporter (`to_fastq` / `to_paired_fastq`) routes those
8383
positions to the low-quality bucket. See the
8484
[Corruption + sequencing artefacts guide](../guides/corruption-sequencing.md)
@@ -92,7 +92,7 @@ truth_v_call, truth_d_call, truth_j_call ← provenance (opt-in)
9292
```
9393

9494
`v_call` (and `d_call`, `j_call`) carry the **resolved allele
95-
name** committed during recombination or the post-revision
95+
name** committed during recombination - or the post-revision
9696
identity after `receptor_revision()`. The call field is a
9797
comma-separated **tie set** when the engine sampled an
9898
indistinguishable group:
@@ -108,7 +108,7 @@ wants to credit ambiguity fractionally should split and divide.
108108
Either policy is valid; just pick one.
109109

110110
**`d_call`** is empty (`""`) on VJ-chain records (kappa, lambda,
111-
TCR alpha). The empty string not `None` is the canonical
111+
TCR alpha). The empty string - not `None` - is the canonical
112112
absent value, mirroring how missing fields work in AIRR TSV.
113113

114114
### Truth columns (opt-in)
@@ -130,7 +130,7 @@ load-bearing in two cases:
130130
[Clonal simulation overview](../guides/clonal-families.md)).
131131
- **Aligner benchmarking** treats `v_call` as the aligner's
132132
prediction and `truth_*_call` as the ground truth, even when
133-
both came from the same simulator the column split makes the
133+
both came from the same simulator - the column split makes the
134134
benchmark script's join symmetric.
135135

136136
Without `expose_provenance=True`, the truth columns are absent
@@ -149,7 +149,7 @@ entirely.
149149
| `stop_codon` | bool | `True` iff a stop codon exists in `sequence_aa` |
150150

151151
When the pipeline includes `.productive_only()`, every record
152-
has `productive: True` by construction the constraint masks
152+
has `productive: True` by construction - the constraint masks
153153
the sampling support before the draw, so the engine never
154154
produces an unproductive record in the first place. See
155155
[Recombination and junction biology](../guides/recombination-junction.md#productivity)
@@ -177,10 +177,10 @@ For each of V, D, J:
177177
| `v_trim_3` | Bases removed from the V allele's 3′ end during recombination |
178178
| `d_trim_5`, `d_trim_3` | Bases removed from the D allele's 5′ and 3′ ends |
179179
| `j_trim_5` | Bases removed from the J allele's 5′ end |
180-
| `v_trim_5`, `j_trim_3` | Always `0` these positions aren't trimmed during recombination (the canonical biology) |
180+
| `v_trim_5`, `j_trim_3` | Always `0` - these positions aren't trimmed during recombination (the canonical biology) |
181181

182182
These four trim fields are the recombination-stage diet. They
183-
are **not** the observation-stage length loss that's
183+
are **not** the observation-stage length loss - that's
184184
`end_loss_5_length` and `end_loss_3_length` (next section).
185185
Mixing them up is the most common confusion on the record
186186
surface; the trim fields describe biology (the recombinase
@@ -191,14 +191,14 @@ end-loss describes the sequencer (the read ran short).
191191

192192
| Field | Meaning |
193193
|---|---|
194-
| `np1` | Non-templated bases between V and D ends **P-clean** (V–D junction in VDJ; V–J junction in VJ) |
195-
| `np2` | Non-templated bases between D and J ends **P-clean** (VDJ only; empty on VJ) |
194+
| `np1` | Non-templated bases between V and D ends - **P-clean** (V–D junction in VDJ; V–J junction in VJ) |
195+
| `np2` | Non-templated bases between D and J ends - **P-clean** (VDJ only; empty on VJ) |
196196
| `np1_aa`, `np2_aa` | Amino-acid translations |
197197
| `np1_length`, `np2_length` | Lengths in nucleotides |
198198

199199
`np1` and `np2` are the **non-templated** strings only. When the
200200
engine claims a P-nucleotide span back as a templated extension
201-
of V, D, or J, those positions drop out of `np1` / `np2` the
201+
of V, D, or J, those positions drop out of `np1` / `np2` - the
202202
NP strings are P-clean by construction.
203203

204204
### P-nucleotide lengths
@@ -209,14 +209,14 @@ sampled during recombination:
209209
| Field | Meaning |
210210
|---|---|
211211
| `p_v_3_length` | Number of P bases off the V allele's 3′ end (V → NP1 side) |
212-
| `p_d_5_length` | Number of P bases off the D allele's 5′ end (NP1 → D side) VDJ only, `0` on VJ |
213-
| `p_d_3_length` | Number of P bases off the D allele's 3′ end (D → NP2 side) VDJ only, `0` on VJ |
212+
| `p_d_5_length` | Number of P bases off the D allele's 5′ end (NP1 → D side) - VDJ only, `0` on VJ |
213+
| `p_d_3_length` | Number of P bases off the D allele's 3′ end (D → NP2 side) - VDJ only, `0` on VJ |
214214
| `p_j_5_length` | Number of P bases off the J allele's 5′ end (NP2 → J side on VDJ; NP1 → J side on VJ) |
215215

216216
P bases **contribute to `sequence` and `junction`** (they are
217217
real palindromic nucleotides in the assembled molecule) but
218218
`np1` / `np2` remain N-only. **GenAIRR exposes P lengths, not P
219-
strings** there is no per-base P field. If you need the actual
219+
strings** - there is no per-base P field. If you need the actual
220220
P-nucleotide bases for a record, slice them from `sequence` using
221221
the per-segment coordinates plus the four length fields.
222222

@@ -256,7 +256,7 @@ it ever breaks.
256256

257257
**`n_mutations` is biology only.** PCR errors, sequencing
258258
errors, indel-pass errors, and end-loss never increment these
259-
counters they have their own.
259+
counters - they have their own.
260260

261261
### V-subregion mutation partition
262262

@@ -292,13 +292,13 @@ end_loss_3_length ← bases lost from the 3′ end (EndLossPass / primer_tr
292292
is_contaminant ← True when this record is a contaminant (set by `contaminate`)
293293
```
294294

295-
`n_v_indels + n_d_indels + n_j_indels ≤ n_indels` indels that
295+
`n_v_indels + n_d_indels + n_j_indels ≤ n_indels` - indels that
296296
land in NP1 or NP2 are counted in `n_indels` but not in any
297297
per-segment bucket (NP indels don't belong to a germline
298298
segment).
299299

300300
`primer_trim_*prime` is a backwards-compatibility alias for
301-
`end_loss_*prime` both write the same `end_loss_*_length`
301+
`end_loss_*prime` - both write the same `end_loss_*_length`
302302
field.
303303

304304
## Advanced mechanism provenance
@@ -310,7 +310,7 @@ decisions:
310310
|---|---|---|
311311
| `d_inverted` | bool | `True` when `invert_d()` committed the D allele in reverse-complement orientation; `False` otherwise (VJ chains, VDJ without `invert_d`, inversion that landed on the forward branch) |
312312
| `receptor_revision_applied` | bool | `True` when `receptor_revision()` fired and replaced the committed V; `False` otherwise |
313-
| `original_v_call` | str | When `receptor_revision_applied: True`, the V allele name the recombine pass originally committed (before revision). Empty string `""` otherwise never `None` |
313+
| `original_v_call` | str | When `receptor_revision_applied: True`, the V allele name the recombine pass originally committed (before revision). Empty string `""` otherwise - never `None` |
314314

315315
When `receptor_revision_applied: True`, `v_call` reports the
316316
**post-revision identity** and `original_v_call` carries the
@@ -392,7 +392,7 @@ the SHM partition (`n_mutations`, `n_v_mutations`,
392392
V-subregion fields) describes biology. `n_pcr_errors`,
393393
`n_quality_errors`, `n_indels`, and the end-loss lengths
394394
describe library / sequencer artefacts. They live on the same
395-
record by design they don't share a counter.
395+
record by design - they don't share a counter.
396396

397397
**Assuming call fields are single alleles.** `v_call`,
398398
`d_call`, and `j_call` can be comma-separated tie sets. Split on
@@ -406,7 +406,7 @@ artefact (the read ran short / was 3′ end-loss-clipped). The
406406
field names are similar; the biology is different.
407407

408408
**Inferring P-nucleotides from `np1` / `np2`.** Don't. The NP
409-
strings are P-clean P bases that have been claimed back as
409+
strings are P-clean - P bases that have been claimed back as
410410
templated extensions of V / D / J are deliberately excluded
411411
from `np1` / `np2`. Use the four `p_*_length` fields
412412
(`p_v_3_length`, `p_d_5_length`, `p_d_3_length`, `p_j_5_length`)
@@ -418,14 +418,14 @@ if you need the actual P bases.
418418
eight read-layout fields are present in every record but default
419419
to empty / zero on single-molecule pipelines. `r1_sequence ==
420420
""` is the canonical "no paired-end projection ran" check. Don't
421-
try to write FASTQ from a single-molecule pipeline `to_fastq`
421+
try to write FASTQ from a single-molecule pipeline - `to_fastq`
422422
emits the assembled sequence; `to_paired_fastq` raises if
423423
`read_layout != "paired_end"`.
424424

425425
**Expecting `truth_*_call` columns to always be present.** They
426426
appear only when `expose_provenance=True` is passed to
427427
`run_records(...)`. Without the flag, the columns are absent
428-
entirely not `None`-valued, absent.
428+
entirely - not `None`-valued, absent.
429429

430430
**Expecting `clone_id` on non-clonal records.** Without a clonal
431431
workflow (`clonal_lineage`, `clonal_repertoire`, or legacy
@@ -436,14 +436,14 @@ all. Check for presence with `"clone_id" in rec`, not
436436
## Where to go next
437437

438438
- **[Your first AIRR record](../getting-started/first-airr-record.md)**
439-
a worked walk-through of one record, field by field.
439+
a worked walk-through of one record, field by field.
440440
- **[Export the results](../getting-started/export-results.md)**
441-
how records become TSV / CSV / FASTA / FASTQ.
441+
how records become TSV / CSV / FASTA / FASTQ.
442442
- **[SHM and mutation targeting](../guides/shm-targeting.md)**
443-
the SHM counters in depth.
443+
the SHM counters in depth.
444444
- **[Corruption and sequencing artefacts](../guides/corruption-sequencing.md)**
445-
the artefact counters in depth.
446-
- **[Clonal simulation overview](../guides/clonal-families.md)**
445+
the artefact counters in depth.
446+
- **[Clonal simulation overview](../guides/clonal-families.md)** -
447447
`clone_id`, `duplicate_count`, lineage metadata, and family validation.
448-
- **[Validation hub](../validation/index.md)** re-deriving every
448+
- **[Validation hub](../validation/index.md)** - re-deriving every
449449
field from the underlying `Outcome`.

site_docs/concepts/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
# Core Concepts
22

33
<p class="lead">The two conceptual surfaces every GenAIRR user
4-
ends up needing the AIRR record and the reference cartridge.
4+
ends up needing - the AIRR record and the reference cartridge.
55
Read these once and the rest of the docs make sense.</p>
66

77
## The two concept pages
88

9-
- **[The AIRR record](airr-record.md)** what's in one output
9+
- **[The AIRR record](airr-record.md)** - what's in one output
1010
row, organised by field category. Sequence, calls, junction,
1111
productivity, mutation counters, artefact counters, clonal
1212
fields, paired-end layout, and the P-clean / P-length
1313
distinction.
14-
- **[Reference cartridge](reference-cartridge.md)** the
14+
- **[Reference cartridge](reference-cartridge.md)** - the
1515
four-plane model (identity, catalogue, rules, empirical
1616
models) plus the manifest surface for inspecting one.
1717

0 commit comments

Comments
 (0)