Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

document load.outer.tree() for importation #111

Open
davidchampredon opened this issue Jan 8, 2020 · 3 comments
Open

document load.outer.tree() for importation #111

davidchampredon opened this issue Jan 8, 2020 · 3 comments

Comments

@davidchampredon
Copy link
Collaborator

@ArtPoon, could you please add an example in the documentation of load.outer.tree() when the outer tree has not been simulated by twt but is instead imported from another source (like my ABM)?

I used to do somthing like the code below in a recent twt version but some functions have disappeared and everything I try fails. Thanks!

settings <- yaml.load_file('../data/sampled-hosts-1.yaml')
m     <- Model$new(settings)
outer.tree <- ape::read.tree('../data/transm.nwk')
evlog <- eventlog.from.tree(tree = outer.tree)
inner <- sim.inner.tree(obj = m, e = evlog)
@ArtPoon
Copy link
Contributor

ArtPoon commented Jan 8, 2020

Sorry for the confusion. I've been reworking that function so the documentation no longer fits. I'll try to get to this today.

@ArtPoon
Copy link
Contributor

ArtPoon commented Jan 13, 2020

The decision we reached in #107 was to use YAML to specify an outer tree generated by another program, so eventlog.from.tree is deprecated code. (I've also renamed it to attach.tree.)

@ArtPoon
Copy link
Contributor

ArtPoon commented Jan 13, 2020

You should be able to load your transmission tree as as YAML file with load.outer.tree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants