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

Consider exposing the attributes of an Oligo's span as Oligo properties #78

Open
msto opened this issue Nov 7, 2024 · 0 comments
Open
Assignees

Comments

@msto
Copy link
Collaborator

msto commented Nov 7, 2024

It may be convenient if Oligo implemented properties to expose corresponding attributes on the member Span, e.g.

@property
def start(self) -> int:
    """The oligo's start position on the target."""
    return self.span.start

An alternative solution would be to make Oligo inherit from or implement Span/Interval, so start/end/strand are attributes of Oligo, not one of its members.

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

No branches or pull requests

2 participants