if (seq=="")
return null;
int nstart = findPosition(start);
- int nend=findPosition(end-1)-1;
+ int nend=findPosition(end)-1;
// JBPNote - this is an incomplete copy.
SequenceI nseq = new Sequence(this.getName(), seq, nstart, nend);
nseq.setDatasetSequence(getDatasetSequence());
sequence = newSeq.toString();
}
+ public SequenceI getSubSequence(int start)
+ {
+ int e=getLength();
+ if (start>=e)
+ return null;
+ return getSubSequence(start, getLength());
+ }
+
}
*/\r
package jalview.datamodel;\r
\r
-import java.awt.*;\r
-\r
import java.util.*;\r
\r
+import java.awt.*;\r
+\r
\r
/**\r
* DOCUMENT ME!\r
\r
public void toggleCase(int start, int end);\r
\r
+ /**\r
+ * getSubSequence from start to end of sequence\r
+ * @param start first residue in subSequence\r
+ * @return SequenceI\r
+ */\r
+ public SequenceI getSubSequence(int start);\r
+\r
}\r