Skip to content

Commit

Permalink
Fixed issue in PrepExternalSchema related to adaptation of small loci.
Browse files Browse the repository at this point in the history
  • Loading branch information
rfm-targa committed Jun 27, 2024
1 parent 44abbe0 commit f296fbc
Show file tree
Hide file tree
Showing 3 changed files with 495 additions and 469 deletions.
2 changes: 2 additions & 0 deletions CHEWBBACA/AlleleCallEvaluator/evaluate_calls.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,11 @@ def main(input_files, schema_directory, output_directory, annotations,
cpu_cores, light, no_pa, no_dm, no_tree, cg_alignment):

config_file = fo.join_paths(schema_directory, [ct.SCHEMA_CONFIG_BASENAME])
# Get translation table value from config file
if os.path.isfile(config_file) is True:
config = fo.pickle_loader(config_file)
translation_table = config.get('translation_table', [ct.GENETIC_CODES_DEFAULT])[0]
# Schema does not have config file, possible external schema
else:
translation_table = ct.GENETIC_CODES_DEFAULT

Expand Down
Loading

0 comments on commit f296fbc

Please sign in to comment.