}
/**
+ * Create a new sequence object from a characters array using default values
+ * of 1 and -1 for start and end. The array used to create the sequence is
+ * copied and is not stored internally.
+ *
+ * @param name
+ * sequence name
+ * @param sequence
+ * list of residues
+ */
+ public Sequence(String name, char[] sequence)
+ {
+ this(name, Arrays.copyOf(sequence, sequence.length), 1, -1);
+ }
+
+ /**
* Creates a new Sequence object with new AlignmentAnnotations but inherits
* any existing dataset sequence reference. If non exists, everything is
* copied.