public class Enzyme extends ExperimentObject
Constructor and Description |
---|
Enzyme(int id,
String name,
String aminoAcidBefore,
String restrictionBefore,
String aminoAcidAfter,
String restrictionAfter)
Constructor for an Enzyme.
|
Enzyme(int id,
String name,
String aminoAcidBefore,
String restrictionBefore,
String aminoAcidAfter,
String restrictionAfter,
Boolean isSemiSpecific,
Boolean isWholeProtein)
Constructor for an Enzyme.
|
Modifier and Type | Method and Description |
---|---|
ArrayList<String> |
digest(String sequence,
int nMissedCleavages,
int nMin,
int nMax)
Digests a protein sequence in a list of expected peptide sequences.
|
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.
|
String |
getDescription()
Returns the description of the cleavage of this enzyme.
|
int |
getId()
Get the enzyme id.
|
String |
getMyriMatchFormat()
Get the MyriMatch enzyme format.
|
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(char aaBefore,
char aaAfter)
Returns a boolean indicating whether the given amino acids represent a
cleavage site.
|
boolean |
isCleavageSite(String aaBefore,
String aaAfter)
Returns a boolean indicating whether the given amino acids represent a
cleavage site.
|
boolean |
isSemiSpecific()
Returns true if the enzyme is semi-specific.
|
boolean |
isUnspecific()
Returns true if the enzyme is unspecific, i.e., cleaves at every residue.
|
boolean |
isWholeProtein()
Returns true if the enzyme does not cleave at all, i.e., the whole
protein is used.
|
void |
setSemiSpecific(boolean isSemiSpecific)
Set if the enzyme is semi-specific.
|
void |
setWholeProtein(boolean isWholeProtein)
Set if the enzyme does not cleave at all, i.e., the whole protein is
used.
|
addUrParam, getParameterKey, getUrParam
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 cleavagepublic Enzyme(int id, String name, String aminoAcidBefore, String restrictionBefore, String aminoAcidAfter, String restrictionAfter, Boolean isSemiSpecific, Boolean isWholeProtein)
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 enzymaticisWholeProtein
- if true, the enzyme does not cleave, i.e., the
whole protein sequence is used.public boolean isUnspecific()
public String getName()
public int getId()
public String getXTandemFormat()
public String getMyriMatchFormat()
public ArrayList<Character> getAminoAcidAfter()
public ArrayList<Character> getAminoAcidBefore()
public ArrayList<Character> getRestrictionAfter()
public ArrayList<Character> getRestrictionBefore()
public boolean isCleavageSite(String aaBefore, 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(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 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()
public void setWholeProtein(boolean isWholeProtein)
isWholeProtein
- if the enzyme does not cleave at allpublic boolean isWholeProtein()
public String getDescription()
Copyright © 2016. All rights reserved.