create dataset sequence method
[jalview.git] / src / jalview / datamodel / SequenceI.java
index 5c15108..c11ebc2 100755 (executable)
@@ -282,5 +282,12 @@ public interface SequenceI
    * @return null or array of annotations.
    */
   public AlignmentAnnotation[] getAnnotation(String label);
+  /**
+   * create a new dataset sequence (if necessary) 
+   * for this sequence and sets this sequence to refer to it.
+   * This call will move any features or references on the sequence onto the dataset.
+   * @return dataset sequence for this sequence
+   */
+  public SequenceI createDatasetSequence();
 
 }