Skip to content

Commit

Permalink
Changed goalign to v0.3.3c #8
Browse files Browse the repository at this point in the history
  • Loading branch information
fredericlemoine committed Jun 22, 2020
1 parent b223049 commit a65d200
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Gopkg.toml
Expand Up @@ -8,7 +8,8 @@

[[constraint]]
name = "github.com/evolbioinfo/goalign"
version = ">=v0.3.1-alpha"
#version = ">=v0.3.3c"
version="v0.3.3c"
#revision = "ab854d8a691112edd3c4d8a90fd751d9878bb44c"
#branch="dev"

Expand Down
4 changes: 3 additions & 1 deletion io/nexus/nexus_parser.go
Expand Up @@ -166,10 +166,12 @@ func (p *Parser) Parse() (*Nexus, error) {
// We check that tax labels are the same as alignment sequence names
if taxlabels != nil {
var err error
al.Iterate(func(name string, sequence string) {
al.Iterate(func(name string, sequence string) bool {
if _, ok := taxlabels[name]; !ok {
err = fmt.Errorf("Sequence name %s in the alignment is not defined in the TAXLABELS block", name)
return true
}
return false
})
if err != nil {
return nil, err
Expand Down

0 comments on commit a65d200

Please sign in to comment.