Skip to content

Commit

Permalink
Fixed #180 issue
Browse files Browse the repository at this point in the history
The issue happened when running IQ-TREE with (1) constraint tree file including the internal node name and (2) bootstrapping.
  • Loading branch information
thomaskf committed Apr 26, 2024
1 parent 546f830 commit 4f38c19
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tree/mtree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -949,6 +949,19 @@ void MTree::parseFile(istream &infile, char &ch, Node* &root, DoubleVector &bran
}
if ((controlchar(ch) || ch == '[' || ch == end_ch) && !infile.eof())
ch = readNextChar(infile, ch);

// if ch == '/' then continue to add to the seqname
if (ch == '/') {
while (!infile.eof() && seqlen < maxlen)
{
if (is_newick_token(ch) || controlchar(ch)) break;
seqname += ch;
seqlen++;
ch = infile.get();
in_column++;
}
}

if (seqlen == maxlen)
throw "Too long name ( > 1000)";
if (root->isLeaf())
Expand Down

0 comments on commit 4f38c19

Please sign in to comment.