Skip to content

Commit 2cf54fa

Browse files
committed
added n_to_test again
1 parent 1bad536 commit 2cf54fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

varvamp/scripts/qpcr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ def test_amplicon_deltaG_parallel(qpcr_schemes_candidates, majority_consensus, n
344344
# Create a list of the first n amplicon tuples for processing
345345
# The list is sorted first on whether offset targets were predicted for the amplicon,
346346
# then by penalty. This ensures that amplicons with offset targets are always considered last
347-
amplicons = list(sorted(qpcr_schemes_candidates, key=lambda x: (x.get("offset_targets", False), x["penalty"])))
347+
amplicons = list(sorted(qpcr_schemes_candidates, key=lambda x: (x.get("offset_targets", False), x["penalty"])))[:n_to_test]
348348
# process amplicons concurrently
349349
batch_size = max(1, int(n_to_test / n_processes))
350350
callable_f = functools.partial(

0 commit comments

Comments
 (0)