MCPcopy Create free account
hub / github.com/Koeng101/dnadesign / ExampleWriteCodonJSON

Function ExampleWriteCodonJSON

lib/synthesis/codon/example_test.go:71–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69}
70
71func ExampleWriteCodonJSON() {
72 codontable := codon.ReadCodonJSON("../../data/bsub_codon_test.json")
73 codon.WriteCodonJSON(codontable, "../../data/codon_test.json")
74 testCodonTable := codon.ReadCodonJSON("../../data/codon_test.json")
75
76 // cleaning up test data
77 os.Remove("../../data/codon_test.json")
78
79 fmt.Println(testCodonTable.GetWeightedAminoAcids()[0].Codons[0].Weight)
80 //output: 28327
81}
82
83func ExampleCompromiseCodonTable() {
84 file, _ := os.Open(puc19path)

Callers

nothing calls this directly

Calls 1

GetWeightedAminoAcidsMethod · 0.65

Tested by

no test coverage detected