Skip to content

Convert output from PSMC' or MSMC to a function for simulating under the inferred demography under msprime

Notifications You must be signed in to change notification settings

JesseGarcia562/psmc2msprime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

psmc2msprime

Convert output from PSMC' or MSMC to a function for simulating under the inferred demography under msprime

Installing and loading the package

install.packages("devtools")
install.packages("tidyverse")
install.packages("glue")
devtools::install_github("jessegarcia562/psmc2msprime")
library(tidyverse)
library(glue)
library(psmc2msprime)

Reading PSMC' output and turning into an msprime function

readMSMCInference("../data/qlobata_reference_demography.msmc.out.final.txt", mutationRate = 1e-8) %>%
  generatePopulationParameterChanges() %>%
  generateMSPrimeFunction(outpath = "../code/qlobata_reference_msprime_function.py")

About

Convert output from PSMC' or MSMC to a function for simulating under the inferred demography under msprime

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages