From: kjvdheide Date: Thu, 21 Dec 2017 16:25:55 +0000 (+0000) Subject: JAL-281 added file identify criteria for PhyloXML and Nexus X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=034e87858efb904a11646568bb5626863d42e0eb;p=jalview.git JAL-281 added file identify criteria for PhyloXML and Nexus --- diff --git a/src/jalview/io/IdentifyFile.java b/src/jalview/io/IdentifyFile.java index ff959b0..a4d6e8b 100755 --- a/src/jalview/io/IdentifyFile.java +++ b/src/jalview/io/IdentifyFile.java @@ -334,15 +334,26 @@ public class IdentifyFile reply = FileFormat.Phylip; break; } - else + else if (!lineswereskipped && looksLikeJnetData(data)) { - if (!lineswereskipped && looksLikeJnetData(data)) - { reply = FileFormat.Jnet; break; + + } + else // phylogenetic file? + { + if (source.nextLine().startsWith("