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.
|
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()
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.
|
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.
|
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(java.lang.String aaBefore,
java.lang.String aaAfter)
Returns a boolean indicating whether the given amino acids represent a
cleavage site.
|
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 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 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.Copyright © 2013. All Rights Reserved.