|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.compomics.util.experiment.personalization.ExperimentObject
com.compomics.util.experiment.biology.Enzyme
public class Enzyme
This class models an enzyme.
Constructor Summary | |
---|---|
Enzyme(int id,
String name,
String aminoAcidBefore,
String restrictionBefore,
String aminoAcidAfter,
String restrictionAfter)
Constructor for an Enzyme. |
Method Summary | |
---|---|
ArrayList<String> |
digest(String sequence,
int nMissedCleavages,
int nMin,
int nMax)
Digests a protein sequence in a list of expected peptide sequences. |
boolean |
enzymeCleaves()
Returns a boolean indicating whether a cleavage site was implemented for this enzyme. |
boolean |
equals(Enzyme otherEnzyme)
Returns true of the two enzymes are identical. |
ArrayList<Character> |
getAminoAcidAfter()
Getter for the amino acids potentially following the cleavage. |
ArrayList<Character> |
getAminoAcidBefore()
Getter for the amino acids potentially preceding the cleavage. |
int |
getId()
Get the enzyme id. |
String |
getName()
Get the enzyme name. |
int |
getNmissedCleavages(String sequence)
Returns the number of missed cleavages in an amino acid sequence. |
ArrayList<Character> |
getRestrictionAfter()
Getter for the amino acids restricting when following the cleavage. |
ArrayList<Character> |
getRestrictionBefore()
Getter for the amino acids restricting when preceding the cleavage. |
String |
getXTandemFormat()
Get the X!Tandem enzyme format. |
boolean |
isCleavageSite(String aaBefore,
String aaAfter)
Returns a boolean indicating whether the given amino acids represent a cleavage site. |
Methods inherited from class com.compomics.util.experiment.personalization.ExperimentObject |
---|
addUrParam, getParameterKey, getUrParam |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Enzyme(int id, String name, String aminoAcidBefore, String restrictionBefore, String aminoAcidAfter, 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 cleavageMethod Detail |
---|
public String getName()
public int getId()
public String getXTandemFormat()
public ArrayList<Character> getAminoAcidAfter()
public ArrayList<Character> getAminoAcidBefore()
public ArrayList<Character> getRestrictionAfter()
public ArrayList<Character> getRestrictionBefore()
public boolean enzymeCleaves()
public boolean isCleavageSite(String aaBefore, String aaAfter)
aaBefore
- the amino acid before the cleavage siteaaAfter
- the amino acid after the cleavage site
public int getNmissedCleavages(String sequence)
sequence
- the amino acid sequence as a string.
public ArrayList<String> digest(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 peptide
public boolean equals(Enzyme otherEnzyme)
otherEnzyme
- the enzyme to compare against.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |