Skip to content

Commit

Permalink
Merge pull request #28 from cov-lineages/dev
Browse files Browse the repository at this point in the history
Fix bugs with define
  • Loading branch information
rmcolq authored Aug 5, 2021
2 parents 47c5b19 + 233f4b4 commit 1278e79
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scorpio/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
_program = "scorpio"
__version__ = "0.3.11"
__version__ = "0.3.12"
2 changes: 1 addition & 1 deletion scorpio/scripts/extract_definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def define_mutations(list_variants, feature_dict, reference_seq):
merged_list.append(new_var)
elif var.startswith("ins") or var.startswith("del"):
i, pos, add = var.split("_")
new_var = "%s:%i+%s" % (i, pos, add)
new_var = "%s:%s+%s" % (i, pos, add)
if freq:
merged_list.append("%s:%s" % (new_var, freq))
else:
Expand Down
2 changes: 1 addition & 1 deletion scorpio/scripts/type_constellations.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def load_feature_coordinates(reference_json):
features_dict[name] = (start, end, json_dict[feature][item]["gene"])
else:
features_dict[name] = (start, end)
logging.info("Found reference feature %s with coordinates" % name, features_dict[name])
logging.info("Found reference feature %s with coordinates %s" % (name, features_dict[name]))
if len(features_dict) == 0:
sys.stderr.write("No features (keys \"genes\", \"proteins\" or \"features\" ) provided in JSON %s " %
reference_json)
Expand Down

0 comments on commit 1278e79

Please sign in to comment.