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" )