Skip to content

Commit

Permalink
fix: change int weights to float weights, update doctest examples (#61)
Browse files Browse the repository at this point in the history
Closes #59.
  • Loading branch information
emmcauley authored Oct 4, 2024
1 parent a132a52 commit f71dc65
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions prymer/primer3/primer3_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@
PRIMER_MAX_POLY_X -> 5
PRIMER_MAX_NS_ACCEPTED -> 1
PRIMER_LOWERCASE_MASKING -> 1
PRIMER_PAIR_WT_PRODUCT_SIZE_LT -> 1
PRIMER_PAIR_WT_PRODUCT_SIZE_GT -> 1
PRIMER_PAIR_WT_PRODUCT_SIZE_LT -> 1.0
PRIMER_PAIR_WT_PRODUCT_SIZE_GT -> 1.0
PRIMER_PAIR_WT_PRODUCT_TM_LT -> 0.0
PRIMER_PAIR_WT_PRODUCT_TM_GT -> 0.0
PRIMER_WT_END_STABILITY -> 0.25
Expand Down
10 changes: 5 additions & 5 deletions prymer/primer3/primer3_weights.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ class Primer3Weights:
Example:
>>> Primer3Weights() #default implementation
Primer3Weights(product_size_lt=1, product_size_gt=1, product_tm_lt=0.0, product_tm_gt=0.0, primer_end_stability=0.25, primer_gc_lt=0.25, primer_gc_gt=0.25, primer_self_any=0.1, primer_self_end=0.1, primer_size_lt=0.5, primer_size_gt=0.1, primer_tm_lt=1.0, primer_tm_gt=1.0)
Primer3Weights(product_size_lt=1.0, product_size_gt=1.0, product_tm_lt=0.0, product_tm_gt=0.0, primer_end_stability=0.25, primer_gc_lt=0.25, primer_gc_gt=0.25, primer_self_any=0.1, primer_self_end=0.1, primer_size_lt=0.5, primer_size_gt=0.1, primer_tm_lt=1.0, primer_tm_gt=1.0)
>>> Primer3Weights(product_size_lt=5)
Primer3Weights(product_size_lt=5, product_size_gt=1, product_tm_lt=0.0, product_tm_gt=0.0, primer_end_stability=0.25, primer_gc_lt=0.25, primer_gc_gt=0.25, primer_self_any=0.1, primer_self_end=0.1, primer_size_lt=0.5, primer_size_gt=0.1, primer_tm_lt=1.0, primer_tm_gt=1.0)
>>> Primer3Weights(product_size_lt=5.0)
Primer3Weights(product_size_lt=5.0, product_size_gt=1.0, product_tm_lt=0.0, product_tm_gt=0.0, primer_end_stability=0.25, primer_gc_lt=0.25, primer_gc_gt=0.25, primer_self_any=0.1, primer_self_end=0.1, primer_size_lt=0.5, primer_size_gt=0.1, primer_tm_lt=1.0, primer_tm_gt=1.0)
""" # noqa: E501

product_size_lt: int = 1
product_size_gt: int = 1
product_size_lt: float = 1.0
product_size_gt: float = 1.0
product_tm_lt: float = 0.0
product_tm_gt: float = 0.0
primer_end_stability: float = 0.25
Expand Down

0 comments on commit f71dc65

Please sign in to comment.