Skip to content

default_priors() fails if the input strphylo does not contain a migration history #9

@IanPRoberts

Description

@IanPRoberts

library( StructCoalescent ); treedata <- treeio::read.beast.newick(file = 'tree.newick.txt'); try( default_priors( as.strphylo( treedata ), n_deme = 2 ) )
fails with error
Error in DemeDecompC(ED, max(ED[, 5]), NodeIndicesC(ED)) : Not a matrix.

tree.newick.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions