MCPcopy Create free account
hub / github.com/bebop/poly / ReadCodonJSON

Function ReadCodonJSON

synthesis/codon/codon.go:574–578  ·  view source on GitHub ↗

ReadCodonJSON reads a codonTable JSON file.

(path string)

Source from the content-addressed store, hash-verified

572
573// ReadCodonJSON reads a codonTable JSON file.
574func 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.
581func WriteCodonJSON(codonTable *TranslationTable, path string) {

Callers 15

Example_basicFunction · 0.92
ExampleCdsFunction · 0.92
ExampleCdsSimpleFunction · 0.92
BenchmarkCdsFunction · 0.92
TestReversionFunction · 0.92
TestCdsFunction · 0.92
TestCdsBadInputFunction · 0.92
TestBtgZIComplexFixFunction · 0.92
TestBufferFailureFunction · 0.92
TestTooMuchRepeatFunction · 0.92
TestBadCodonTableFunction · 0.92

Calls 1

ParseCodonJSONFunction · 0.85

Tested by 15

Example_basicFunction · 0.74
ExampleCdsFunction · 0.74
ExampleCdsSimpleFunction · 0.74
BenchmarkCdsFunction · 0.74
TestReversionFunction · 0.74
TestCdsFunction · 0.74
TestCdsBadInputFunction · 0.74
TestBtgZIComplexFixFunction · 0.74
TestBufferFailureFunction · 0.74
TestTooMuchRepeatFunction · 0.74
TestBadCodonTableFunction · 0.74