coraallensavietta / RankingMethods

A Weighted Loss-Based Bayesian Ranking Method
0 stars 0 forks source link

Mutable NucleicAcidSubstitutionModels #15

Open coraallensavietta opened 6 years ago

coraallensavietta commented 6 years ago

Mutable NucleicAcidSubstitutionModels

Types of changes

This PR implements the following changes:

:clipboard: Additional detail

Modifies all the NucleicAcidSubstitutionModels to allow them to be mutable with new function, setrate!.

We need the models to be mutable because we want to use this package in another package that will optimize model rates based on data.

julia>  model = K80(0.5, 1.0);

julia> setrate!(model, [.5, .5])
Kimura 1980 model (absolute rate form)
α = 0.5, β = 0.5

:ballot_box_with_check: Checklist