|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcalhoun.analysis.crf.AbstractFeatureManager<java.lang.Character>
calhoun.analysis.crf.features.interval29.GeneConstraintsInterval29
public class GeneConstraintsInterval29
Implements basic constraints on gene calls. 1) Intergenic - start must occur at ATG 2) Splice sites must be canonical GT/AG or GC/AG 3) Exon-stop must be followed by a start codon
| Constructor Summary | |
|---|---|
GeneConstraintsInterval29()
|
|
| Method Summary | |
|---|---|
void |
evaluateEdge(InputSequence<? extends java.lang.Character> seq,
int pos,
int prevState,
int state,
FeatureList result)
Evaluates the set of features managed by this object for the given arguments. |
void |
evaluateNode(InputSequence<? extends java.lang.Character> seq,
int pos,
int state,
FeatureList result)
Evaluates the set of features managed by this object for the given arguments. |
CacheStrategySpec |
getCacheStrategy()
caching strategy that the CacheProcessor should use to cache values for this feature. |
java.lang.String |
getFeatureName(int featureIndex)
Returns a human identifiable name for the feature referenced by a given index. |
int |
getNumFeatures()
This is a constraint class, so we don't return features |
void |
train(int startingIndex,
ModelManager modelInfo,
java.util.List<? extends TrainingSequence<? extends java.lang.Character>> data)
Provides access to the entire training set so that FeatureManager can compute global properties and assign feature indices. |
| Methods inherited from class calhoun.analysis.crf.AbstractFeatureManager |
|---|
getInputComponent, setInputComponent |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface calhoun.analysis.crf.FeatureManager |
|---|
getInputComponent, setInputComponent |
| Methods inherited from interface calhoun.analysis.crf.FeatureManager |
|---|
getInputComponent, setInputComponent |
| Constructor Detail |
|---|
public GeneConstraintsInterval29()
| Method Detail |
|---|
public java.lang.String getFeatureName(int featureIndex)
FeatureManager
getFeatureName in interface FeatureManager<java.lang.Character>featureIndex - the index of this feature
public int getNumFeatures()
getNumFeatures in interface FeatureManager<java.lang.Character>FeatureManager
public void train(int startingIndex,
ModelManager modelInfo,
java.util.List<? extends TrainingSequence<? extends java.lang.Character>> data)
FeatureManager
train in interface FeatureManager<java.lang.Character>startingIndex - the feature index of the first feature owned by this FeatureManager. Each FeatureManager
must use up consecutive indexes, so the last index used will be startingIndex + numFeatures - 1.modelInfo - the model that contains this featuredata - the full list of training sequences to use to train the feature
public void evaluateEdge(InputSequence<? extends java.lang.Character> seq,
int pos,
int prevState,
int state,
FeatureList result)
FeatureManagerEdge
evaluateEdge in interface FeatureManagerEdge<java.lang.Character>
public void evaluateNode(InputSequence<? extends java.lang.Character> seq,
int pos,
int state,
FeatureList result)
FeatureManagerNode
evaluateNode in interface FeatureManagerNode<java.lang.Character>public CacheStrategySpec getCacheStrategy()
FeatureManagerCacheProcessor should use to cache values for this feature.
This is only a hint, the cache processor is not required to use this (or any) caching strategy. This base class defaults
to the UNSPECIFIED cache strategy.
getCacheStrategy in interface FeatureManager<java.lang.Character>getCacheStrategy in class AbstractFeatureManager<java.lang.Character>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||