We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Ran into a different problem:
> set.seed(1234) > outer.tree <- load.outer.tree(model) > plot(outer.tree) Error in max(sapply(comp$get.lineages(), function(line) line$get.sampling.time())) : invalid 'type' (list) of argument
This occurs because the comp object has no Lineages:
comp
> node [1] "ID316_1" > comp <Compartment> Public: add.lineage: function (new.lineage) clone: function (deep = FALSE) copy: function (deep = FALSE) get.branching.time: function () get.lineages: function () get.name: function () get.sampling.time: function () get.source: function () get.type: function () initialize: function (name = NA, type = NA, source = NA, branching.time = NA, is.unsampled: function () remove.lineage: function (ex.lineage) set.branching.time: function (new.branching.time) set.sampling.time: function () set.source: function (new.source) set.type: function (new.type) set.unsampled: function (is.unsampled) Private: branching.time: 519 deep_clone: function (name, value) lineages: list name: ID316_1 sampling.time: NA source: Compartment, R6 type: CompartmentType, R6 unsampled: FALSE > comp$get.lineages() list()
Originally posted by @ArtPoon in https://github.com/PoonLab/twt/issue_comments/577884445
The text was updated successfully, but these errors were encountered:
Not sure that comp object necessarily has no Lineages to fail... Continuing to debug
Comparing outputs for:
outer$get.sampling.times() outer$get.lineages()
Failed YAML:
> outer$get.sampling.times() $Active_1__A_1 [1] 0 > plot(outer) Error in max(sapply(comp$get.lineages(), function(line) line$get.sampling.time())) : invalid 'type' (list) of argument > outer$get.lineages() $Active_1__A_1 <Lineage> Public: clone: function (deep = FALSE) copy: function (deep = FALSE) get.location: function () get.name: function () get.sampling.time: function () get.type: function () initialize: function (name = NA, type = NA, sampling.time = NA, location = NA) parent: NULL set.location: function (comp) set.location.by.name: function (locationList, new.locationName) Private: location: Compartment, R6 name: Active_1__A_1 sampling.time: 0 type: virus
Working YAML
> outer$get.lineages() $A_1__1_1 <Lineage> Public: clone: function (deep = FALSE) copy: function (deep = FALSE) get.location: function () get.name: function () get.sampling.time: function () get.type: function () initialize: function (name = NA, type = NA, sampling.time = NA, location = NA) parent: NULL set.location: function (comp) set.location.by.name: function (locationList, new.locationName) Private: location: Compartment, R6 name: A_1__1_1 sampling.time: 0 type: virus [...] > outer$get.sampling.times() $A_1__1_1 [1] 0 [...]
Sorry, something went wrong.
In conversation with @RouxCil, this error comes from not specifying parameter branching.time, so a somewhat expected error.
ewong347
No branches or pull requests
Ran into a different problem:
This occurs because the
comp
object has no Lineages:Originally posted by @ArtPoon in https://github.com/PoonLab/twt/issue_comments/577884445
The text was updated successfully, but these errors were encountered: