JAL-2909 Read in a bam file - but strand/location unaware
[jalview.git] / src / jalview / io / IdentifyFile.java
index ff959b0..38414e3 100755 (executable)
@@ -135,6 +135,12 @@ public class IdentifyFile
                     || fileStr.lastIndexOf(".zip") > -1)
             {
               reply = FileFormat.Jalview;
+              // TODO shouldn't there be a break here?
+            }
+            else if (fileStr.lastIndexOf(".bam") > -1)
+            {
+              reply = FileFormat.Bam;
+              break;
             }
           }
           if (!lineswereskipped && data.startsWith("PK"))