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

Preserve_underscores #112

Open
wrightaprilm opened this issue Apr 23, 2019 · 2 comments
Open

Preserve_underscores #112

wrightaprilm opened this issue Apr 23, 2019 · 2 comments

Comments

@wrightaprilm
Copy link
Contributor

Hi Jeet,

I'm making a tree for a paper and I didn't want underscores in the taxon labels. I wanted to suggest in the Tree.write() functions, switching from a preserve_spaces to preserve_underscores. I think keeping the arguments the same between the input and output is more intuitive. I'd be happy to contribute a pull request doing that if you'd like.

@jeetsukumaran
Copy link
Owner

Hi April, that sounds great. Consistency and symmetry would be wonderful and is a design principle, so any lapse should be fixed. I would be happy to accept a PR if you can spare the time to work a fix, but the only thing that I ask is that legacy support be maintained.

This can be a little tedious --- as you will have to check and decide what to do if the user specifies both preserve_spaces'' and preserve_underscores''. Will this be an error? Will this be an error only if there is a conflict? Whether or not they conflict, they should probably both map (populate) the same internal variable (that then gets checked by the underlying writer logic), so that the rest of the code does not need to worry about this double specification.

If you can get by for a couple of weeks, I will be happy to look into this myself.

@wrightaprilm
Copy link
Contributor Author

Cool, I'll see if I have some time next Friday.

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

3 participants