Call Hudon's MS from R, returning a string of results (that can be parsed
with parse_ms()). Other coalescent simulators are supported as long as they
output results in MS format; specify with the argument ms='mspms'
(in this example, running msprime here). No argument checking occurs in this
function; arguments passed to ...
are converted to command line
arguments, e.g. r=c(4, 1000)
is converted to -r 4 1000
and
mutation.rate=1e-5
converted to --mutation-rate 1e-5
.
1 |
nsam |
number of samples (gametes) to draw |
howmany |
how many replicates to run |
cmd |
the command to pass to MS |
... |
command line arguments as function arguments (if not using |
ms |
the ms-like executable to run, must be in |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.