Skip to content

Commit e9ddc8d

Browse files
authored
Make sure the number_probes_returned is respected. (#79)
1 parent 9f51325 commit e9ddc8d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

prymer/primer3/primer3_parameters.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ def to_input_tags(self) -> dict[Primer3InputTag, Any]:
284284
Primer3InputTag.PRIMER_INTERNAL_MAX_SELF_ANY_TH: self.probe_max_homodimer_tm,
285285
Primer3InputTag.PRIMER_INTERNAL_MAX_SELF_END_TH: self.probe_max_3p_homodimer_tm,
286286
Primer3InputTag.PRIMER_INTERNAL_MAX_HAIRPIN_TH: self.probe_max_hairpin_tm,
287+
Primer3InputTag.PRIMER_NUM_RETURN: self.number_probes_return,
287288
}
288289

289290
return mapped_dict

tests/primer3/test_primer3_input.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,9 @@ def test_probe_design_only_valid(
101101
)
102102
mapped_dict = test_input.to_input_tags(design_region=test_design_region)
103103
assert mapped_dict[Primer3InputTag.PRIMER_PICK_INTERNAL_OLIGO] == 1
104+
assert Primer3InputTag.PRIMER_NUM_RETURN in mapped_dict
104105

105-
assert len(mapped_dict.keys()) == 27
106+
assert len(mapped_dict.keys()) == 28
106107

107108
# test instantiation of default `ProbeWeights` when they are not provided
108109
altered_input = Primer3Input(

0 commit comments

Comments
 (0)