Skip to content

Commit 426eae2

Browse files
authored
Drop 1KGP aggregate from population list (#158)
1 parent 763a577 commit 426eae2

6 files changed

Lines changed: 18 additions & 19 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
66

77
### Fixed
88
- Debugged a test that counts observed haplotypes (#154).
9-
- Replaced global pooled Ae values with 26-population average as the default Ae reported (#155).
9+
- Replaced global pooled Ae values with 26-population average as the default Ae reported (#155, #158).
1010
- Replaced deprecated `pkg_resources` module with `importlib.resources` (#156).
1111
- Upgraded versioneer to a Python 3.12+ compatible version (#156).
1212

microhapdb/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ def retrieve_by_id(ident):
4949
2592 mh17KK-014 3 37 chr17 4497061 4497097 4497061;4497089;4497097 4400356;4400384;4400392 rs333113;rs8074965;rs11657785 Kidd2018 2.074
5050
>>> retrieve_by_id("Chagga")
5151
ID Name Source
52-
16 mMHseq-Chagga Chagga Gandotra2020
53-
17 SA000487T Chagga Kidd2018
52+
15 mMHseq-Chagga Chagga Gandotra2020
53+
16 SA000487T Chagga Kidd2018
5454
>>> retrieve_by_id("Asia")
5555
ID Name Source
56-
9 MHDBP-936bc36f79 Asia vanderGaag2018
56+
8 MHDBP-936bc36f79 Asia vanderGaag2018
5757
>>> retrieve_by_id("Japanese")
5858
ID Name Source
59-
54 MHDBP-63967b883e Japanese Hiroaki2015
60-
55 SA000010B Japanese Kidd2018
59+
53 MHDBP-63967b883e Japanese Hiroaki2015
60+
54 SA000010B Japanese Kidd2018
6161
"""
6262

6363
def id_in_series(ident, series):

microhapdb/data/population.csv

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
ID,Name,Source
2-
1KGP,1000 Genomes Aggregate,Byrska-Bishop2022
32
mMHseq-Adygei,Adygei,Gandotra2020
43
SA000017I,Adygei,Kidd2018
54
AFR,Africa,Byrska-Bishop2022

microhapdb/population.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class Population:
3030
SA000010B Japanese Kidd2018
3131
JPT Japanese in Tokyo, Japan Byrska-Bishop2022
3232
>>> microhapdb.populations.shape
33-
(125, 3)
33+
(124, 3)
3434
"""
3535

3636
def __init__(self, popid, name, source):

microhapdb/tests/test_cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def test_main_pop_noargs(capsys):
8686
microhapdb.cli.main(args)
8787
out, err = capsys.readouterr()
8888
outlines = out.strip().split("\n")
89-
assert len(outlines) == 1 + 125
89+
assert len(outlines) == 1 + 124
9090

9191

9292
def test_main_pop_detail(capsys):
@@ -689,7 +689,7 @@ def test_cli_summarize(capsys):
689689
- 2413 distinct loci
690690
[frequencies]
691691
- 59753 haplotypes
692-
- 125 population groups
692+
- 124 population groups
693693
- 885503 total microhap frequencies
694694
"""
695695
print(observed)

microhapdb/tests/test_population.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def test_standardize_ids():
2929

3030
def test_assumptions():
3131
num_populations_per_source = [
32-
31, # Byrska-Bishop2022
32+
30, # Byrska-Bishop2022
3333
1, # Chen2019
3434
7, # Gandotra2020
3535
1, # Hiroaki2015
@@ -49,8 +49,8 @@ def test_populations():
4949
SA000040E Kachari Kidd2018
5050
>>> Population.table_from_ids(["EAS", "SAS"])
5151
ID Name Source
52-
27 EAS East Asia Byrska-Bishop2022
53-
104 SAS South Asia Byrska-Bishop2022
52+
26 EAS East Asia Byrska-Bishop2022
53+
103 SAS South Asia Byrska-Bishop2022
5454
>>> for pop in Population.from_query("Name.str.contains('Han')"):
5555
... print(pop.popid, pop.name, pop.source)
5656
ChengduHan Chengdu Han Zou2022
@@ -62,14 +62,14 @@ def test_populations():
6262
CHS Southern Han Chinese Byrska-Bishop2022
6363
>>> Population.table_from_query("Name.str.contains('Afr')")
6464
ID Name Source
65-
3 AFR Africa Byrska-Bishop2022
66-
4 MHDBP-3dab7bdd14 Africa vanderGaag2018
67-
5 SA000101C African Americans Kidd2018
68-
6 ACB African Caribbeans in Barbados Byrska-Bishop2022
69-
7 ASW Americans of African Ancestry in SW USA Byrska-Bishop2022
65+
2 AFR Africa Byrska-Bishop2022
66+
3 MHDBP-3dab7bdd14 Africa vanderGaag2018
67+
4 SA000101C African Americans Kidd2018
68+
5 ACB African Caribbeans in Barbados Byrska-Bishop2022
69+
6 ASW Americans of African Ancestry in SW USA Byrska-Bishop2022
7070
"""
7171
pop = microhapdb.populations
72-
assert pop.shape == (125, 3)
72+
assert pop.shape == (124, 3)
7373
assert Population.from_id("MHDBP-7c055e7ee8").name == "Swedish"
7474
assert Population.from_id("SA000028K").name == "Karitiana"
7575
result = Population.table_from_query("Name.str.contains('Jews')")

0 commit comments

Comments
 (0)