Skip to contents

Samples N migration histories under the DTA model deme fixed at all leaves using belief propagation

Usage

DTA_sampling(strphylo, fit_mig_mat, N = 1, parallel = FALSE, mc.cores = NA)

Arguments

strphylo

Dated structured phylogenetic tree

fit_mig_mat

Forwards-in-time migration matrix for the phylogeny

N

Number of migration histories to sample

parallel

Logical, whether or not to generate proposals in parallel

mc.cores

(optional) If parallel is TRUE, number of cores to parallelise over

Value

List of proposed DTA migration histories with the same leaves as input ED