Git Product home page Git Product logo

campsite's Introduction

Hi there ๐Ÿ‘‹

Anurag's GitHub stats

Top Langs

campsite's People

Contributors

alexsla avatar annakrystalli avatar

Watchers

 avatar

campsite's Issues

Create plotting functions

Attributes Vis panel

Attributes selected by dropdown menu

  • Trait at Tips: Distribution of trait values of extant lineages at the tips of the simulated phylogenies

image

  • Trait disparity through time:

image

  • MMND through time: Mean Nearest Neighbour Distance of trait values of extant lineages through time

image

  • Diversification rates: Not sure what the two lines are

image

Phylogeny Vis

  • Example extant phylogeny
  • Example full phylogeny
  • Lineages through time
  • Example trait evolution

Over-writing parameter m

Here, the supplied parameter m is being overwritten. Is that intentional?

m = pars[14] #relative contribution of character displacement (competition) with respect to stochastic (brownian) evolution
s = sqrt(sig2 * step.size) #variance of BM per step size
m = m * step.size #relative contribution of competition with respect to BM per step size

Info for DESCRIPTION file

Hello @alexsla!

I've begun working on the simulation app now and the first job is to turn the campsite code to a package. I've made a fork of your repository and will make a pull request back to it when I'm done so that the commit history remains intact and the package ends up in your account.

An important file in any package is the DESCRIPTION file. Here is the current draft https://github.com/annakrystalli/CAMPSITE/blob/main/DESCRIPTION.

I need a few details from you though to complete correctly:

  • Title: a short title for your package
  • Description: A longer description of what the package does. Can be a short paragraph
  • Authors: List of all authors with details of:
    • First name
    • Surname
    • email address (I use my personal one rather than work one which may change)
    • role (for example, you would be author & creator). You can also add funder details if wanted). I initially put myself as contributor but by the time I'm done, according to the definition in ?person I reckon the contribution will be greater than just code patches. Have a look and let me knwo what you think.
    • ORCID ID (if available)
  • License: I've just added a permissive MIT license for now. Are you happy with that or would prefer something more restrictive? Here's some info on licensing: https://r-pkgs.org/license.html

For details on all metadata contained in DESCRIPTION files, have a look here: https://r-pkgs.org/description.html

Let me know if you have any questions!

Clarification of lineage and trait vectors

Am I correct in interpreting that each trait vector relates to one of the lineage vectors?

traits <- list(c(1, 1, 2, NA, root.value),
c(2, -1, 1, root.value, root.value)) #list of traits of extant lineages: for each lineage (element in list), a vector of four or more values: lineage number, status (incipient=-1/good=1/extinct=-2), parental lineage number (if incipient), current trait value of parental lineage, and all consecutive elements contain trait value at each time step (always root.value at the beginning)
lineages <- rbind(c(1, 0, 0, -1, 1, 0, 0),
c(1, 0, 0, -1, -1, 0, NA)) #matrix of extant lineages: for each lineage (element in list), a vector of seven values: parental node (lineage number), descendent node (0 if tip), starting time, ending time (-1 if still active), status (incipient=-1/good=1/extinct=-2), speciation completion or extinction time, speciation completion time (NA if still incipient)
active_lineages = c(1, 2) #vector of numbers of active lineages
n_lineages = length(active_lineages) #how many active lineages are there?
n_good = 2L #how many good lineages are there?
step_count = 1L #which step of the simulation we're on

In which case I have a few questions:

  • Just to confirm, the comparison will always on a single trait and be between two lineages, correct? Or do you want the code to be able to adjust to more comparisons?
  • Is any information in the trait vector a reperition of information in an associated lineage vector? ie how does status value in trait vectors relate to status in lineage vectors?
  • Also, just to confirm, parental node (lineage number) in the lineage vector (first element) refers to the same property as parental lineage number (third element) in the trait vector does and therefore should have the same values across associated trait & lineage vectors? If so, why do both lineage vectors have the same parent_node:
    lineages <- rbind(c(1, 0, 0, -1, 1, 0, 0),
    c(1, 0, 0, -1, -1, 0, NA)) #matrix of extant lineages: for each lineage (element in list), a vector of seven values: parental node (lineage number), descendent node (0 if tip), starting time, ending time (-1 if still active), status (incipient=-1/good=1/extinct=-2), speciation completion or extinction time, speciation completion time (NA if still incipient)
    whereas the parent node values in the trait vectors are different?

traits <- list(c(1, 1, 2, NA, root.value),
c(2, -1, 1, root.value, root.value)) #list of traits of extant lineages: for each lineage (element in list), a vector of four or more values: lineage number, status (incipient=-1/good=1/extinct=-2), parental lineage number (if incipient), current trait value of parental lineage, and all consecutive elements contain trait value at each time step (always root.value at the beginning)

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.