Giter Club home page Giter Club logo

invader_sim's Introduction

INVADER SIM

Simulates the evolution of intein invaded extein sequences based on simulated phylogenies and using a Monte-Carlo like process. Intein Invasion Sequence Simulator v1.0.0\n

Dependencies:

perl (5.30.1)
  -BioPerl (1.7.8)
  -Bio::TreeIO

R (4.3.1)
  -ape (5.7)

paml (4.1.6)

This program will simulate extein and intein sequences according to user parameters. Then using a monte carlo based approach, invade the extein sequences with the intein sequences. Returns simulated samples of extein nucleotide sequences invaded by intein sequences.

Usage Example:

perl invader_sim.pl

The program can be run in naiive or prepared mode. If the user wishes to be guided through the simulation process with prompts, then simply launch the program as above.

Else, a parameter file (is.param) can be provided using the following parameters:

These parameters apply to phylogeny simulations

-sp -> number of species.
-b -> birth rate.
-d -> death rate.
-sf -> sample fraction.
-m -> mutation rate.\n

These parameters apply to sequence simulations

-nn -> number of nucleotides.
-a -> alpha parameter for gamma distribution
-cat -> number of rate categories for the gamma distribution
-m -> model number: (0: Poisson, 1: Proportional)

These parameters are general to the code

-sn -> number of simulations to create
-ws -> window size for MC chain (how many tips away can an intein jump)
-evo -> string to call paml-evolver (likely paml-evolver, or evolver)
-sub -> (OPTIONAL) Number of intein sequences to invade with out of the set of simulated sequences. 
	Useful if you want to simulate X inteins but only invade with Y of them.

Note that the is.param must be formated as: extein phylogeny simulation parameters intein phylogeny simulation parameters global params extein sequence simulation parameters intein sequence simulation parameters

An example is.param file:

-sp 50 -b 1 -d 1 -sf .1 -m .01
-sp 10 -b 1 -d 1 -sf .1 -m .1
-sn 100 -ws 10 -evo evolver -sub 5
-nn 100 -a .5 -cat 4 -m 0
-nn 50 -a 1 -cat 4 -m 1

invader_sim's People

Contributors

sophiagosselin avatar toastawaffle avatar

Watchers

 avatar  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.