Add support RNAML format
[jalview.git] / src / jalview / io / IdentifyFile.java
index 7c5223c..6475497 100755 (executable)
@@ -132,6 +132,13 @@ public class IdentifyFile
 
           break;
         }
+        
+        if ((data.indexOf(">") > -1))
+        {
+          reply = "RNAML";
+          System.out.println("This is a RNAML format");
+          break;
+        }
 
         if ((data.length() < 1) || (data.indexOf("#") == 0))
         {
@@ -160,6 +167,8 @@ public class IdentifyFile
 
           break;
         }
+        
+        
         else if (data.indexOf(">") > -1)
         {
           // FASTA, PIR file or BLC file
@@ -286,6 +295,7 @@ public class IdentifyFile
 
   public static void main(String[] args)
   {
+        
     for (int i = 0; args != null && i < args.length; i++)
     {
       IdentifyFile ider = new IdentifyFile();