From 64f4a12b04642ad0e6c8ec90541e33919c484782 Mon Sep 17 00:00:00 2001 From: Frederic Lemoine Date: Tue, 4 May 2021 23:49:21 +0200 Subject: [PATCH] Corrections --- align/seqbag.go | 5 +---- io/utils/readfiles.go | 3 +-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/align/seqbag.go b/align/seqbag.go index e094ced..a2bb58d 100644 --- a/align/seqbag.go +++ b/align/seqbag.go @@ -990,10 +990,7 @@ func (sb *seqbag) TrimNamesAuto(namemap map[string]string, curid *int) (err erro (*curid)++ // In case of several alignments to rename, // The number of necessary digits may be updated - newlength := int(math.Ceil(math.Log10(float64(*curid + 1)))) - if newlength > length { - length = newlength - } + length = int(math.Ceil(math.Log10(float64(*curid + 1)))) } seq.name = newname } diff --git a/io/utils/readfiles.go b/io/utils/readfiles.go index cc73510..b9404ee 100644 --- a/io/utils/readfiles.go +++ b/io/utils/readfiles.go @@ -2,14 +2,13 @@ package utils import ( "bufio" + "compress/bzip2" "compress/gzip" "io" "net/http" "os" "strings" - "compress/bzip2" - "github.com/ulikunitz/xz" )