Coder Social home page Coder Social logo

mf2q's Introduction

mf2q

mf2q is a Python script calculating Q matrices scaled to give one expected substitution per unit time from mutation count data using the DCFreq method.

Issue make to run tests using input files under t.

Reference

Kosiol C., Goldman N. (2005) Different versions of the Dayhoff rate matrix. Mol Biol Evol 22:193-199 doi:10.1093/molbev/msi005

Usage

usage: mf2q [-h] [-f freq_file] [-o out_file] [-t tolm] [-s] [input file]

Produce scaled Q matrices from mutation counts using the DCFreq method
(version 1.0).

positional arguments:
  input file    Mutation counts in a tab separated format(row=from, column=to,
                see examples).

optional arguments:
  -h, --help    show this help message and exit
  -f freq_file  Symbol frequency file.
  -o out_file   Output file
  -t tolm       Tolerance multiplier. Increase it if equilibrium distribution
                cannot be recovered.
  -s            Do not scale the Q matrix (default: False).

Example input

    T   C   A   G
T   171 293 229 306
C   73  390 229 306
A   38  153 355 453
G   38  153 339 468

Example output

# Symbols:
T       C       A       G

# Equilibrium distribution:
5.242828e-02    2.106127e-01    3.156225e-01    4.213365e-01

# Q matrix:
-1.383726e+00   4.896518e-01    3.826971e-01    5.113769e-01
1.221174e-01    -1.017087e+00   3.830806e-01    5.118893e-01
6.350432e-02    2.556885e-01    -1.076231e+00   7.570384e-01
6.356796e-02    2.559447e-01    5.670931e-01    -8.866057e-01

Dependencies

mf2q's People

Contributors

sbotond avatar

Stargazers

 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.