Skip to content

Commit

Permalink
message about invalid outgroups
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjpage committed Jan 23, 2015
1 parent 404203e commit 6499829
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.0
1.1.1
11 changes: 11 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
gubbins (1.1.1~trusty1) trusty; urgency=low

* Message to tell user theres a problem with outgroups not a clade

-- Andrew Page <ap13@sanger.ac.uk> Fri, 23 Jan 2015 16:02 gubbins (1.1.0~trusty1) trusty; urgency=low

* Allow for multiple outgroups

-- Andrew Page <ap13@sanger.ac.uk> Fri, 23 Jan 2015 15:05:00 +0000
:00 +0000

gubbins (1.1.0~trusty1) trusty; urgency=low

* Allow for multiple outgroups
Expand Down
1 change: 1 addition & 0 deletions python/gubbins/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,7 @@ def get_monophyletic_outgroup(tree_name, outgroups):

for leaf_node in tree.mrca(taxon_labels=outgroups).leaf_nodes():
if leaf_node.taxon.label not in outgroups:
print "Your outgroups do not form a clade.\n Using the first taxon "+str(outgroups[0])+" as the outgroup.\n Taxon "+str(leaf_node.taxon.label)+" is in the clade but not in your list of outgroups."
return [outgroups[0]]

return outgroups
Expand Down

0 comments on commit 6499829

Please sign in to comment.