elynx-seq-0.0.1: Handle molecular sequences

Copyright(c) Dominik Schrempf 2019
LicenseGPL-3
Maintainerdominik.schrempf@gmail.com
Stabilityunstable
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

ELynx.Data.MarkovProcess.SubstitutionModel

Contents

Description

Creation date: Tue Jan 29 19:10:46 2019.

To be imported qualified.

Synopsis

Types

type Name = String Source #

Name of substitution model; abstracted and subject to change.

type Params = [Double] Source #

Parameters of substitution model. May be the empty list.

Lenses and other accessors

getRateMatrix :: SubstitutionModel -> RateMatrix Source #

Calculate rate matrix from substitution model.

totalRate :: SubstitutionModel -> Double Source #

Get scale of substitution model.

Building substitution models

Transformations

scale :: Double -> SubstitutionModel -> SubstitutionModel Source #

Scale the rate of a substitution model by given factor.

normalize :: SubstitutionModel -> SubstitutionModel Source #

Normalize a substitution model, so that, on average, one substitution happens per unit time.

Output

summarize :: SubstitutionModel -> [ByteString] Source #

Summarize a substitution model; lines to be printed to screen or log.