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

Support RNA sequences #21

Open
fedarko opened this issue Feb 10, 2025 · 0 comments
Open

Support RNA sequences #21

fedarko opened this issue Feb 10, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@fedarko
Copy link
Owner

fedarko commented Feb 10, 2025

Probably the easiest solution is adding a boolean flag rna when creating a DotPlotMatrix (defaulting to False). If this is True, then the code should just work as normal but replace T with U. If either of the input sequences contain a T then this should cause an error, same as how (currently) if either of the input sequences contain a U then this causes an error.

This is similar to #12 / #13.

Edit: actually, it would be even better to just add a flag called seq_type or something that can be one of {dna, rna, protein} or something. It should default to dna and result in the current validation behavior. We can just save this as a property of the matrix object -- will make the code easy to interpret.

@fedarko fedarko added the enhancement New feature or request label Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant