public abstract class SeqPattern<S extends BioSequence,T extends SeqPatternMatch> extends Object implements Cloneable
The pattern syntax is based on PROSITE with one addition - the symbol '!' can be added to end of a position specification to indicate that mismatches are not allowed at that position.
From the PROSITE user manual:
The patterns are described using the following conventions:
PA [AC]-x-V-x(4)-{ED}.This pattern is translated as: [Ala or Cys]-any-Val-any-any-any-any-{any but Glu or Asp}
PA <A-x-[ST](2)-x(0,1)-V.This pattern, which must be in the N-terminal of the sequence ('<'), is translated as: Ala-any-[Ser or Thr]-[Ser or Thr]-(any or none)-Val
Modifier and Type | Field and Description |
---|---|
protected static Pattern |
PROSITE_COUNT_PATTERN |
Modifier | Constructor and Description |
---|---|
protected |
SeqPattern() |
|
SeqPattern(String inPrositePattern) |
Modifier and Type | Method and Description |
---|---|
SeqPattern |
clone() |
boolean |
containsMismatchRestrictions() |
boolean |
containsPositionAmbiguity() |
boolean |
containsRanges() |
protected abstract T |
createMatch(String inSeq,
SeqLocation inLocation) |
abstract BioSequenceType |
getBioSequenceType() |
boolean |
getIgnoreGaps() |
int |
getMaxLength() |
int |
getMaxMismatches() |
String |
getPrositePattern() |
List<PrositePatternPosition> |
getPrositePatternPositions() |
boolean |
isCaseSensitive() |
boolean |
isLocked() |
boolean |
isRestrictedToSeqEnd() |
boolean |
isRestrictedToSeqStart() |
SeqPattern |
lock() |
SeqPatternMatcher<S,T> |
matcher(S inTarget) |
SeqPatternMatcher<S,T> |
matcher(S inTarget,
SeqLocation inSeqLocation) |
String |
name() |
SeqPattern |
setIgnoreGaps(boolean inValue) |
SeqPattern |
setIsCaseSensitive(boolean inValue) |
SeqPattern |
setMaxMismatches(int inValue) |
SeqPattern |
setName(String inValue) |
protected void |
setPrositePattern(String inValue) |
String |
toString() |
protected static final Pattern PROSITE_COUNT_PATTERN
protected SeqPattern()
public SeqPattern(String inPrositePattern)
public SeqPattern clone()
public SeqPattern setName(String inValue)
public boolean isLocked()
public SeqPattern lock()
public abstract BioSequenceType getBioSequenceType()
public SeqPattern setIgnoreGaps(boolean inValue)
public SeqPattern setIsCaseSensitive(boolean inValue)
public boolean isCaseSensitive()
public boolean getIgnoreGaps()
protected void setPrositePattern(String inValue)
public String getPrositePattern()
public SeqPattern setMaxMismatches(int inValue)
public int getMaxMismatches()
public boolean containsMismatchRestrictions()
public boolean containsPositionAmbiguity()
public boolean containsRanges()
public boolean isRestrictedToSeqStart()
public boolean isRestrictedToSeqEnd()
public int getMaxLength()
public List<PrositePatternPosition> getPrositePatternPositions()
public SeqPatternMatcher<S,T> matcher(S inTarget)
public SeqPatternMatcher<S,T> matcher(S inTarget, SeqLocation inSeqLocation)
protected abstract T createMatch(String inSeq, SeqLocation inLocation)
jataylor@hairyfatguy.com