-
Notifications
You must be signed in to change notification settings - Fork 17
feat: Allow custom color palettes for XString objects
#123
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
Conversation
|
@ahl27 Thanks Aidan. Please name the Rd file Also: Always spend a little bit of time trying to break your own code, it's a good exercise. Even better is to turn this exercise into unit tests. Thanks again! |
|
urgh, what a silly mistake...I'm getting better at catching them, but I guess I still have a ways to go. Thanks for your feedback, I'll make these changes today or tomorrow! |
…e; checks for invalid input in BString; more testing
…n BString palette update
|
Made the following fixes:
|
|
Thanks for all the improvements. Man page and unit tests look good! Please add Let's update the header of (resusing the title of your man page here), and remove this line (we'll probably forget to update it if we ever rename these functions or add new exported functions in the future): Looks like there's code repetition in Thanks again, |
627718e to
a379532
Compare
|
Great comments, I was too focused on extending the current codebase that I didn't realize it could use a refactor. Getting BStrings to work with it was a little odd, but I think overall it's more readable and maintainable this way. I think it's a good improvement to the coloring stuff! Changes:
|
|
Thanks for these changes. Coloring code is in good shape and is well documented. The unit tests look solid. Great work! |
Adds a collection of functions that allow users to specify new color palettes to display
XStringobjects. This solves #115.Slight refactor to move global variables into a package-specific environment to remove some
<<-calls.Also allows for users to specify colors for
BStringobjects if they'd like, though the default is still no coloring.Adds some additional unit tests and documentation pages.
I'm not sure I love the
update_X_paletteformat for the function names...maybeupdateDNApaletteorupdate_DNA_COLORED_LETTERSwould be better? Unsure.Example usage is below.