public class WeightMatrixAnnotator extends Object implements SequenceAnnotator, Serializable
This SequenceAnnotator implementation returns a new ViewSequence wrapping the underlying Sequence
| Constructor and Description |
|---|
WeightMatrixAnnotator(WeightMatrix wm,
double threshold)
Create a new annotator that uses PROBABILITY score type.
|
WeightMatrixAnnotator(WeightMatrix wm,
ScoreType scoreType,
double threshold)
Create a new annotator that uses a specific score type.
|
WeightMatrixAnnotator(WeightMatrix wm,
ScoreType scoreType,
double threshold,
String wmID)
Create a new annotator that uses the PROBABILITY score type and an ID
for the weight matrix.
|
| Modifier and Type | Method and Description |
|---|---|
Sequence |
annotate(Sequence seq)
Return an annotated version of a sequence.
|
String |
getWeightMatrixID()
Get the value of the weight matrix id.
|
void |
setWeightMatrixID(String id)
Set the weight matrix id.
|
public WeightMatrixAnnotator(WeightMatrix wm, ScoreType scoreType, double threshold, String wmID)
wm - the weight matrixthreshold - the thresholdwmID - the weight matrix IDpublic WeightMatrixAnnotator(WeightMatrix wm, double threshold)
wm - a WeightMatrix valuethreshold - a double valuepublic WeightMatrixAnnotator(WeightMatrix wm, ScoreType scoreType, double threshold)
wm - the weigth matrixscoreType - the score typethreshold - the thresholdpublic Sequence annotate(Sequence seq) throws IllegalAlphabetException, BioException, ChangeVetoException
SequenceAnnotatorannotate in interface SequenceAnnotatorseq - The sequence to be annotated.seq (may be the
same object).IllegalAlphabetException - If the sequence is over
an inappropriate alphabet for
the annotated method being
encapsulatedBioException - if the sequence fails to be annotatedChangeVetoException - if either the sequence doesn't allow
annotation or if the change was vetoedpublic String getWeightMatrixID()
public void setWeightMatrixID(String id)
id - Value to assign to the weight matrix id.Copyright © 2020 BioJava. All rights reserved.