diff --git a/docs/notes/2026-11-21_nearest-reference-v090-values.md b/docs/notes/2026-11-21_nearest-reference-v090-values.md new file mode 100644 index 00000000..402bf761 --- /dev/null +++ b/docs/notes/2026-11-21_nearest-reference-v090-values.md @@ -0,0 +1,19 @@ +# `nearest_reference` on the v0.9.0 campaign: real values (#200) + +Date 2026-11-21. Job 32359463; `label_loci_table.py` at `main` f901c929 on `results/2026-11-09_v090_ascomycota/loci.tsv` (20,844 loci). Counts in `results/2026-11-21_nearest_reference_200/summary.tsv`; the full table stays on the HPCC. This is the step PR #311 left open ("tables not regenerated, curator has not seen real values"). + +## Tests from the issue, on real data +- Every locus has a value: 0 blank, 1 explicit `none` (an undetermined-allele locus), 20,844 of 20,844 labelled. +- Same input, same output was tested in #311 on fixtures; not re-run here. +- 63 `NoRef` loci: `Peziz__NoRef_MAT1-1` 31, `_MAT1-2` 31, `_undet` 1. The v0.7.0 count was also 63 (31 / 32); I compared the counts only, not the loci one by one. + +## What the column says +- **NoRef loci** sit nearest the frozen references XanPar (16 loci have it first in MAT1-1-1 or MAT1-2-1; I did not total the other groups), NeuCra, AspFum, BipMay and BotCin. Examples: `MAT1-2-1=NeuCra` 9, `MAT1-2-1=XanPar` 9, `MAT1-1-1=XanPar` 7, `MAT1-2-1=AspFum` 5, `MAT1-2-1=BipMay` 4. Multi-gene loci list each core gene, for example `MAT1-1-1=BipMay|MAT1-1-4=AspFum`, and genes of one locus can point to different references. +- **Undetermined-allele loci (976):** mostly NeuCra (460) and BipMay (133) by MAT1-1-1, then the yeast records. +- **Commonest values overall:** `MAT1-2-1=NeuCra` 1,829; the three-gene NeuCra locus 1,485; the S. cerevisiae MAT locus 1,101 and 987; the A. fumigatus locus 916; the C. auris MTL-A locus 663. + +## Question for the curator +Yeast loci (Saccharomycotina) show the matched record id (for example `MATA2=4932_s288c_MATsc_HMRa`, `MTLA2=4959_cbs767_MTL_A`), not a system code. That is the fallback the definition gives for a record whose class has no registry code, because `pezizomycotina_class_systems` only covers Pezizomycotina classes. Should yeast records map to their system code (for example MATsc to SacCer, MTL to CanAlb), so one column reads the same across the tree? Without the change, the column is unambiguous but mixes codes and record ids. + +## Caveat +Record classes are read from the current `db/`, which has records added after the campaign's frozen copy (MTLA2, the two Exophiala records). I did not check whether these records change any locus's matched reference, and I did not diff the column against the frozen db. diff --git a/results/2026-11-21_nearest_reference_200/RUN.txt b/results/2026-11-21_nearest_reference_200/RUN.txt new file mode 100644 index 00000000..af6211ed --- /dev/null +++ b/results/2026-11-21_nearest_reference_200/RUN.txt @@ -0,0 +1,2 @@ +nearest_reference on the v0.9.0 campaign loci (#200), 2026-11-21, job 32359463 (HPCC, 6 s). +scripts/label_loci_table.py at origin/main f901c929 (registry 2026-10-30+5c01ddd5), --loci results/2026-11-09_v090_ascomycota/loci.tsv (20,844 loci, has core_reference), --db db/ of that commit (record classes read from the current db/, which has the MTLA2 and Exophiala records added after the campaign's frozen copy). Full labelled table (loci_labelled.tsv) stays on the HPCC; summary.tsv (label counts) is kept here. diff --git a/results/2026-11-21_nearest_reference_200/summary.tsv b/results/2026-11-21_nearest_reference_200/summary.tsv new file mode 100644 index 00000000..1e5fb5eb --- /dev/null +++ b/results/2026-11-21_nearest_reference_200/summary.tsv @@ -0,0 +1,52 @@ +family_called idiomorph label status loci +Ascomycota:MAT MAT1-1 Peziz__AspFum_MAT1-1 labelled 1649 +Ascomycota:MAT MAT1-1 Peziz__BipMay_MAT1-1 labelled 1412 +Ascomycota:MAT MAT1-1 Peziz__BotCin_MAT1-1 labelled 203 +Ascomycota:MAT MAT1-1 Peziz__NeuCra_MAT1-1 labelled 2487 +Ascomycota:MAT MAT1-1 Peziz__NoRef_MAT1-1 labelled 31 +Ascomycota:MAT MAT1-1 Peziz__TubMel_MAT1-1 labelled 1 +Ascomycota:MAT MAT1-1 Peziz__XanPar_MAT1-1 labelled 213 +Ascomycota:MAT MAT1-2 Peziz__AspFum_MAT1-2 labelled 1636 +Ascomycota:MAT MAT1-2 Peziz__BipMay_MAT1-2 labelled 1149 +Ascomycota:MAT MAT1-2 Peziz__BotCin_MAT1-2 labelled 173 +Ascomycota:MAT MAT1-2 Peziz__NeuCra_MAT1-2 labelled 2778 +Ascomycota:MAT MAT1-2 Peziz__NoRef_MAT1-2 labelled 31 +Ascomycota:MAT MAT1-2 Peziz__TubMel_MAT1-2 labelled 1 +Ascomycota:MAT MAT1-2 Peziz__XanPar_MAT1-2 labelled 216 +Ascomycota:MAT undetermined Peziz__AspFum_undet labelled 17 +Ascomycota:MAT undetermined Peziz__BipMay_undet labelled 144 +Ascomycota:MAT undetermined Peziz__BotCin_undet labelled 38 +Ascomycota:MAT undetermined Peziz__NeuCra_undet labelled 487 +Ascomycota:MAT undetermined Peziz__NoRef_undet labelled 1 +Ascomycota:MAT undetermined Peziz__XanPar_undet labelled 5 +Ascomycota:MATbz MATa Sacch__BarCal_a labelled 2 +Ascomycota:MATbz MATalpha Sacch__BarCal_alpha labelled 10 +Ascomycota:MATdc A Sacch__GeoCan_A labelled 20 +Ascomycota:MATdc B Sacch__GeoCan_B labelled 49 +Ascomycota:MATdc undetermined Sacch__GeoCan_undet labelled 1 +Ascomycota:MATkp MATa Sacch__KomPha_a labelled 183 +Ascomycota:MATkp MATalpha Sacch__KomPha_alpha labelled 17 +Ascomycota:MATog MATa Sacch__OgaPol_a labelled 90 +Ascomycota:MATog MATalpha Sacch__OgaPol_alpha labelled 112 +Ascomycota:MATpf MATa Sacch__PetFab_a labelled 6 +Ascomycota:MATpf MATalpha Sacch__PetFab_alpha labelled 3 +Ascomycota:MATpk MATa Sacch__PicKud_a labelled 46 +Ascomycota:MATpk MATalpha Sacch__PicKud_alpha labelled 42 +Ascomycota:MATsc MATa Sacch__SacCer_a labelled 1748 +Ascomycota:MATsc MATalpha Sacch__SacCer_alpha labelled 2605 +Ascomycota:MATsc undetermined Sacch__SacCer_undet labelled 268 +Ascomycota:MATss MATa Sacch__SacSch_a labelled 6 +Ascomycota:MATss MATalpha Sacch__SacSch_alpha labelled 9 +Ascomycota:MATtub MAT1-1 Peziz__TubMel_MAT1-1 labelled 78 +Ascomycota:MATtub MAT1-2 Peziz__TubMel_MAT1-2 labelled 61 +Ascomycota:MATyl A Sacch__YarLip_A labelled 46 +Ascomycota:MATyl B Sacch__YarLip_B labelled 33 +Ascomycota:MTL A Sacch__CanAlb_a labelled 1450 +Ascomycota:MTL alpha Sacch__CanAlb_alpha labelled 1120 +Ascomycota:MTL undetermined Sacch__CanAlb_undet labelled 17 +Ascomycota:PM M Taphr__SchPom_M labelled 9 +Ascomycota:PM P Taphr__SchPom_P labelled 5 +Ascomycota:mat1 M Taphr__SchPom_M labelled 35 +Ascomycota:mat1 P Taphr__SchPom_P labelled 21 +Ascomycota:mat2 P Taphr__SchPom_P labelled 40 +Ascomycota:mat3 M Taphr__SchPom_M labelled 40