Package org.forester.tools
Class PhylogenyDecorator
java.lang.Object
org.forester.tools.PhylogenyDecorator
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
decorate
(Phylogeny phylogeny, Map<String, String> map, PhylogenyDecorator.FIELD field, boolean extract_bracketed_scientific_name, boolean extract_bracketed_tax_code, boolean picky, boolean cut_name_after_space, boolean trim_after_tilde, boolean verbose) static String
decorate
(Phylogeny phylogeny, Map<String, String> map, PhylogenyDecorator.FIELD field, boolean extract_bracketed_scientific_name, boolean extract_bracketed_tax_code, boolean picky, Map<String, String> intermediate_map, boolean cut_name_after_space, boolean trim_after_tilde, boolean verbose) static void
parseMappingTable
(File mapping_table_file)
-
Method Details
-
decorate
public static void decorate(Phylogeny phylogeny, Map<String, Map<String, throws IllegalArgumentException, PhyloXmlDataFormatExceptionString>> map, boolean picky) -
decorate
public static String decorate(Phylogeny phylogeny, Map<String, String> map, PhylogenyDecorator.FIELD field, boolean extract_bracketed_scientific_name, boolean extract_bracketed_tax_code, boolean picky, boolean cut_name_after_space, boolean trim_after_tilde, boolean verbose) throws IllegalArgumentException, NHXFormatException, PhyloXmlDataFormatException -
decorate
public static String decorate(Phylogeny phylogeny, Map<String, String> map, PhylogenyDecorator.FIELD field, boolean extract_bracketed_scientific_name, boolean extract_bracketed_tax_code, boolean picky, Map<String, throws IllegalArgumentException, PhyloXmlDataFormatExceptionString> intermediate_map, boolean cut_name_after_space, boolean trim_after_tilde, boolean verbose) - Parameters:
phylogeny
-map
- maps names (in phylogeny) to new values if intermediate_map is null otherwise maps intermediate value to new valuefield
-picky
-intermediate_map
- maps name (in phylogeny) to a intermediate value- Throws:
IllegalArgumentException
PhyloXmlDataFormatException
-
parseMappingTable
public static Map<String,Map<String, parseMappingTableString>> (File mapping_table_file) throws IOException - Throws:
IOException
-