ReadCodonJSON reads a codonTable JSON file.
(path string)
| 572 | |
| 573 | // ReadCodonJSON reads a codonTable JSON file. |
| 574 | func ReadCodonJSON(path string) *TranslationTable { |
| 575 | file, _ := os.ReadFile(path) |
| 576 | codonTable := ParseCodonJSON(file) |
| 577 | return codonTable |
| 578 | } |
| 579 | |
| 580 | // WriteCodonJSON writes a codonTable struct out to JSON. |
| 581 | func WriteCodonJSON(codonTable *TranslationTable, path string) { |