|
||||||||||
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.Peptide
public class Peptide
This class models a peptide.
Created by IntelliJ IDEA. User: Marc Date: Jun 18, 2010 Time: 8:56:40 AM
Constructor Summary | |
---|---|
Peptide()
Constructor for the peptide |
|
Peptide(java.lang.String aSequence,
java.lang.Double mass,
java.util.ArrayList<java.lang.String> parentProteins,
java.util.ArrayList<ModificationMatch> modifications)
Constructor for the peptide |
Method Summary | |
---|---|
void |
addModificationMatch(ModificationMatch modificationMatch)
Adds a modification match |
void |
clearModificationMAtches()
Clears the list of imported modification matches |
java.lang.String |
getCTerminal()
Returns the C-terminal of the peptide as a String. |
java.lang.String |
getKey()
Returns the index of a peptide. index = SEQUENCE_mod1_mod2 with modifications ordered alphabetically. |
java.lang.Double |
getMass()
getter for the mass |
static java.util.ArrayList<java.lang.String> |
getModificationFamily(java.lang.String peptideKey)
Returns a list of names of the variable modifications found in the key of a peptide |
java.util.ArrayList<ModificationMatch> |
getModificationMatches()
getter for the modifications carried by this peptide |
int |
getNMissedCleavages(Enzyme enzyme)
Returns the amount of missed cleavages using the specified enzyme |
static int |
getNMissedCleavages(java.lang.String sequence,
Enzyme enzyme)
Returns the amount of missed cleavages using the specified enzyme for the given sequence |
java.lang.String |
getNTerminal()
Returns the N-terminal of the peptide as a String. |
java.util.ArrayList<java.lang.String> |
getParentProteins()
Getter for the parent proteins |
java.lang.String |
getSequence()
getter for the sequence |
static java.lang.String |
getSequence(java.lang.String peptideKey)
Returns the sequence of the peptide indexed by the given key |
static boolean |
isModified(java.lang.String peptideKey)
Returns a boolean indicating whether the peptide has variable modifications based on its key |
boolean |
isSameAs(Peptide anotherPeptide)
a method which compares to peptides. |
boolean |
sameModificationsAs(Peptide anotherPeptide)
Indicates whether another peptide has the same modifications at the same localization as this peptide. |
void |
setParentProteins(java.util.ArrayList<java.lang.String> parentProteins)
Sets the parent proteins |
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 Peptide()
public Peptide(java.lang.String aSequence, java.lang.Double mass, java.util.ArrayList<java.lang.String> parentProteins, java.util.ArrayList<ModificationMatch> modifications)
aSequence
- The peptide sequencemass
- The peptide massparentProteins
- The parent proteinsmodifications
- The PTM of this peptideMethod Detail |
---|
public java.lang.Double getMass()
public java.util.ArrayList<ModificationMatch> getModificationMatches()
public void clearModificationMAtches()
public void addModificationMatch(ModificationMatch modificationMatch)
modificationMatch
- the modification match to addpublic java.lang.String getSequence()
public int getNMissedCleavages(Enzyme enzyme)
enzyme
- the enzyme used
public static int getNMissedCleavages(java.lang.String sequence, Enzyme enzyme)
enzyme
- the enzyme used
public java.util.ArrayList<java.lang.String> getParentProteins()
public void setParentProteins(java.util.ArrayList<java.lang.String> parentProteins)
parentProteins
- the parent proteins as listpublic java.lang.String getKey()
public static boolean isModified(java.lang.String peptideKey)
peptideKey
- the peptide key
public static java.lang.String getSequence(java.lang.String peptideKey)
peptideKey
- the peptide key
public static java.util.ArrayList<java.lang.String> getModificationFamily(java.lang.String peptideKey)
peptideKey
- the key of a peptide
public boolean isSameAs(Peptide anotherPeptide)
anOtherPeptide
- another peptide
public boolean sameModificationsAs(Peptide anotherPeptide)
anotherPeptide
- another peptide
public java.lang.String getNTerminal()
public java.lang.String getCTerminal()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |