Git Product home page Git Product logo

pysnp's Introduction

PySNP

A program based on Richard Dawkins' "Methinks it is like a weasel" example. Inspired by this Pharyngula post.

Constants

The following constants can be edited in the file to change the mutation parameters.

# Mutation rates
pointrate = .05 #Accepts to .001 percent.
duprate = .005  #Accepts to .001 percent

# Number of offspring the sample population will have, starting from one individual, in the generation time.
children = 10 
generationtime = 2 # Generation time in years. For final output.

localpeak = 20000 # Evolutionary peak stopper. Stops when reaches a local maxima for N generations.
## Would reccommend 500 000 / generationtime. (half million years) for physical resembelance; 250000/children for speed.

# What degree of unoptomized individuals in a generation prosper (score variance). 
var_mult = 1 
## Strongly reccommend > 0.3

#How "valued" are correct characters?
cstringweight = 1.1 
## 1 would be equally valued to everything; values greater than 1 select for correct characters over expansion of genome. Values of less than 1 selects for expansion more than correctness.


penalty = 1 # If mismatches are penalized. 1 for yes, 0 for no.
debug = 0 #Display debug code. 1 for yes, 0 for no.

pysnp's People

Contributors

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