public class FilterByValue extends SubHitFilter
Filter complete sub hits by the numerical value of some property.
The range that the property should be within is defined by the minVal and maxVal properties. The property name to be checked is set by keyName. Any sub hit that has this property and has a value that falls outside minVal and maxVal will be silently dropped from the event stream, and not passed on to the next handler in the chain.
java ProcessBlast blast.out \
"ssbind.FilterByValue(minVal=90 keyName=percentageIdentity)" \
ssbind.Echoer
| Constructor and Description |
|---|
FilterByValue(org.biojava.bio.search.SearchContentHandler delegate) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
accept(Object key,
Object val) |
String |
getKeyName() |
double |
getMaxVal() |
double |
getMinVal() |
void |
setKeyName(String keyName) |
void |
setMaxVal(double maxVal) |
void |
setMinVal(double minVal) |
addSubHitProperty, endSubHit, startSubHitpublic FilterByValue(org.biojava.bio.search.SearchContentHandler delegate)
public void setMinVal(double minVal)
public double getMinVal()
public void setMaxVal(double maxVal)
public double getMaxVal()
public void setKeyName(String keyName)
public String getKeyName()
protected boolean accept(Object key, Object val)
accept in class SubHitFilter