Skip to content

Commit 9aefe57

Browse files
committed
Use correct label for the harmonize algorithm
1 parent 049bbff commit 9aefe57

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

dnachisel/builtin_specifications/codon_optimization/HarmonizeRCA.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def initialized_on_problem(self, problem, role):
117117
return new_spec
118118

119119
def evaluate(self, problem):
120-
"""Return the evaluation for mode==best_codon."""
120+
"""Return the evaluation for method=="harmonize_rca"."""
121121
codons = self.get_codons(problem)
122122

123123
if len(codons) == 1:
@@ -165,7 +165,14 @@ def label_parameters(self):
165165
return [self.original_species + " -> " + self.species]
166166

167167
def short_label(self):
168-
result = "best-codon-optimize"
168+
short_label = "harmonize-rca ("
169169
if self.species is not None:
170-
result += " (%s)" % self.species
171-
return result
170+
target_species = self.species
171+
else:
172+
target_species = "custom table"
173+
if self.original_species is not None:
174+
original_species = self.original_species
175+
else:
176+
original_species = "custom table"
177+
result += " (%s)" % self.species
178+
return short_label + original_species + " -> " + target_species + ")"

0 commit comments

Comments
 (0)