JAL-2533 improvement to prune off file extension when imported seqs are named with...
authortcofoegbu <tcnofoegbu@dundee.ac.uk>
Mon, 15 May 2017 14:52:56 +0000 (15:52 +0100)
committertcofoegbu <tcnofoegbu@dundee.ac.uk>
Mon, 15 May 2017 14:52:56 +0000 (15:52 +0100)
src/jalview/io/StructureFile.java

index 7fe17c8..5ff1a02 100644 (file)
@@ -415,6 +415,9 @@ public abstract class StructureFile extends AlignFile
     {
       dataName = dataName.substring(p + 1);
     }
+    if(dataName.indexOf(".") > -1){
+      dataName = dataName.substring(0, dataName.lastIndexOf("."));
+    }
     return dataName;
   }