()
| 69 | } |
| 70 | |
| 71 | func 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 | |
| 83 | func ExampleCompromiseCodonTable() { |
| 84 | file, _ := os.Open(puc19path) |
nothing calls this directly
no test coverage detected