* links (sets the field "link" of PhylogenyNode) each external
* PhylogenyNode of gene_tree to the external PhylogenyNode of species_tree
* which has the same species name.
+ * @throws SDIException
*/
- void linkNodesOfG() {
+ void linkNodesOfG() throws SDIException {
final Map<String, PhylogenyNode> speciestree_ext_nodes = new HashMap<String, PhylogenyNode>();
final TaxonomyComparisonBase tax_comp_base = determineTaxonomyComparisonBase();
// Put references to all external nodes of the species tree into a map.
}
public enum TaxonomyComparisonBase {
- ID, CODE, SCIENTIFIC_NAME
+ ID {
+
+ @Override
+ public String toString() {
+ return "taxonomy id";
+ }
+ },
+ CODE {
+
+ @Override
+ public String toString() {
+ return "taxonomy code/mnemonic";
+ }
+ },
+ SCIENTIFIC_NAME {
+
+ @Override
+ public String toString() {
+ return "scientific name";
+ }
+ }
}
}