From 0faf8442421d09b6d18e3b311474ba3f63ffd0ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=88=E5=AD=A3=E8=8A=B1=E4=B8=AD=E7=9A=84=E6=98=9F?= =?UTF-8?q?=E8=BE=B0?= Date: Sat, 15 Jan 2022 11:51:43 +0000 Subject: [PATCH] Update parser.go --- parser.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/parser.go b/parser.go index 0232b4f..a3bc481 100644 --- a/parser.go +++ b/parser.go @@ -13,6 +13,7 @@ type dna struct { } // 读取fas文件 +// read fas format files func fas_parser(file_name string) dna { // 读取文件 @@ -23,7 +24,9 @@ func fas_parser(file_name string) dna { } count := 0 + //sequence lines amount i := 0 // acgt行计数 + //samples amount j := -1 // 标题行计数 seq := make(map[string]string) indid := ""