Skip to content

Commit

Permalink
Clustal format can take numeric names and correction of seq conservation
Browse files Browse the repository at this point in the history
  • Loading branch information
fredericlemoine committed Jul 4, 2018
1 parent 72d22cf commit c4790bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion align/align.go
Original file line number Diff line number Diff line change
Expand Up @@ -1295,7 +1295,7 @@ func (a *align) SiteConservation(position int) (conservation int, err error) {
}
}
}
if prevchar != ';' && sequence[position] != prevchar {
if (prevchar != ';' && sequence[position] != prevchar) || sequence[position] == GAP {
same = false
}
prevchar = sequence[position]
Expand Down
2 changes: 1 addition & 1 deletion io/clustal/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func (p *Parser) Parse() (align.Alignment, error) {
currentnbseqs = 0
}

if tok != IDENTIFIER {
if tok != IDENTIFIER && tok != NUMERIC {
return nil, errors.New("We expect a sequence identifier here")
}
name = lit
Expand Down

0 comments on commit c4790bd

Please sign in to comment.