Skip to content

Commit dc8315d

Browse files
authored
Merge pull request #572 from jeffspence/master
lgtm thanks @jeffspence! merging Add pyrho genetic maps
2 parents e148606 + d0f0596 commit dc8315d

File tree

1 file changed

+38
-7
lines changed

1 file changed

+38
-7
lines changed

stdpopsim/catalog/HomSap/__init__.py

+38-7
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,13 @@
6161
author="The International HapMap Consortium",
6262
)
6363

64+
_takahata1993 = stdpopsim.Citation(
65+
doi="https://doi.org/10.1093/oxfordjournals.molbev.a039995",
66+
year="1993",
67+
author="Takahata",
68+
reasons={stdpopsim.CiteReason.POP_SIZE}
69+
)
70+
6471
_tian2019 = stdpopsim.Citation(
6572
doi="https://doi.org/10.1016/j.ajhg.2019.09.012",
6673
year="2019",
@@ -75,13 +82,6 @@
7582
reasons={stdpopsim.CiteReason.GEN_TIME}
7683
)
7784

78-
_takahata1993 = stdpopsim.Citation(
79-
doi="https://doi.org/10.1093/oxfordjournals.molbev.a039995",
80-
year="1993",
81-
author="Takahata",
82-
reasons={stdpopsim.CiteReason.POP_SIZE}
83-
)
84-
8585
_chromosomes = []
8686
for name, data in genome_data.data["chromosomes"].items():
8787
_chromosomes.append(stdpopsim.Chromosome(
@@ -174,6 +174,37 @@
174174
)
175175
_species.add_genetic_map(_gm)
176176

177+
# 26 populations in 1000 Genomes
178+
for pop in ["ACB", "ASW", "BEB", "CDX", "CEU", "CHB", "CHS", "CLM", "ESN",
179+
"FIN", "GBR", "GIH", "GWD", "IBS", "ITU", "JPT", "KHV", "LWK",
180+
"MSL", "MXL", "PEL", "PJL", "PUR", "STU", "TSI", "YRI"]:
181+
_gm = stdpopsim.GeneticMap(
182+
species=_species,
183+
id="Pyrho{}_GRCh37".format(pop),
184+
description="Pyrho population-specific map for {}".format(pop),
185+
long_description="""
186+
This genetic map was inferred using individuals from the {}
187+
population from Phase 3 of the 1000 Genomes Project. Rates
188+
were estimated using pyrho (https://github.com/popgenmethods/pyrho)
189+
while using population-specific population size history estimates
190+
obtained from smc++ (https://github.com/popgenmethods/smcpp).
191+
Genetic maps are only available for the 22 autosomes.
192+
See https://doi.org/10.1126/sciadv.aaw9206 for more
193+
details.""".format(pop),
194+
url=(
195+
"https://stdpopsim.s3-us-west-2.amazonaws.com/genetic_maps/"
196+
"HomSap/Pyrho{}_GRCh37.tar.gz".format(pop)),
197+
file_pattern=(
198+
"Pyrho{}_GRCh37_chr{{id}}.txt".format(pop)),
199+
citations=[
200+
stdpopsim.Citation(
201+
year=2019,
202+
author="Spence and Song",
203+
doi="https://doi.org/10.1126/sciadv.aaw9206",
204+
reasons={stdpopsim.CiteReason.GEN_MAP})]
205+
)
206+
_species.add_genetic_map(_gm)
207+
177208

178209
###########################################################
179210
#

0 commit comments

Comments
 (0)