mhcseqs 2.6.3__tar.gz → 2.6.4__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 (48) hide show
  1. {mhcseqs-2.6.3 → mhcseqs-2.6.4}/PKG-INFO +13 -13
  2. {mhcseqs-2.6.3 → mhcseqs-2.6.4}/README.md +12 -12
  3. mhcseqs-2.6.4/mhcseqs/version.py +1 -0
  4. {mhcseqs-2.6.3 → mhcseqs-2.6.4}/mhcseqs.egg-info/PKG-INFO +13 -13
  5. {mhcseqs-2.6.3 → mhcseqs-2.6.4}/mhcseqs.egg-info/SOURCES.txt +2 -0
  6. mhcseqs-2.6.4/tests/test_test_sh.py +42 -0
  7. mhcseqs-2.6.4/tests/test_update_readme_counts.py +32 -0
  8. mhcseqs-2.6.3/mhcseqs/version.py +0 -1
  9. {mhcseqs-2.6.3 → mhcseqs-2.6.4}/LICENSE +0 -0
  10. {mhcseqs-2.6.3 → mhcseqs-2.6.4}/mhcseqs/__init__.py +0 -0
  11. {mhcseqs-2.6.3 → mhcseqs-2.6.4}/mhcseqs/__main__.py +0 -0
  12. {mhcseqs-2.6.3 → mhcseqs-2.6.4}/mhcseqs/alleles.py +0 -0
  13. {mhcseqs-2.6.3 → mhcseqs-2.6.4}/mhcseqs/b2m_sequences.csv +0 -0
  14. {mhcseqs-2.6.3 → mhcseqs-2.6.4}/mhcseqs/datafiles.py +0 -0
  15. {mhcseqs-2.6.3 → mhcseqs-2.6.4}/mhcseqs/diverse_mhc_sequences.csv +0 -0
  16. {mhcseqs-2.6.3 → mhcseqs-2.6.4}/mhcseqs/domain_grammar.py +0 -0
  17. {mhcseqs-2.6.3 → mhcseqs-2.6.4}/mhcseqs/domain_parsing.py +0 -0
  18. {mhcseqs-2.6.3 → mhcseqs-2.6.4}/mhcseqs/download.py +0 -0
  19. {mhcseqs-2.6.3 → mhcseqs-2.6.4}/mhcseqs/imgt.py +0 -0
  20. {mhcseqs-2.6.3 → mhcseqs-2.6.4}/mhcseqs/mhc_prefix_aliases.csv +0 -0
  21. {mhcseqs-2.6.3 → mhcseqs-2.6.4}/mhcseqs/mouse_h2_sequences.csv +0 -0
  22. {mhcseqs-2.6.3 → mhcseqs-2.6.4}/mhcseqs/pipeline.py +0 -0
  23. {mhcseqs-2.6.3 → mhcseqs-2.6.4}/mhcseqs/species.py +0 -0
  24. {mhcseqs-2.6.3 → mhcseqs-2.6.4}/mhcseqs/validate.py +0 -0
  25. {mhcseqs-2.6.3 → mhcseqs-2.6.4}/mhcseqs.egg-info/dependency_links.txt +0 -0
  26. {mhcseqs-2.6.3 → mhcseqs-2.6.4}/mhcseqs.egg-info/entry_points.txt +0 -0
  27. {mhcseqs-2.6.3 → mhcseqs-2.6.4}/mhcseqs.egg-info/requires.txt +0 -0
  28. {mhcseqs-2.6.3 → mhcseqs-2.6.4}/mhcseqs.egg-info/top_level.txt +0 -0
  29. {mhcseqs-2.6.3 → mhcseqs-2.6.4}/pyproject.toml +0 -0
  30. {mhcseqs-2.6.3 → mhcseqs-2.6.4}/setup.cfg +0 -0
  31. {mhcseqs-2.6.3 → mhcseqs-2.6.4}/tests/test_alleles.py +0 -0
  32. {mhcseqs-2.6.3 → mhcseqs-2.6.4}/tests/test_cli.py +0 -0
  33. {mhcseqs-2.6.3 → mhcseqs-2.6.4}/tests/test_curate_diverse_mhc.py +0 -0
  34. {mhcseqs-2.6.3 → mhcseqs-2.6.4}/tests/test_datafiles.py +0 -0
  35. {mhcseqs-2.6.3 → mhcseqs-2.6.4}/tests/test_download.py +0 -0
  36. {mhcseqs-2.6.3 → mhcseqs-2.6.4}/tests/test_evaluate_sp_ground_truth.py +0 -0
  37. {mhcseqs-2.6.3 → mhcseqs-2.6.4}/tests/test_groove.py +0 -0
  38. {mhcseqs-2.6.3 → mhcseqs-2.6.4}/tests/test_groove_class_ii.py +0 -0
  39. {mhcseqs-2.6.3 → mhcseqs-2.6.4}/tests/test_historical_prefix_provenance.py +0 -0
  40. {mhcseqs-2.6.3 → mhcseqs-2.6.4}/tests/test_imgt.py +0 -0
  41. {mhcseqs-2.6.3 → mhcseqs-2.6.4}/tests/test_mutations.py +0 -0
  42. {mhcseqs-2.6.3 → mhcseqs-2.6.4}/tests/test_package_api.py +0 -0
  43. {mhcseqs-2.6.3 → mhcseqs-2.6.4}/tests/test_pipeline.py +0 -0
  44. {mhcseqs-2.6.3 → mhcseqs-2.6.4}/tests/test_sp_overcapture.py +0 -0
  45. {mhcseqs-2.6.3 → mhcseqs-2.6.4}/tests/test_species.py +0 -0
  46. {mhcseqs-2.6.3 → mhcseqs-2.6.4}/tests/test_species_coverage.py +0 -0
  47. {mhcseqs-2.6.3 → mhcseqs-2.6.4}/tests/test_validate.py +0 -0
  48. {mhcseqs-2.6.3 → mhcseqs-2.6.4}/tests/test_version.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mhcseqs
3
- Version: 2.6.3
3
+ Version: 2.6.4
4
4
  Summary: MHC sequence curation and binding groove extraction
5
5
  License-Expression: Apache-2.0
6
6
  Classifier: Development Status :: 4 - Beta
@@ -110,21 +110,21 @@ rows = mhcseqs.load_sequences_dict()
110
110
 
111
111
  ## Current data summary
112
112
 
113
- All sources (IMGT/HLA, IPD-MHC, UniProt curated references, and 15,860
114
- diverse MHC sequences from UniProt) are merged into a single dataset:
113
+ All sources (IMGT/HLA, IPD-MHC, and curated UniProt/GenBank references)
114
+ are merged into a single dataset. Categorized class I/II representatives:
115
115
 
116
116
  | Category | Class I | Class II | Total |
117
117
  |---|---:|---:|---:|
118
- | human | 17,841 | 8,013 | 25,854 |
119
- | nhp | 4,639 | 2,486 | 7,125 |
120
- | murine | 980 | 565 | 1,545 |
121
- | ungulate | 638 | 1,128 | 1,766 |
122
- | carnivore | 166 | 318 | 484 |
123
- | other_mammal | 1,015 | 740 | 1,755 |
124
- | bird | 11,906 | 6,690 | 18,596 |
125
- | fish | 2,439 | 7,106 | 9,545 |
126
- | other_vertebrate | 940 | 1,332 | 2,272 |
127
- | **total** | **40,564** | **28,378** | **68,942** |
118
+ | human | 18,041 | 8,196 | 26,237 |
119
+ | nhp | 4,475 | 2,414 | 6,889 |
120
+ | murine | 967 | 566 | 1,533 |
121
+ | ungulate | 654 | 1,132 | 1,786 |
122
+ | carnivore | 176 | 330 | 506 |
123
+ | other_mammal | 549 | 449 | 998 |
124
+ | bird | 5,975 | 3,337 | 9,312 |
125
+ | fish | 1,265 | 3,594 | 4,859 |
126
+ | other_vertebrate | 471 | 665 | 1,136 |
127
+ | **total** | **32,573** | **20,683** | **53,256** |
128
128
 
129
129
  Covering 558+ species. Groove parse success rate on IMGT/IPD-MHC
130
130
  entries: 99.3%.
@@ -89,21 +89,21 @@ rows = mhcseqs.load_sequences_dict()
89
89
 
90
90
  ## Current data summary
91
91
 
92
- All sources (IMGT/HLA, IPD-MHC, UniProt curated references, and 15,860
93
- diverse MHC sequences from UniProt) are merged into a single dataset:
92
+ All sources (IMGT/HLA, IPD-MHC, and curated UniProt/GenBank references)
93
+ are merged into a single dataset. Categorized class I/II representatives:
94
94
 
95
95
  | Category | Class I | Class II | Total |
96
96
  |---|---:|---:|---:|
97
- | human | 17,841 | 8,013 | 25,854 |
98
- | nhp | 4,639 | 2,486 | 7,125 |
99
- | murine | 980 | 565 | 1,545 |
100
- | ungulate | 638 | 1,128 | 1,766 |
101
- | carnivore | 166 | 318 | 484 |
102
- | other_mammal | 1,015 | 740 | 1,755 |
103
- | bird | 11,906 | 6,690 | 18,596 |
104
- | fish | 2,439 | 7,106 | 9,545 |
105
- | other_vertebrate | 940 | 1,332 | 2,272 |
106
- | **total** | **40,564** | **28,378** | **68,942** |
97
+ | human | 18,041 | 8,196 | 26,237 |
98
+ | nhp | 4,475 | 2,414 | 6,889 |
99
+ | murine | 967 | 566 | 1,533 |
100
+ | ungulate | 654 | 1,132 | 1,786 |
101
+ | carnivore | 176 | 330 | 506 |
102
+ | other_mammal | 549 | 449 | 998 |
103
+ | bird | 5,975 | 3,337 | 9,312 |
104
+ | fish | 1,265 | 3,594 | 4,859 |
105
+ | other_vertebrate | 471 | 665 | 1,136 |
106
+ | **total** | **32,573** | **20,683** | **53,256** |
107
107
 
108
108
  Covering 558+ species. Groove parse success rate on IMGT/IPD-MHC
109
109
  entries: 99.3%.
@@ -0,0 +1 @@
1
+ __version__ = "2.6.4"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mhcseqs
3
- Version: 2.6.3
3
+ Version: 2.6.4
4
4
  Summary: MHC sequence curation and binding groove extraction
5
5
  License-Expression: Apache-2.0
6
6
  Classifier: Development Status :: 4 - Beta
@@ -110,21 +110,21 @@ rows = mhcseqs.load_sequences_dict()
110
110
 
111
111
  ## Current data summary
112
112
 
113
- All sources (IMGT/HLA, IPD-MHC, UniProt curated references, and 15,860
114
- diverse MHC sequences from UniProt) are merged into a single dataset:
113
+ All sources (IMGT/HLA, IPD-MHC, and curated UniProt/GenBank references)
114
+ are merged into a single dataset. Categorized class I/II representatives:
115
115
 
116
116
  | Category | Class I | Class II | Total |
117
117
  |---|---:|---:|---:|
118
- | human | 17,841 | 8,013 | 25,854 |
119
- | nhp | 4,639 | 2,486 | 7,125 |
120
- | murine | 980 | 565 | 1,545 |
121
- | ungulate | 638 | 1,128 | 1,766 |
122
- | carnivore | 166 | 318 | 484 |
123
- | other_mammal | 1,015 | 740 | 1,755 |
124
- | bird | 11,906 | 6,690 | 18,596 |
125
- | fish | 2,439 | 7,106 | 9,545 |
126
- | other_vertebrate | 940 | 1,332 | 2,272 |
127
- | **total** | **40,564** | **28,378** | **68,942** |
118
+ | human | 18,041 | 8,196 | 26,237 |
119
+ | nhp | 4,475 | 2,414 | 6,889 |
120
+ | murine | 967 | 566 | 1,533 |
121
+ | ungulate | 654 | 1,132 | 1,786 |
122
+ | carnivore | 176 | 330 | 506 |
123
+ | other_mammal | 549 | 449 | 998 |
124
+ | bird | 5,975 | 3,337 | 9,312 |
125
+ | fish | 1,265 | 3,594 | 4,859 |
126
+ | other_vertebrate | 471 | 665 | 1,136 |
127
+ | **total** | **32,573** | **20,683** | **53,256** |
128
128
 
129
129
  Covering 558+ species. Groove parse success rate on IMGT/IPD-MHC
130
130
  entries: 99.3%.
@@ -39,5 +39,7 @@ tests/test_pipeline.py
39
39
  tests/test_sp_overcapture.py
40
40
  tests/test_species.py
41
41
  tests/test_species_coverage.py
42
+ tests/test_test_sh.py
43
+ tests/test_update_readme_counts.py
42
44
  tests/test_validate.py
43
45
  tests/test_version.py
@@ -0,0 +1,42 @@
1
+ import os
2
+ import subprocess
3
+ from pathlib import Path
4
+
5
+ ROOT = Path(__file__).resolve().parent.parent
6
+
7
+
8
+ def test_test_sh_detects_and_runs_pytest_with_same_python(tmp_path):
9
+ fake_bin = tmp_path / "bin"
10
+ fake_bin.mkdir()
11
+ invocation_log = tmp_path / "python-invocations.txt"
12
+ fake_python = fake_bin / "python"
13
+ fake_python.write_text(
14
+ "#!/bin/sh\n"
15
+ 'printf \'%s\\n\' "$*" >> "$INVOCATION_LOG"\n'
16
+ 'if [ "$1" = "-c" ]; then exit 0; fi\n'
17
+ 'if [ "$1" = "-m" ] && [ "$2" = "pytest" ]; then exit 0; fi\n'
18
+ "exit 64\n",
19
+ encoding="utf-8",
20
+ )
21
+ fake_python.chmod(0o755)
22
+ env = {
23
+ **os.environ,
24
+ "INVOCATION_LOG": str(invocation_log),
25
+ "MHCSEQS_PYTHON": str(fake_python),
26
+ "TEST_SH_MAX": "1",
27
+ }
28
+
29
+ result = subprocess.run(
30
+ ["bash", "test.sh", "--sentinel"],
31
+ cwd=ROOT,
32
+ env=env,
33
+ capture_output=True,
34
+ text=True,
35
+ check=False,
36
+ )
37
+
38
+ assert result.returncode == 0, result.stderr
39
+ assert invocation_log.read_text(encoding="utf-8").splitlines() == [
40
+ "-c import xdist",
41
+ "-m pytest -n 1 tests/ -v --sentinel",
42
+ ]
@@ -0,0 +1,32 @@
1
+ from collections import Counter
2
+
3
+ from scripts import update_readme_counts
4
+
5
+
6
+ def test_main_counts_only_completed_build(monkeypatch, tmp_path):
7
+ readme = tmp_path / "README.md"
8
+ readme.write_text(
9
+ "# Test\n\n## Current data summary\n\nstale\n\n## Structural decomposition\n",
10
+ encoding="utf-8",
11
+ )
12
+ built = Counter({("human", "I"): 1, ("unclassified", "II"): 2})
13
+ monkeypatch.setattr(update_readme_counts, "README", readme)
14
+ monkeypatch.setattr(update_readme_counts, "load_built_counts", lambda: built)
15
+ monkeypatch.setattr(
16
+ update_readme_counts,
17
+ "load_diverse_species_count",
18
+ lambda: 7,
19
+ )
20
+ monkeypatch.setattr(
21
+ update_readme_counts,
22
+ "load_groove_success_rate",
23
+ lambda: (99.0, 99, 100),
24
+ )
25
+
26
+ update_readme_counts.main()
27
+
28
+ text = readme.read_text(encoding="utf-8")
29
+ assert "| human | 1 | 0 | 1 |" in text
30
+ assert "| bird | 0 | 0 | 0 |" in text
31
+ assert "| unclassified | 0 | 2 | 2 |" in text
32
+ assert "| **total** | **1** | **2** | **3** |" in text
@@ -1 +0,0 @@
1
- __version__ = "2.6.3"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes