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

Function ExampleWriteCodonJSON

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

Source from the content-addressed store, hash-verified

127}
128
129func ExampleWriteCodonJSON() {
130 codontable := codon.ReadCodonJSON("../../data/bsub_codon_test.json")
131 codon.WriteCodonJSON(codontable, "../../data/codon_test.json")
132 testCodonTable := codon.ReadCodonJSON("../../data/codon_test.json")
133
134 // cleaning up test data
135 os.Remove("../../data/codon_test.json")
136
137 fmt.Println(testCodonTable.GetWeightedAminoAcids()[0].Codons[0].Weight)
138 //output: 28327
139}
140
141func ExampleCompromiseCodonTable() {
142 sequence, _ := genbank.Read("../../data/puc19.gbk")

Callers

nothing calls this directly

Calls 3

ReadCodonJSONFunction · 0.92
WriteCodonJSONFunction · 0.92
GetWeightedAminoAcidsMethod · 0.65

Tested by

no test coverage detected