Skip to content

Commit

Permalink
Merge pull request #92 from MaozGelbart/fix_codonoptimize
Browse files Browse the repository at this point in the history
Update `CodonOptimize` error message
  • Loading branch information
veghp authored Dec 9, 2024
2 parents 130628a + 384cbcd commit 049bbff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,15 @@ def CodonOptimize(
When the method is 'harmonize_rca', this is the native species of the
original coding sequence. Same characteristics as parameter ``species``
above.
original_codon_usage_table
Optional codon usage table of the original sequence's native species.
A dict of the form ``{'*': {"TGA": 0.112, "TAA": 0.68}, 'K': ...}``
giving the codon usage table.
References
==========
Claassens et. al., Improving heterologous membrane protein
production in Escherichia coli by combining transcriptional tuning and
codon usage algorithms. PLOS One, 2017
Expand Down Expand Up @@ -105,5 +105,5 @@ def CodonOptimize(
original_codon_usage_table=original_codon_usage_table,
boost=boost,
)
raise ValueError("Parameter 'mode' should be one of best_codon, "
"match_usage, ")
raise ValueError("`method` must be 'use_best_codon', 'match_codon_usage' "
f"or 'harmonize_rca', not {method!r}")
2 changes: 1 addition & 1 deletion dnachisel/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "3.2.11"
__version__ = "3.2.12"

0 comments on commit 049bbff

Please sign in to comment.