Skip to content

Conversation

@josephwb
Copy link

@josephwb josephwb commented May 4, 2021

NCL supports INTERLEAVE and NOINTERLEAVE, while many software (e.g., MrBayes, PAUP*, etc.) support INTERLEAVE=YES and INTERLEAVE=NO (NCL halts processing and reports an error on this). NCL follows the original Nexus definition (Maddison et al., 1997), but since so many packages support both formats it seems reasonable that NCL should as well.

This simple edit adds support for the latter to NCL (NxsCharactersBlock::HandleFormat()).

Note: nxsdistancesblock.cpp also parses interleave statements (NxsDistancesBlock::HandleFormatCommand()), but does so in a different way (token.GetNextToken() rather than iterating through a tokenized vector). Presumably a token.PeekNextToken() function could be added to mirror functionality above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant