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

Function ParseCodonJSON

synthesis/codon/codon.go:567–571  ·  view source on GitHub ↗

****************************************************************************** Nov, 20, 2020 Codon table JSON stuff begins here. In 2007, a Japanese group made a codon usage database based off of the current iteration of GenBank at the time. It became pretty much the #1 place to get codon tables f

(file []byte)

Source from the content-addressed store, hash-verified

565
566// ParseCodonJSON parses a codonTable JSON file.
567func ParseCodonJSON(file []byte) *TranslationTable {
568 var codonTable TranslationTable
569 _ = json.Unmarshal(file, &codonTable)
570 return &codonTable
571}
572
573// ReadCodonJSON reads a codonTable JSON file.
574func ReadCodonJSON(path string) *TranslationTable {

Callers 2

ExampleParseCodonJSONFunction · 0.92
ReadCodonJSONFunction · 0.85

Calls

no outgoing calls

Tested by 1

ExampleParseCodonJSONFunction · 0.74