From: amwaterhouse Date: Mon, 31 Oct 2005 15:51:11 +0000 (+0000) Subject: Find by displayid not used X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=398c4b5cdf953a9a3f62fa74fbc94d935bce94d7;p=jalview.git Find by displayid not used --- diff --git a/src/jalview/datamodel/Alignment.java b/src/jalview/datamodel/Alignment.java index 309fdae..d945ec6 100755 --- a/src/jalview/datamodel/Alignment.java +++ b/src/jalview/datamodel/Alignment.java @@ -471,25 +471,6 @@ public class Alignment implements AlignmentI return null; } - /** */ - public SequenceI findbyDisplayId(String name) - { - int i = 0; - - while (i < sequences.size()) - { - SequenceI s = getSequenceAt(i); - - if (s.getDisplayId().equals(name)) - { - return s; - } - - i++; - } - - return null; - } /** */ public int findIndex(SequenceI s) @@ -731,6 +712,8 @@ public class Alignment implements AlignmentI ), getSequenceAt(i).getStart(), getSequenceAt(i).getEnd()); + + getSequenceAt(i).setDatasetSequence(seqs[i]); } dataset = new Alignment(seqs); diff --git a/src/jalview/datamodel/AlignmentI.java b/src/jalview/datamodel/AlignmentI.java index 9ee51e9..be3093c 100755 --- a/src/jalview/datamodel/AlignmentI.java +++ b/src/jalview/datamodel/AlignmentI.java @@ -125,14 +125,6 @@ public interface AlignmentI */ public SequenceI findName(String name); - /** - * Finds sequence in alignment using full displayId as query. - * - * @param name displayId, ie NAME/25-100 - * - * @return Sequence matching query, if found. If not found returns null. - */ - public SequenceI findbyDisplayId(String name); /** * Finds index of a given sequence in the alignment.