Giter Site home page Giter Site logo

Class bammdata about bamm HOT 1 CLOSED

macroevolution avatar macroevolution commented on September 6, 2024
Class bammdata

from bamm.

Comments (1)

drabosky avatar drabosky commented on September 6, 2024

this is probably a good idea. the main reason I originally did this was so that someone could have a quick view of the tree itself by using regular class phylo operations, especially plot.phylo. But maybe it would just be best to have plot.dtrates be the default method for the data object.

I'm trying to think of anything else that might be affected by this but can't really.

~D

On Dec 10, 2013, at 7:22 PM, blueraleigh wrote:

Thoughts on changing the class of the object returned by getEventData to "bammdata" only? One advantage would be that a number of functions could dispatch methods on the bammdata object directly. So, for example,

x <- getEventData(phy, eventdata);
class(x);
[1] "bammdata" ##rather than [1] "phylo" "bamm-data"
plot(x) ##rather than calling plot.dtrates(x);
would immediately plot the dynamic rates tree if plot.dtrates is renamed to plot.bammdata. Because BAMMtools has the function as.phylo.bammdata is there a compelling reason to have two class names attached to the bammdata object?


Reply to this email directly or view it on GitHub.

from bamm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.