Skip to content

Commit

Permalink
Test EnforceMeltingTemperature
Browse files Browse the repository at this point in the history
  • Loading branch information
veghp committed Nov 26, 2024
1 parent b7eaf2d commit 130628a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/builtin_specifications/test_EnforceMeltingTemperature.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from dnachisel import DnaOptimizationProblem
from dnachisel.builtin_specifications import (
EnforceMeltingTemperature,
)


def test_enforce_metling_temperature():
"""Test by creating a new primer."""
# Test issue #89
problem = DnaOptimizationProblem(
sequence="ATTTGAGACCCGACGTTAGA",
objectives=[
EnforceMeltingTemperature(mini=20, maxi=86, location=None, boost=1.0)
],
)
problem.resolve_constraints()
problem.optimize()

0 comments on commit 130628a

Please sign in to comment.