public HiddenMarkovModel getHMM();
public void setHMM(HiddenMarkovModel hmm);
-
/**
* Get the display name
*/
public int getLength();
/**
+ * Replace the sequence with the given characters
+ *
+ * @param sequence
+ * new sequence characters
+ */
+ public void setSequence(char[] sequence);
+
+ /**
* Replace the sequence with the given string
*
* @param sequence
public SequenceI getDatasetSequence();
/**
+ * Returns the top grandparent in the dataset sequences hierarchy
+ * or null if there is no dataset associated with this sequence.
+ */
+ public default SequenceI getRootDatasetSequence()
+ {
+ if (getDatasetSequence() == null)
+ {
+ return null;
+ }
+ var sequence = getDatasetSequence();
+ while (sequence.getDatasetSequence() != null)
+ {
+ sequence = sequence.getDatasetSequence();
+ }
+ return sequence;
+ }
+
+ /**
* Returns a new array containing this sequence's annotations, or null.
*/
public AlignmentAnnotation[] getAnnotation();
* list
*/
public List<DBRefEntry> getPrimaryDBRefs();
-
/**
* Answers true if the sequence has annotation for Hidden Markov Model
* information content, else false
* @param c1
* @param c2
*/
- int replace(char c1, char c2);
+ public int replace(char c1, char c2);
/**
* Answers the GeneLociI, or null if not known
* the iterator to use
* @return a String corresponding to the sequence
*/
- String getSequenceStringFromIterator(Iterator<int[]> it);
+ public String getSequenceStringFromIterator(Iterator<int[]> it);
/**
* Locate the first position in this sequence which is not contained in an
* iterator over regions
* @return first residue not contained in regions
*/
-
public int firstResidueOutsideIterator(Iterator<int[]> it);