mhcseqs 2.6.0__tar.gz → 2.6.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. {mhcseqs-2.6.0 → mhcseqs-2.6.2}/PKG-INFO +4 -2
  2. {mhcseqs-2.6.0 → mhcseqs-2.6.2}/README.md +3 -1
  3. {mhcseqs-2.6.0 → mhcseqs-2.6.2}/mhcseqs/alleles.py +10 -1
  4. {mhcseqs-2.6.0 → mhcseqs-2.6.2}/mhcseqs/diverse_mhc_sequences.csv +239 -239
  5. {mhcseqs-2.6.0 → mhcseqs-2.6.2}/mhcseqs/domain_grammar.py +1 -1
  6. {mhcseqs-2.6.0 → mhcseqs-2.6.2}/mhcseqs/domain_parsing.py +1 -0
  7. {mhcseqs-2.6.0 → mhcseqs-2.6.2}/mhcseqs/mhc_prefix_aliases.csv +16 -0
  8. mhcseqs-2.6.2/mhcseqs/version.py +1 -0
  9. {mhcseqs-2.6.0 → mhcseqs-2.6.2}/mhcseqs.egg-info/PKG-INFO +4 -2
  10. {mhcseqs-2.6.0 → mhcseqs-2.6.2}/mhcseqs.egg-info/SOURCES.txt +1 -0
  11. {mhcseqs-2.6.0 → mhcseqs-2.6.2}/tests/test_alleles.py +5 -0
  12. {mhcseqs-2.6.0 → mhcseqs-2.6.2}/tests/test_groove.py +79 -0
  13. mhcseqs-2.6.2/tests/test_historical_prefix_provenance.py +96 -0
  14. {mhcseqs-2.6.0 → mhcseqs-2.6.2}/tests/test_species.py +1 -1
  15. mhcseqs-2.6.0/mhcseqs/version.py +0 -1
  16. {mhcseqs-2.6.0 → mhcseqs-2.6.2}/LICENSE +0 -0
  17. {mhcseqs-2.6.0 → mhcseqs-2.6.2}/mhcseqs/__init__.py +0 -0
  18. {mhcseqs-2.6.0 → mhcseqs-2.6.2}/mhcseqs/__main__.py +0 -0
  19. {mhcseqs-2.6.0 → mhcseqs-2.6.2}/mhcseqs/b2m_sequences.csv +0 -0
  20. {mhcseqs-2.6.0 → mhcseqs-2.6.2}/mhcseqs/datafiles.py +0 -0
  21. {mhcseqs-2.6.0 → mhcseqs-2.6.2}/mhcseqs/download.py +0 -0
  22. {mhcseqs-2.6.0 → mhcseqs-2.6.2}/mhcseqs/imgt.py +0 -0
  23. {mhcseqs-2.6.0 → mhcseqs-2.6.2}/mhcseqs/mouse_h2_sequences.csv +0 -0
  24. {mhcseqs-2.6.0 → mhcseqs-2.6.2}/mhcseqs/pipeline.py +0 -0
  25. {mhcseqs-2.6.0 → mhcseqs-2.6.2}/mhcseqs/species.py +0 -0
  26. {mhcseqs-2.6.0 → mhcseqs-2.6.2}/mhcseqs/validate.py +0 -0
  27. {mhcseqs-2.6.0 → mhcseqs-2.6.2}/mhcseqs.egg-info/dependency_links.txt +0 -0
  28. {mhcseqs-2.6.0 → mhcseqs-2.6.2}/mhcseqs.egg-info/entry_points.txt +0 -0
  29. {mhcseqs-2.6.0 → mhcseqs-2.6.2}/mhcseqs.egg-info/requires.txt +0 -0
  30. {mhcseqs-2.6.0 → mhcseqs-2.6.2}/mhcseqs.egg-info/top_level.txt +0 -0
  31. {mhcseqs-2.6.0 → mhcseqs-2.6.2}/pyproject.toml +0 -0
  32. {mhcseqs-2.6.0 → mhcseqs-2.6.2}/setup.cfg +0 -0
  33. {mhcseqs-2.6.0 → mhcseqs-2.6.2}/tests/test_cli.py +0 -0
  34. {mhcseqs-2.6.0 → mhcseqs-2.6.2}/tests/test_curate_diverse_mhc.py +0 -0
  35. {mhcseqs-2.6.0 → mhcseqs-2.6.2}/tests/test_datafiles.py +0 -0
  36. {mhcseqs-2.6.0 → mhcseqs-2.6.2}/tests/test_download.py +0 -0
  37. {mhcseqs-2.6.0 → mhcseqs-2.6.2}/tests/test_evaluate_sp_ground_truth.py +0 -0
  38. {mhcseqs-2.6.0 → mhcseqs-2.6.2}/tests/test_groove_class_ii.py +0 -0
  39. {mhcseqs-2.6.0 → mhcseqs-2.6.2}/tests/test_imgt.py +0 -0
  40. {mhcseqs-2.6.0 → mhcseqs-2.6.2}/tests/test_mutations.py +0 -0
  41. {mhcseqs-2.6.0 → mhcseqs-2.6.2}/tests/test_package_api.py +0 -0
  42. {mhcseqs-2.6.0 → mhcseqs-2.6.2}/tests/test_pipeline.py +0 -0
  43. {mhcseqs-2.6.0 → mhcseqs-2.6.2}/tests/test_sp_overcapture.py +0 -0
  44. {mhcseqs-2.6.0 → mhcseqs-2.6.2}/tests/test_species_coverage.py +0 -0
  45. {mhcseqs-2.6.0 → mhcseqs-2.6.2}/tests/test_validate.py +0 -0
  46. {mhcseqs-2.6.0 → mhcseqs-2.6.2}/tests/test_version.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mhcseqs
3
- Version: 2.6.0
3
+ Version: 2.6.2
4
4
  Summary: MHC sequence curation and binding groove extraction
5
5
  License-Expression: Apache-2.0
6
6
  Classifier: Development Status :: 4 - Beta
@@ -267,13 +267,15 @@ Signal-peptide logic follows the standard SPase grammar:
267
267
  - **[mhcgnomes](https://github.com/pirl-unc/mhcgnomes) >= 3.41.0** — allele parsing, species provenance, NHP taxonomy, and species-directed gene classification
268
268
 
269
269
  mhcseqs emits full-binomial species aliases such as `HomoSapiens-A*02:01`
270
- and `MusMusculus-K*b`. Its input registry accepts 460 current, historical, and
270
+ and `MusMusculus-K*b`. Its input registry accepts 476 current, historical, and
271
271
  external-database prefix assignments—including all 137 designation tokens in
272
272
  the current 125-organism IPD-MHC taxonomy register—and records an evidence URL
273
273
  for every one. Colliding short codes require explicit species context. mhcseqs
274
274
  does not invent abbreviated species prefixes, and mechanically generated
275
275
  2+2/4+4/5+5 aliases are rejected unless that exact spelling has external
276
276
  evidence. See the [prefix audit](data/species_prefix_audit_20260831.md).
277
+ The audit includes a versioned UniProtKB/UniSave provenance snapshot for all
278
+ 239 records behind the 21 historical pairs that previously lacked raw inputs.
277
279
 
278
280
  No alignment tools, BLAST, or structure databases are required.
279
281
 
@@ -246,13 +246,15 @@ Signal-peptide logic follows the standard SPase grammar:
246
246
  - **[mhcgnomes](https://github.com/pirl-unc/mhcgnomes) >= 3.41.0** — allele parsing, species provenance, NHP taxonomy, and species-directed gene classification
247
247
 
248
248
  mhcseqs emits full-binomial species aliases such as `HomoSapiens-A*02:01`
249
- and `MusMusculus-K*b`. Its input registry accepts 460 current, historical, and
249
+ and `MusMusculus-K*b`. Its input registry accepts 476 current, historical, and
250
250
  external-database prefix assignments—including all 137 designation tokens in
251
251
  the current 125-organism IPD-MHC taxonomy register—and records an evidence URL
252
252
  for every one. Colliding short codes require explicit species context. mhcseqs
253
253
  does not invent abbreviated species prefixes, and mechanically generated
254
254
  2+2/4+4/5+5 aliases are rejected unless that exact spelling has external
255
255
  evidence. See the [prefix audit](data/species_prefix_audit_20260831.md).
256
+ The audit includes a versioned UniProtKB/UniSave provenance snapshot for all
257
+ 239 records behind the 21 historical pairs that previously lacked raw inputs.
256
258
 
257
259
  No alignment tools, BLAST, or structure databases are required.
258
260
 
@@ -218,6 +218,7 @@ def parse_allele_name(
218
218
  initial_candidates.append(raw)
219
219
 
220
220
  candidates = []
221
+ saw_ambiguous_alias = False
221
222
  for initial in initial_candidates:
222
223
  source_candidates, ambiguous = _source_alias_candidates(
223
224
  initial,
@@ -225,11 +226,19 @@ def parse_allele_name(
225
226
  mhcgnomes=mhcgnomes,
226
227
  )
227
228
  if ambiguous:
228
- return None
229
+ # Coercion can turn an unambiguous historical spelling into a
230
+ # colliding modern one (H-2 -> H2). Keep trying the original
231
+ # source spelling; reject only when no unambiguous candidate is
232
+ # available.
233
+ saw_ambiguous_alias = True
234
+ continue
229
235
  for candidate in source_candidates:
230
236
  if candidate not in candidates:
231
237
  candidates.append(candidate)
232
238
 
239
+ if not candidates and saw_ambiguous_alias:
240
+ return None
241
+
233
242
  for candidate in candidates:
234
243
  try:
235
244
  parsed = parse_fn(candidate, **kwargs)