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

Emit primer pairs in penalty order. #87

Merged
merged 7 commits into from
Dec 13, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update prymer/api/picking.py
Co-authored-by: Matt Stone <matt@fulcrumgenomics.com>
  • Loading branch information
tfenne and msto committed Dec 13, 2024
commit 354e5bf0e6bdae2c825fc8741309ec058efc9fd8
3 changes: 2 additions & 1 deletion prymer/api/picking.py
Original file line number Diff line number Diff line change
@@ -121,7 +121,8 @@ def build_primer_pairs( # noqa: C901
fasta_path: the path to the FASTA file from which the amplicon sequence will be retrieved.

Returns:
an iterator over all the valid primer pairs, sorted by primer pair penalty
An iterator over all the valid primer pairs, sorted by primer pair penalty.
Primer pairs with smaller penalties are returned first.
"""
# Short circuit if we have no left primers or no right primers
if not any(left_primers) or not any(right_primers):