Coder Social home page Coder Social logo

mattia-colbertaldo / phyloml Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 107.21 MB

The main purpose of this thesis work is to substitute the slow Maximum Likelihood Estimation (MLE) methods traditionally used to infer parameters with ML methods. Additionally, the goal is to create a model predictor that, given a phylogenetic tree, can automatically guess the model and infer its parameters.

R 0.89% Python 0.48% Jupyter Notebook 98.63%
machine-learning phylo

phyloml's Introduction

Phylogenetic Tree Simulation and Analysis

Author: Mattia Colbertaldo
Date: February 2024


Work in Progress

Description

This repository contains code and data for a thesis project focused on simulating phylogenetic trees under different models and inferring their parameters using machine learning (ML) techniques.

The main purpose of this thesis work is to substitute the slow Maximum Likelihood Estimation (MLE) methods traditionally used to infer parameters with ML methods. Additionally, the goal is to create a model predictor that, given a phylogenetic tree, can automatically guess the model and infer its parameters.

Workflow

  1. Simulations:

    • The simulations.r file is used to simulate phylogenetic trees under different models using functions from the diversitree package. The trees are then saved to file for further analysis.
  2. Parameter Inference:

    • In the ranges.r file, ranges of parameters for simulating trees are obtained using inference on phylogenetic trees from real-world data.
    • CDV_full_tree.py encodes the trees with the CDV representation, preparing them for ML analysis.
    • In the AllModels.ipynb notebook, encoded trees are read, data is managed, and they are input into a Convolutional Neural Network (CNN) created to train it to infer the parameters of the model. The code is universal for all models in the diversitree package.
  3. Model Predictor:

    • The ModelPredictor.ipynb notebook trains different Neural Networks to try to infer the model given a tree.

Models

We explore various models for simulating phylogenetic trees, including:

  • BD
  • BiSSE
  • MuSSE
  • QuaSSE
  • GeoSSE
  • BiSSEness
  • ClaSSE

Additionally, we compare simulations with the Constant Birth-Death model.


Usage

Feel free to explore the code and data provided in this repository. For detailed instructions on running simulations, inferring parameters, and training model predictors, refer to the respective files and notebooks.


References

For further reading and understanding of the models, methods, and ML techniques used, please refer to the cited references.


If you have any questions or suggestions, don't hesitate to reach out. Happy exploring!

phyloml's People

Contributors

mattia-colbertaldo avatar

Watchers

 avatar

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.