JAL-2805 added nexus specific parser settings
authorkjvdheide <kjvanderheide@dundee.ac.uk>
Tue, 9 Jan 2018 11:18:07 +0000 (11:18 +0000)
committerkjvdheide <kjvanderheide@dundee.ac.uk>
Tue, 9 Jan 2018 11:18:07 +0000 (11:18 +0000)
src/jalview/ext/archaeopteryx/AptxInit.java
src/jalview/ext/forester/io/ForesterParser.java

index 0337829..f8347bd 100644 (file)
@@ -74,11 +74,6 @@ public final class AptxInit
   private final static NHXParser.TAXONOMY_EXTRACTION TAXONOMY_EXTRACTION = APTX_CONFIG
           .getTaxonomyExtraction();
 
-
-
-
-
-
   public static TreeFrameI createInstanceFromCalculation(
           final TreeBuilder calculatedTree)
   {
index a6d7831..4cd84b1 100644 (file)
@@ -1,5 +1,6 @@
 package jalview.ext.forester.io;
 
+import jalview.ext.archaeopteryx.AptxInit;
 import jalview.ext.archaeopteryx.Tree;
 import jalview.ext.treeviewer.TreeI;
 import jalview.ext.treeviewer.TreeParserI;
@@ -30,6 +31,10 @@ public class ForesterParser
   public static ForesterParser createNexusParser(File file)
           throws PhylogenyParserException, IOException
   {
+    NexusPhylogeniesParser nxParser = new NexusPhylogeniesParser();
+    nxParser.setReplaceUnderscores(
+            AptxInit.APTX_CONFIG.isReplaceUnderscoresInNhParsing());
+    nxParser.setIgnoreQuotes(false);
     return new ForesterParser(new NexusPhylogeniesParser(), file);
   }