From 705db65374af9295e31e695ae0643b17423fa382 Mon Sep 17 00:00:00 2001 From: tcofoegbu Date: Mon, 15 May 2017 15:52:56 +0100 Subject: [PATCH] JAL-2533 improvement to prune off file extension when imported seqs are named with the data file --- src/jalview/io/StructureFile.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/jalview/io/StructureFile.java b/src/jalview/io/StructureFile.java index 7fe17c8..5ff1a02 100644 --- a/src/jalview/io/StructureFile.java +++ b/src/jalview/io/StructureFile.java @@ -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; } -- 1.7.10.2