Skip to content

Commit

Permalink
handle recombinant assignments that dont pass both parents- dont acce…
Browse files Browse the repository at this point in the history
…pt best constellation update if mrca lineage is an empty string
  • Loading branch information
aineniamh committed Apr 14, 2022
1 parent 2ae9e99 commit 9b6e2fc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 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.16"
__version__ = "0.3.17"
13 changes: 7 additions & 6 deletions scorpio/scripts/type_constellations.py
Original file line number Diff line number Diff line change
Expand Up @@ -1051,12 +1051,13 @@ def classify_constellations(in_fasta, list_constellation_files, constellation_na
or (counts['support'] == best_support and counts['conflict'] < best_conflict)\
or (counts['support'] == best_support and counts['conflict'] == best_conflict and counts['rules'] > best_counts["rules"])\
or (best_constellation in parents):
best_constellation = constellation
logging.debug("Set best constellation %s" %best_constellation)
best_support = counts['support']
best_conflict = counts['conflict']
best_counts = counts
best_call = call
if mrca_lineage_dict[constellation]:
best_constellation = constellation
logging.debug("Set best constellation %s" %best_constellation)
best_support = counts['support']
best_conflict = counts['conflict']
best_counts = counts
best_call = call

if interspersion:
if counts["alt"] > 1:
Expand Down

0 comments on commit 9b6e2fc

Please sign in to comment.