Generates xml for structured coalescent simulation using MASTER
master_xml.Rd
Generates a .xml file to be input to BEAST 2 for structured coalescent simulations using MASTER
Usage
master_xml(coal_rate, bit_mig_mat, leaf_data, n_deme, xml_path, con = stdout())
Arguments
- coal_rate
vector of coalescent rates
- bit_mig_mat
matrix of backward-in-time migration rates
- leaf_data
nx3 matrix or data.frame with first column giving tip labels, second column sample times and third column the initial deme of each sample point
- n_deme
number of distinct demes
- xml_path
path to output nexus file
- con
A connection object or a character string for location to output xml file