Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add auto-finishing for nexus files #144

Open
roblanf opened this issue Dec 5, 2019 · 0 comments
Open

add auto-finishing for nexus files #144

roblanf opened this issue Dec 5, 2019 · 0 comments

Comments

@roblanf
Copy link
Collaborator

roblanf commented Dec 5, 2019

I have some output files from *BEAST which are not properly finished and so don't load with read.nexus().

The issue is simple, the file are supposed to end with these two lines:

			;
End;

but they don't.

The fix is also simple - we just ask what the last two lines are, and if they're not as above (we can strip whitespace and convert to all caps for simple comparisons), we should make sure the last two lines are like that. This will mean people can load chains that are not finished yet too.

My suggestion is that we do this by doing find-replace on read.nexus and replace it with replace.nexus.rwty, then write an additional function which this would call before calling read.nexus, something like check.nexus.ending().

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

No branches or pull requests

1 participant