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

Should OffTargetDetector.mappings_of() return a dict[Primer, BwaResult] instead of dict[str, BwaResult]? #10

Open
emmcauley opened this issue Aug 22, 2024 · 2 comments

Comments

@emmcauley
Copy link
Collaborator

Context:
OffTargetDetector.mappings_of() currently returns dict[str, BwaResult] where the key is the sequence of bases of the primer. It may be more natural to return the full Primer object as the key instead of just the bases.

@msto
Copy link
Collaborator

msto commented Sep 18, 2024

We'll need to make Primer hashable in order to do so (adding eq=True to the dataclass decorator should be sufficient)

@tfenne
Copy link
Member

tfenne commented Sep 19, 2024

This would make a lot of sense to me, since my first question when I looked at that code was "why are we returning a dict keyed on strings instead of primers".

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

3 participants