X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=forester%2Fjava%2Fsrc%2Forg%2Fforester%2Fapplication%2Fcladinator.java;h=6b6623096c14066e8640458637088eb252da296d;hb=eb22dac14771c467104f57362e3a624d0140f897;hp=ae8d97001cfe96633d885356404caff36db02042;hpb=b71613d9a558ddfaf8f23b33d6a64d8905fd0ac6;p=jalview.git diff --git a/forester/java/src/org/forester/application/cladinator.java b/forester/java/src/org/forester/application/cladinator.java index ae8d970..6b66230 100644 --- a/forester/java/src/org/forester/application/cladinator.java +++ b/forester/java/src/org/forester/application/cladinator.java @@ -53,7 +53,7 @@ public final class cladinator { final static private String PRG_NAME = "cladinator"; final static private String PRG_VERSION = "1.05"; - final static private String PRG_DATE = "170919"; + final static private String PRG_DATE = "170920"; final static private String PRG_DESC = "clades within clades of annotated labels -- analysis of pplacer-type outputs"; final static private String E_MAIL = "phyloxml@gmail.com"; final static private String WWW = "https://sites.google.com/site/cmzmasek/home/software/forester"; @@ -101,7 +101,7 @@ public final class cladinator { print_help(); System.exit( -1 ); } - final List allowed_options = new ArrayList<>(); + final List allowed_options = new ArrayList(); allowed_options.add( SEP_OPTION ); allowed_options.add( QUERY_PATTERN_OPTION ); allowed_options.add( SPECIFICS_CUTOFF_OPTION ); @@ -233,7 +233,6 @@ public final class cladinator { } extra_processing1_keep = true; } - Pattern special_pattern = null; boolean special_processing = false; if ( cla.isOptionSet( SPECIAL_PROCESSING_OPTION ) ) { @@ -516,11 +515,11 @@ public final class cladinator { System.out.println( " -" + EXTRA_PROCESSING1_KEEP_EXTRA_OPTION + " : to keep extra annotations (e.g. \"Q16611|A.1.1\" becomes \"A.1.1.Q16611\")" ); System.out.println( " -" + SPECIAL_PROCESSING_OPTION - + "= : special processing with pattern (e.g. \"(\\d+)([a-z]+)_(.+)\" for \"6q_EF42\" to \"6.q.EF42\")" ); + + "= : special processing with pattern (e.g. \"(\\d+)([a-z]+)_.+\" for changing \"6q_EF42\" to \"6.q\")" ); System.out.println( " -" + VERBOSE_OPTION + " : verbose" ); - System.out.println( " -" + QUIET_OPTION + " : quiet" ); + System.out.println( " -" + QUIET_OPTION + " : quiet (for when used in a pipeline)" ); System.out.println( " --" + QUERY_PATTERN_OPTION - + "=: the regular expression for the query (default: \"" + QUERY_PATTERN_DEFAULT + + "= : the regular expression pattern for the query (default: \"" + QUERY_PATTERN_DEFAULT + "\" for pplacer output)" ); System.out.println(); System.out.println( "Examples:" ); @@ -531,6 +530,7 @@ public final class cladinator { System.out.println( " " + PRG_NAME + " -x -xs=& -xk pp_out_trees.sing.tre result.tsv" ); System.out.println( " " + PRG_NAME + " -x -xs=\"|\" pp_out_trees.sing.tre result.tsv" ); System.out.println( " " + PRG_NAME + " -x -xk -m=map.tsv pp_out_trees.sing.tre result.tsv" ); + System.out.println( " " + PRG_NAME + " -m=map.tsv -S='(\\d+)([a-z?]*)_.+' pp_out_trees.sing.tre result.tsv" ); System.out.println(); } }