Skip to content

Commit

Permalink
fixes bug when sos_thr > 0 in spoverlap get_my_evol_events . Fixes #404
Browse files Browse the repository at this point in the history
  • Loading branch information
jhcepas committed May 25, 2019
1 parent 6f3d59c commit b345501
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ete3/phylo/spoverlap.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,13 @@ def get_evol_events_from_leaf(node, sos_thr=0.0):
all_events.append(event)

# If NO species overlap: speciation
elif score == sos_thr:
elif score <= sos_thr:
event.node = current.up
event.etype = "S"
event.orthologs = set([n.name for n in sister_leaves if n.species != ref_spcs])
event.outparalogs = set([])
current.up.add_feature("evoltype","S")
all_events.append(event)
else:
pass # do not add event if distances == 0

# Updates browsed species
browsed_spcs |= sister_spcs
Expand Down

0 comments on commit b345501

Please sign in to comment.