How to deal with recombination map length longer than chromosome length? #1445
-
My work requires chromosome-aware simulations, but I still would like to use the genetic maps managed through stdpopsim. My work focuses on generations 4 - 12 TMRCA. I'm attempting to create an extra-long chromosome that equals the total length of chromosomes 1 - 5 with four math.log(2) breaks representing where separations would be for five individual chromosomes. Because I need to convert the resulting tree sequence to VCF for further analysis, I'm creating a conversion dictionary with the appropriate positions so that the VCF will have the corresponding chromosome and position. The conversion dictionary uses
Output (note that my conversion dictionary output uses the recombination map length instead of the chromosome length and so has the wrong positions):
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @lakishadavid -- that warning about recombination map is being thrown because you are using
but the default human genome is
Let me know if that fixes it for you? cheers, |
Beta Was this translation helpful? Give feedback.
Hi @lakishadavid -- that warning about recombination map is being thrown because you are using
genetic_map = species.get_genetic_map("HapMapII_GRCh37")
but the default human genome is
stdpopsim
is GRCh38 currently. If you swap out that map for the h38 map that warning will go away, e.g.,genetic_map = species.get_genetic_map("HapMapII_GRCh38")
Let me know if that fixes it for you?
cheers,
Andy