func ExampleCompromiseCodonTable() {
	sequence := ReadGbk("data/puc19.gbk")
	codonTable := GetCodonTable(11)
	optimizationTable := sequence.GetOptimizationTable(codonTable)

	sequence2 := ReadGbk("data/phix174.gb")
	codonTable2 := GetCodonTable(11)
	optimizationTable2 := sequence2.GetOptimizationTable(codonTable2)

	finalTable, _ := CompromiseCodonTable(optimizationTable, optimizationTable2, 0.1)
	for _, aa := range finalTable.AminoAcids {
		for _, codon := range aa.Codons {
			if codon.Triplet == "TAA" {
				fmt.Println(codon.Weight)
			}
		}
	}
	//output: 2727
}
/******************************************************************************

Codon Compromise + Add related tests begin here.

******************************************************************************/
Codon Compromise + Add related tests begin here.
/ ****************************************************************************** Codon Compromise + Add related tests begin here . ****************************************************************************** /
func ExampleCompromiseCodonTable() {
	sequence := ReadGbk("data/puc19.gbk")
	codonTable := GetCodonTable(11)
	optimizationTable := sequence.GetOptimizationTable(codonTable)
	sequence2 := ReadGbk("data/phix174.gb")
	codonTable2 := GetCodonTable(11)
	optimizationTable2 := sequence2.GetOptimizationTable(codonTable2)
	finalTable, _ := CompromiseCodonTable(optimizationTable, optimizationTable2, 0.1)
	for _, aa := range finalTable.AminoAcids {
		for _, codon := range aa.Codons {
			if codon.Triplet == "TAA" {
				fmt.Println(codon.Weight)
			}
		}
	}
}
func ExampleCompromiseCodonTable ( ) { sequence := ReadGbk ( " " ) codonTable := GetCodonTable ( 11 ) optimizationTable := sequence . GetOptimizationTable ( codonTable ) sequence2 := ReadGbk ( " " ) codonTable2 := GetCodonTable ( 11 ) optimizationTable2 := sequence2 . GetOptimizationTable ( codonTable2 ) finalTable , _ := CompromiseCodonTable ( optimizationTable , optimizationTable2 , 0.1 ) for _ , aa := range finalTable . AminoAcids { for _ , codon := range aa . Codons { if codon . Triplet == " " { fmt . Println ( codon . Weight ) } } } }
Codon Compromise + Add related tests begin here.
Codon Compromise + Add related tests begin here .
//output: 2727