Git Product home page Git Product logo

simulations_for_topiccontml's Introduction

To simulate data for the topic modelling paper use these scripts:

python generator.py Theta divergence_time number_loci

to run the script you need the manyloci.py and a modified version of ms (see instructions
on https://github.com/pbeerli/divergencesupplement/tree/main/simulations)
to then generate the inputfiles for the topiccontml.py (see https://github.com/TaraKhodaei/TopicContml)
you will need to run migrate-modern-to-single-locus.py on each of the files generated with generator.py

An example:

mkdir sim_100_0.01_10
cp generator.py sim_100_0.01_10
cp ms sim_100_0.01_10
cp manyloci.py sim_100_0.01_10
cp migrate-modern-to-single-locus.py sim_100_0.01_10
cd sim_100_0.01_100
python generator.py 0.1 0.01 10
# this will generate 100 datafiles (infile...)
# each with 10 loci 
# for each datafile run
# python migrate-modern-to-single-locus.py infile_...
# for example:
python migrate-modern-to-single-locus.py infile_72_0.1_0.01_10
# this will create a directory siminfile_72_0.1_0.01_10
# that then can be used for run with topiccontml.py
# python topiccontml.py -f siminfile_72_0.1_0.01_10

We also added an additional_scripts folder containing coverter scripts for the biological datasets used in the manuscript.

simulations_for_topiccontml's People

Contributors

pbeerli avatar

Watchers

 avatar

Forkers

tarakhodaei

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.