@@ -29,7 +29,7 @@ def test_standardize_ids():
2929
3030def 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