*/
public void setName(String name);
+ public HiddenMarkovModel getHMM();
+
+ public void setHMM(HiddenMarkovModel hmm);
/**
* Get the display name
*/
* from 1), or null if no residues are included in the range
*
* @param fromColum
- * - first column base 1
+ * - first column base 1. (0 and negative positions are rounded up)
* @param toColumn
* - last column, base 1
- * @return
+ * @return null if fromColum>toColumn
*/
public ContiguousI findPositions(int fromColum, int toColumn);
/**
* set the array of Database references for the sequence.
*
- * BH 2019.02.04 changes param to DBModlist
+ * BH 2019.02.04 changes param to DBModlist
*
* @param dbs
* @deprecated - use is discouraged since side-effects may occur if DBRefEntry
* set are not normalised.
- * @throws InvalidArgumentException
- * if the is not one created by Sequence itself
+ * @throws InvalidArgumentException if the is not one created by Sequence itself
*/
@Deprecated
public void setDBRefs(DBModList<DBRefEntry> dbs);
/**
* Returns a (possibly empty) list of any annotations that match on given
- * calcId (source), label (type) and description (observation instance). Null
- * values do not match.
+ * calcId (source), label (type) and description (observation instance).
+ * Null values do not match.
*
* @param calcId
* @param label
*/
public List<AlignmentAnnotation> getAlignmentAnnotations(String calcId,
String label, String description);
-
/**
* 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
* list
*/
public List<DBRefEntry> getPrimaryDBRefs();
+ /**
+ * Answers true if the sequence has annotation for Hidden Markov Model
+ * information content, else false
+ */
+ boolean hasHMMAnnotation();
/**
* Returns a (possibly empty) list of sequence features that overlap the given
* optional feature types to restrict results to
* @return
*/
- List<SequenceFeature> findFeatures(int fromCol, int toCol,
- String... types);
+ List<SequenceFeature> findFeatures(int fromCol, int toCol, String... types);
/**
* Method to call to indicate that the sequence (characters or alignment/gaps)
* positions to be invalidated.
*/
void sequenceChanged();
-
+
/**
*
* @return BitSet corresponding to index [0,length) where Comparison.isGap()
* @param chromosomeId
* @param map
*/
- void setGeneLoci(String speciesId, String assemblyId, String chromosomeId,
- MapList map);
+ void setGeneLoci(String speciesId, String assemblyId,
+ String chromosomeId, MapList map);
+
/**
* Returns the sequence string constructed from the substrings of a sequence
*/
public int firstResidueOutsideIterator(Iterator<int[]> it);
+
+ /**
+ * Answers true if this sequence has an associated Hidden Markov Model
+ *
+ * @return
+ */
+ boolean hasHMMProfile();
}
+