func main() { if len(os.Args) != 2 { panic("must provide sequence file.") } idx := new(comp.Index) idx.Build(os.Args[1]) fmt.Printf("%s\tD\t%f\n", os.Args[1], idx.D()) fmt.Printf("%s\tI\t%f\n", os.Args[1], idx.I()) for k := 25; k <= 200; k += 25 { fmt.Printf("%s\tD%d\t%f\n", os.Args[1], k, idx.Dk(k)) } }
func main() { if len(os.Args) != 2 { panic("must provide sequence file.") } idx := new(comp.Index) idx.Build(os.Args[1]) fmt.Println(idx.D()) fmt.Println(idx.I()) for i := 12; i < 150; i += 5 { fmt.Println(i, "\t", idx.Ik(i)) } }