Description Usage Arguments Value
This is wrapper function for running the msReject in msbayes.For installing/compiling msReject see [msbayes webpage](http://msbayes.sourceforge.net/).
1 2 3 4 5 6 7 8 9 | run_msreject(
hyperstat,
reference.table,
MsRejectallocation,
samplingtolerance,
prefix = "temp",
hbayeSSC.style = T,
write.posterior.file = F
)
|
hyperstat |
A vector containing the "observed" hyperstats from step 1 |
reference.table |
A data frame containing the hyperstats from ABC simulation(step 2). The column name of this data frame must match the names of |
MsRejectallocation |
A character string. The location of the msReject (including the executable itself) |
samplingtolerance |
Numeric. The sampling fraction for msReject |
prefix |
A character string for writing the "observed" hyperstat and reference table to files, |
hbayeSSC.style |
|
write.posterior.file |
|
If write.posterior.file
is FALSE
, this function returns a data frame containing the retained rows from reference table after rejection. The first column is 'uid', the replicates number, the second column is the number of events, and the third column is the total number of species. Following are columns for the "real" expansion time for each species in the simulation, and then, the columns of hyperstats.If write.posterior.file
is TRUE
, this function returns the file name (including the path) of the posterior file.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.