-
Notifications
You must be signed in to change notification settings - Fork 273
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
Feature proposal: SAM tag enum #1272
Comments
I have a proof-of-concept for this feature that I'd happily open a PR for here, if it's a contribution that you think would be sensible to add to pysam |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I think it would be valuable to add two features to improve the use of SAM tags.
Would these features be welcomed into pysam?
I am happy to implement these but would appreciate feedback on whether this is a contribution that would be accepted into pysam, and if so, on some design considerations before starting.
Thank you!
SAM tag enum
The primary question I have regarding a SAM tag enum is whether the member names should be the actual SAM tags, or more semantically meaningful?
e.g.
or
(note that I suggest mixing in
str
or subclassingStrEnum
so the enums can be passed directly to pysam's tagging functions, e.g.read.has_tag(SamTag.UMI)
)SAM tag decorator
To support locally-defined tags, I would propose providing an enumeration class decorator that implements the following validations:
enum.unique
)e.g.
The text was updated successfully, but these errors were encountered: