generateMSPrimeFunction: Generate the msprime function describing the inferred...

Description Usage Arguments Value Examples

Description

Generates the msprime function describing the inferred demography from MSMC using the populationParameterChanges

Usage

1
generateMSPrimeFunction(PopulationParametersChangeInput, outpath)

Arguments

PopulationParametersChangeInput

The character that defines the how the population sizes change across generations. This is generated by the generatePopulationParameterChanges.

outPath

The desired output path for the msprime script you are trying to create.

Value

Returns nothing. But writes to file an msprime function called "msmc_model" that describes the inference made by MSMC

Examples

1
2
3
msmcInference<-readMSMCInference(pathOfMSMCOutFinal = "../data/msprimeMultiHetSep/simulatedMsprime.oak.msmc.out.final.txt", mutationRate = 1e-8)
populationParametersChange<-generatePopulationParameterChanges(msmcInference)
generateMSPrimeFunction( outPath = "../code/msmc2msprime_Feb1.py", PopulationParametersChangeInput=populationParametersChange)

JesseGarcia562/psmc2msprime documentation built on May 29, 2019, 8:20 p.m.