Giter Site home page Giter Site logo

nicfel / mascot Goto Github PK

View Code? Open in Web Editor NEW
9.0 7.0 5.0 20.17 MB

BEAST2 implementation of the Masco approximation of the structured coalescent with forwards/backwards algorithm for node state calculation

License: GNU General Public License v3.0

Java 79.87% C++ 20.05% Makefile 0.08%

mascot's Introduction

MASCOT

MASCOT is a BEAST2 package that allows to use MASCOT with other BEAST2 utilities. A tutorial on how to use MASCOT can be found here

License

The content of this project itself is licensed under the Creative Commons Attribution 3.0 license, and the java source code of esco is licensed under the GNU General Public License.

mascot's People

Contributors

alexeid avatar jordandouglas avatar nicfel avatar rbouckaert avatar walterxie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

mascot's Issues

Mascot not compatible with bModelTest

Currently, bModelTest does not show up in BEAUti when selecting the Mascot template. Adding this line

    <mergepoint id='aux-sitemodel-panels'/>

to the templates will fix this.

Potential math error in exponential coalescent

Hi Dr. Müller,

Really sorry if I'm mistaken here, but I think there might be an error in the math in the getNeTime function in mascot.parameterdynamics.ExponentialNe, although it's possible I'm misunderstanding how the parameters are defined.

If NeNull is the population size at the most recent calendar time and getNeTime is supposed to return the population size at time t in the past then I think it should be NeNull * Math.exp(-t*growthRate).

E.g. with a growth rate of 0.25 and a NeNull of 100 you would expect the population size 10 years in the past to be 100*exp(-0.25 * 10) = 8.2.

This is how (what I presume is) the analogous function in the regular exponential coalescent function is written.

Again, if I'm misunderstanding I apologize, but I can't wrap my head around the function as written.

public double getNeTime(double t) {

Mascot and partition bug

To replicate:

  • Import 2 partitions into Mascot template, so now there are 2 trees and 2 structuredCoalescent objects.
  • link trees in partition panel

There are still Ne and migration parameters for the second partition in the state, that have a prior, and operators on them. They do no harm, but are confusing and slowing things down a bit.

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.