Git Product home page Git Product logo

hutan's People

Contributors

caseywdunn avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

brevans

hutan's Issues

Create function `map_frequency_to_subtree()`

Create the function Create function map_frequency_to_subtree() that has the following behavior:

  • Takes a set of trees with multiple sequences per taxon. Tips have name format taxon_1@1234 where taxon_1 is the taxon and 1234 is the sequence ID. Each taxon can have one or more sequences, which are differentiated by their ids. Creates a table of split frequencies seen in the tree.

  • Takes a focal tree with one tip per taxon, and tip name taxon. e.g. taxon_1

  • For each edge in focal tree (including terminal edges) identify the corresponding edge in the split frequency table. Map the frequency of that edge to the edge label in the focal tree. If the split was not found in the set then the edge label has value 0.

  • Return the focal tree with edge labels.

Add extended pic

Estimate the extended phylogenetic independent contrast. Rather than normalize differences across nodes by branch lengths, differencesare normalized be the expected difference obtained from replicate simulations. This allows for greater model flexibility.

Create function to decompose phylogenetic tree according to designated nodes

Originally reported by: Casey Dunn (Bitbucket: caseywdunn, GitHub: caseywdunn)


Build the function decompose based on the following template.

#!r

#' Decomposes a single tree into a series of subtrees designated by internal
#' node numbers
#' 
#' @param phy The tree to be decomposed, as an ape phylo object
#' @param x A vector of internal node numbers. The tree phy will be cut on each branch 
#' that subtends each of these nodes.
#' @return A list of phylo objects 
decompose <- function( phy, x ){}

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.