Git Product home page Git Product logo

pepevolve's Introduction

pepevolve

Evolutionary algorithm to generate offspring of one or morph two (peptide) sequences into each other.

pepevolve.py

Generate offspring for a given sequence. This script is designed to work with peptide sequences. However, any sequence can be provided, given a suitable distance matrix is referenced.

Usage:

python pepevolve.py <parent> --lambd <int> --sigma <float> --matrixfile <file> --skip <str> --seed <int>

Parameters:

  • parent: {str} parent string from which you wish to generate children
  • lambd: {int} number of offsprings to generate for the given parent
  • sigma: {float} width of the gaussian distribution for tuning the distance to the parent
  • matrixfile: {str} filename of the distance matrix to use
  • skip: {str} letters (AA) to skip when sampling
  • seed: {int} random seed to use when sampling (makes runs reproducible)

Example:

python pepevolve.py GLFDIVKKVVGALGSL --lambd 10 --sigma 0.1 --matrixfile grantham.txt --skip CM --seed 42

Output:

generated sequences with corresponding distances and sigma values written to the file restult.txt

pepmorph.py

Evolutionary algorithm to morph two given sequences into each other with the help of an evolutionary algorithm. This script is designed to work with peptide sequences. However, any sequence can be provided, given a suitable distance matrix is referenced.

Usage:

python pepmorph.py <start> <target> --lambd <int> --sigma <float> --matrixfile <file> --skip <str> --seed <int>

Parameters:

  • parent: {str} parent string from which you wish to generate children
  • target: {str} target string to which the parent should be morphed to (same length as parent!)
  • lambd: {int} number of offsprings to generate in between the two sequences
  • sigma: {float} width of the gaussian distribution for tuning the distance to the previous sequence
  • matrixfile: {str} filename of the distance matrix to use
  • skip: {str} letters (AA) to skip when sampling
  • seed: {int} random seed to use when sampling (makes runs reproducible)

Example:

python pepmorph.py KLLKLLKKLLKLLK GLFDIVKKVVGALGSL --lambd 10 --sigma 0.1 --matrixfile grantham.txt --skip CM --seed 42

Output:

generated sequences with corresponding distances and sigma values written to the file restult.txt

pepevolve's People

Contributors

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