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

Function ExampleParseCodonJSON

synthesis/codon/example_test.go:121–127  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

119}
120
121func ExampleParseCodonJSON() {
122 file, _ := os.ReadFile("../../data/bsub_codon_test.json")
123 codontable := codon.ParseCodonJSON(file)
124
125 fmt.Println(codontable.GetWeightedAminoAcids()[0].Codons[0].Weight)
126 //output: 28327
127}
128
129func ExampleWriteCodonJSON() {
130 codontable := codon.ReadCodonJSON("../../data/bsub_codon_test.json")

Callers

nothing calls this directly

Calls 2

ParseCodonJSONFunction · 0.92
GetWeightedAminoAcidsMethod · 0.65

Tested by

no test coverage detected