From 063129ea3d5722927b76ff7b139fdfb71049647c Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Fri, 18 Nov 2005 10:24:38 +0000 Subject: [PATCH] Parse name from last index of / --- src/jalview/datamodel/Sequence.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/jalview/datamodel/Sequence.java b/src/jalview/datamodel/Sequence.java index 0002200..df7345a 100755 --- a/src/jalview/datamodel/Sequence.java +++ b/src/jalview/datamodel/Sequence.java @@ -58,14 +58,12 @@ public class Sequence implements SequenceI public Sequence(String name, String sequence, int start, int end) { this.name = name; + this.sequence = sequence; this.start = start; this.end = end; parseId(); - this.sequence = sequence; - - checkValidRange(); } @@ -114,7 +112,7 @@ public class Sequence implements SequenceI // If we're still in this loop, parsing of start and end was ok // Therefore remove it from the sequence name - name = name.substring(0, name.indexOf("/")); + name = name.substring(0, name.lastIndexOf("/")); } catch (NumberFormatException ex) { -- 1.7.10.2