Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add stats to codon tables * separate stats into its own codon analyzer struct * stats struct * turn codonTable into TranslationTable, which holds the required data for translation and optimisation * generate translation and optimisation maps in constructors * update the Compromise and Add funcs to copy the first table when merging (no risk of changing data through pointer) * add gene count to stats * DRY tests with new structures * DRY examples with new structures * update synthesis code to use the codontable's Optimize func * update amino acid weights through setter * bubble up table weight update errs * make stats part of the table struct so we can track them across a table's lifetime, which is probably closer to what we want * make translation table stats public rather than use a getter * move stats below other interfaces * add translate to table interface * update changelog * add weight update err test * newAminoAcidChoosers test * UpdateWeights test * Compromise/Add codon table tests * add an example for using manual codon weights --------- Co-authored-by: Willow Carretero Chavez <sandiegobutterflies@gmail.com>
- Loading branch information