Skip to content

Commit c741dcb

Browse files
authored
Fix auto-detection of binary data (#350)
1 parent f45507f commit c741dcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

alignment/alignment.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1335,7 +1335,7 @@ SeqType Alignment::detectSequenceType(StrVector &sequences) {
13351335
}
13361336
if (((double)num_nuc) / num_ungap > 0.9)
13371337
return SEQ_DNA;
1338-
if (((double)num_bin) / num_ungap > 0.9)
1338+
if (num_bin == num_ungap) // For binary data, only 0, 1, ?, -, . can occur
13391339
return SEQ_BINARY;
13401340
if (((double)num_alpha + num_nuc) / num_ungap > 0.9)
13411341
return SEQ_PROTEIN;

0 commit comments

Comments
 (0)