public class Enzyme extends ExperimentObject
Constructor and Description |
---|
Enzyme(int id,
java.lang.String name,
java.lang.String aminoAcidBefore,
java.lang.String restrictionBefore,
java.lang.String aminoAcidAfter,
java.lang.String restrictionAfter)
Constructor for an Enzyme.
|
Enzyme(int id,
java.lang.String name,
java.lang.String aminoAcidBefore,
java.lang.String restrictionBefore,
java.lang.String aminoAcidAfter,
java.lang.String restrictionAfter,
java.lang.Boolean isSemiSpecific)
Constructor for an Enzyme.
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<java.lang.String> |
digest(java.lang.String sequence,
int nMissedCleavages,
int nMin,
int nMax)
Digests a protein sequence in a list of expected peptide sequences.
|
boolean |
enzymeCleaves()
Deprecated.
use isSemiSpecific instead
|
boolean |
equals(Enzyme otherEnzyme)
Returns true of the two enzymes are identical.
|
java.util.ArrayList<java.lang.Character> |
getAminoAcidAfter()
Getter for the amino acids potentially following the cleavage.
|
java.util.ArrayList<java.lang.Character> |
getAminoAcidBefore()
Getter for the amino acids potentially preceding the cleavage.
|
int |
getId()
Get the enzyme id.
|
java.lang.String |
getName()
Get the enzyme name.
|
int |
getNmissedCleavages(java.lang.String sequence)
Returns the number of missed cleavages in an amino acid sequence.
|
java.util.ArrayList<java.lang.Character> |
getRestrictionAfter()
Getter for the amino acids restricting when following the cleavage.
|
java.util.ArrayList<java.lang.Character> |
getRestrictionBefore()
Getter for the amino acids restricting when preceding the cleavage.
|
java.lang.String |
getXTandemFormat()
Get the X!Tandem enzyme format.
|
boolean |
isCleavageSite(char aaBefore,
char aaAfter)
Returns a boolean indicating whether the given amino acids represent a
cleavage site.
|
boolean |
isCleavageSite(java.lang.String aaBefore,
java.lang.String aaAfter)
Deprecated.
use the isCleavageSite method using chars as input instead
|
boolean |
isSemiSpecific()
Returns true if the enzyme is semi-specific.
|
void |
setSemiSpecific(boolean isSemiSpecific)
Set if the enzyme is semi-specific.
|
addUrParam, getParameterKey, getUrParam
public Enzyme(int id, java.lang.String name, java.lang.String aminoAcidBefore, java.lang.String restrictionBefore, java.lang.String aminoAcidAfter, java.lang.String restrictionAfter)
id
- the enzyme id which should be OMSSA compatible.name
- the name of the enzymeaminoAcidBefore
- the amino-acids which can be found before the
cleavagerestrictionBefore
- the amino-acids which should not be found before
the cleavageaminoAcidAfter
- the amino-acids which should be found after the
cleavagerestrictionAfter
- the amino-acids which should not be found after
the cleavagepublic Enzyme(int id, java.lang.String name, java.lang.String aminoAcidBefore, java.lang.String restrictionBefore, java.lang.String aminoAcidAfter, java.lang.String restrictionAfter, java.lang.Boolean isSemiSpecific)
id
- the enzyme id which should be OMSSA compatible.name
- the name of the enzymeaminoAcidBefore
- the amino-acids which can be found before the
cleavagerestrictionBefore
- the amino-acids which should not be found before
the cleavageaminoAcidAfter
- the amino-acids which should be found after the
cleavagerestrictionAfter
- the amino-acids which should not be found after
the cleavageisSemiSpecific
- if true, the enzyme is considered as semi-specific,
meaning that only one end of the resulting peptide has to be enzymaticpublic java.lang.String getName()
public int getId()
public java.lang.String getXTandemFormat()
public java.util.ArrayList<java.lang.Character> getAminoAcidAfter()
public java.util.ArrayList<java.lang.Character> getAminoAcidBefore()
public java.util.ArrayList<java.lang.Character> getRestrictionAfter()
public java.util.ArrayList<java.lang.Character> getRestrictionBefore()
public boolean enzymeCleaves()
public boolean isCleavageSite(java.lang.String aaBefore, java.lang.String aaAfter)
aaBefore
- the amino acid before the cleavage siteaaAfter
- the amino acid after the cleavage sitepublic boolean isCleavageSite(char aaBefore, char aaAfter)
aaBefore
- the amino acid before the cleavage siteaaAfter
- the amino acid after the cleavage sitepublic int getNmissedCleavages(java.lang.String sequence)
sequence
- the amino acid sequence as a string.public java.util.ArrayList<java.lang.String> digest(java.lang.String sequence, int nMissedCleavages, int nMin, int nMax)
sequence
- the protein sequencenMissedCleavages
- the maximum number of missed cleavagesnMin
- the minimal size for a peptidenMax
- the maximal size for a peptidepublic boolean equals(Enzyme otherEnzyme)
otherEnzyme
- the enzyme to compare against.public void setSemiSpecific(boolean isSemiSpecific)
isSemiSpecific
- if the enzyme is semi-specificpublic boolean isSemiSpecific()
Copyright © 2013. All Rights Reserved.