SeqCombGo/seqcomb.go

35 lines
601 B
Go
Raw Normal View History

2022-01-13 20:12:32 +08:00
package main
import (
"strings"
)
type tmpl_data struct {
Ntax int
Nchar int
Matrix map[string]string
Charset []charset
}
func main() {
dna_flag()
sum_nex := fas_sum()
2022-01-14 17:20:42 +08:00
sum_charset := fas_count(sum_nex)
2022-01-13 20:12:32 +08:00
2022-01-14 17:20:42 +08:00
sum_dna, ntax, nchar := fas_mix(sum_nex, sum_charset)
2022-01-13 20:12:32 +08:00
matrix := make(map[string]string, ntax)
for k := range sum_dna {
matrix[k] = strings.Join(sum_dna[k], "")
}
// 准备发射到模板的数据
2022-01-15 19:50:18 +08:00
//prepare the var used by tmpl
2022-01-13 20:12:32 +08:00
last_data := tmpl_data{ntax, nchar, matrix, sum_charset}
// fmt.Println(last_data)
do_impl(last_data)
}