Skip to content

Commit 049bbff

Browse files
authored
Merge pull request #92 from MaozGelbart/fix_codonoptimize
Update `CodonOptimize` error message
2 parents 130628a + 384cbcd commit 049bbff

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

dnachisel/builtin_specifications/codon_optimization/CodonOptimize.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ def CodonOptimize(
6363
When the method is 'harmonize_rca', this is the native species of the
6464
original coding sequence. Same characteristics as parameter ``species``
6565
above.
66-
66+
6767
original_codon_usage_table
6868
Optional codon usage table of the original sequence's native species.
6969
A dict of the form ``{'*': {"TGA": 0.112, "TAA": 0.68}, 'K': ...}``
7070
giving the codon usage table.
71-
71+
7272
References
7373
==========
74-
74+
7575
Claassens et. al., Improving heterologous membrane protein
7676
production in Escherichia coli by combining transcriptional tuning and
7777
codon usage algorithms. PLOS One, 2017
@@ -105,5 +105,5 @@ def CodonOptimize(
105105
original_codon_usage_table=original_codon_usage_table,
106106
boost=boost,
107107
)
108-
raise ValueError("Parameter 'mode' should be one of best_codon, "
109-
"match_usage, ")
108+
raise ValueError("`method` must be 'use_best_codon', 'match_codon_usage' "
109+
f"or 'harmonize_rca', not {method!r}")

dnachisel/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "3.2.11"
1+
__version__ = "3.2.12"

0 commit comments

Comments
 (0)