Skip to content

Commit

Permalink
BeastTreeFromMaster now accepts taxonset input.
Browse files Browse the repository at this point in the history
  • Loading branch information
tgvaughan committed Jul 7, 2020
1 parent 57cb409 commit f32fb4d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/master/BeastTreeFromMaster.java
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,11 @@ public void initNodeNumbers(beast.evolution.tree.Node beastRoot) {
throw new IllegalArgumentException("Alignment does not contain taxon named " + leaf.getID());

leaf.setNr(alignmentInput.get().getTaxonIndex(leaf.getID()));
} else if (m_taxonset.get() != null) {
if (!m_taxonset.get().getTaxaNames().contains(leaf.getID()))
throw new IllegalArgumentException("TaxonSet does not contain taxon named " + leaf.getID());

leaf.setNr(m_taxonset.get().getTaxonIndex(leaf.getID()));
} else {
leaf.setNr(nodeNr);
nodeNr += 1;
Expand Down
2 changes: 1 addition & 1 deletion version.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<addon name="MASTER" version="6.1.1">
<addon name="MASTER" version="6.1.2">
<depends on="BEAST" atleast="2.5.0" atmost="2.6.9"/>
</addon>

0 comments on commit f32fb4d

Please sign in to comment.