Class PeptideDraft
java.lang.Object
com.compomics.util.experiment.identification.protein_sequences.digestion.PeptideDraft
Draft of a peptide used during protein sequence digestion.
- Author:
- Marc Vaudel
-
Constructor Summary
ConstructorsConstructorDescriptionEmpty default constructorPeptideDraft(char[] sequence) Constructor.PeptideDraft(char[] sequence, String nTermModification, String cTermModification, HashMap<Integer, String> fixedAaModifications, double mass) Constructor.PeptideDraft(char[] sequence, String nTermModification, String cTermModification, HashMap<Integer, String> fixedAaModifications, double mass, int missedCleavages) Constructor.PeptideDraft(char[] sequence, String nTermModification, HashMap<Integer, String> fixedAaModifications, double mass) Constructor.PeptideDraft(char[] sequence, String nTermModification, HashMap<Integer, String> fixedAaModifications, double mass, int missedCleavages) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new peptide draft with the same attributes as this one.Returns the C-term modification.Returns the modifications at specific amino acids.String[]Returns the fixed modifications for the peptide.intReturns the peptide index on the protein.doublegetMass()Returns the mass.intReturns the number of missed cleavages.Returns the N-term modification.intgetnX()Returns the number of Xs already considered in this draft.getPeptide(double massMin, double massMax) Returns a peptide from the peptide draft.getPeptide(double massMin, double massMax, BoxedObject<Boolean> smallMass) Returns a peptide from the peptide draft.char[]Returns the sequence.voidIncreases the number of missed cleavages.voidIncreases the number of Xs already considered in this draft.intlength()Returns the length of the sequence.voidsetcTermModification(String cTermModification) Sets the C-term modification.voidsetFixedAaModifications(HashMap<Integer, String> fixedAaModifications) Sets the modifications at specific amino acids.voidsetIndexOnProtein(int indexOnProtein) Sets the peptide index on the protein.voidsetMass(double mass) Sets the mass.voidsetnTermModification(String nTermModification) Sets the N-term modification.voidsetSequence(char[] sequence) Sets the sequence.
-
Constructor Details
-
PeptideDraft
public PeptideDraft()Empty default constructor -
PeptideDraft
public PeptideDraft(char[] sequence) Constructor.- Parameters:
sequence- the peptide sequence.
-
PeptideDraft
public PeptideDraft(char[] sequence, String nTermModification, HashMap<Integer, String> fixedAaModifications, double mass) Constructor.- Parameters:
sequence- the peptide sequencenTermModification- the N-term modificationfixedAaModifications- the fixed modifications at amino acidsmass- the mass
-
PeptideDraft
public PeptideDraft(char[] sequence, String nTermModification, HashMap<Integer, String> fixedAaModifications, double mass, int missedCleavages) Constructor.- Parameters:
sequence- the peptide sequencenTermModification- the N-term modificationfixedAaModifications- the fixed modifications at amino acidsmass- the massmissedCleavages- the number of missed cleavages
-
PeptideDraft
public PeptideDraft(char[] sequence, String nTermModification, String cTermModification, HashMap<Integer, String> fixedAaModifications, double mass) Constructor.- Parameters:
sequence- the peptide sequencenTermModification- the N-term modificationcTermModification- the C-term modificationfixedAaModifications- the fixed modifications at amino acidsmass- the mass
-
PeptideDraft
public PeptideDraft(char[] sequence, String nTermModification, String cTermModification, HashMap<Integer, String> fixedAaModifications, double mass, int missedCleavages) Constructor.- Parameters:
sequence- the peptide sequencenTermModification- the N-term modificationcTermModification- the C-term modificationfixedAaModifications- the fixed modifications at amino acidsmass- the massmissedCleavages- the number of missed cleavages
-
-
Method Details
-
clone
Creates a new peptide draft with the same attributes as this one. -
getSequence
public char[] getSequence()Returns the sequence.- Returns:
- the sequence
-
setSequence
public void setSequence(char[] sequence) Sets the sequence.- Parameters:
sequence- the sequence
-
length
public int length()Returns the length of the sequence.- Returns:
- the length of the sequence
-
getnTermModification
Returns the N-term modification.- Returns:
- the N-term modification
-
setnTermModification
Sets the N-term modification.- Parameters:
nTermModification- the N-term modification
-
getcTermModification
Returns the C-term modification.- Returns:
- the C-term modification
-
setcTermModification
Sets the C-term modification.- Parameters:
cTermModification- the C-term modification
-
getMass
public double getMass()Returns the mass.- Returns:
- the mass
-
setMass
public void setMass(double mass) Sets the mass.- Parameters:
mass- the mass
-
getFixedAaModifications
Returns the modifications at specific amino acids.- Returns:
- the modifications at specific amino acids
-
setFixedAaModifications
Sets the modifications at specific amino acids.- Parameters:
fixedAaModifications- the modifications at specific amino acids
-
increaseMissedCleavages
public void increaseMissedCleavages()Increases the number of missed cleavages. -
getMissedCleavages
public int getMissedCleavages()Returns the number of missed cleavages.- Returns:
- the number of missed cleavages
-
increaseNX
public void increaseNX()Increases the number of Xs already considered in this draft. -
getnX
public int getnX()Returns the number of Xs already considered in this draft.- Returns:
- the number of Xs
-
getIndexOnProtein
public int getIndexOnProtein()Returns the peptide index on the protein.- Returns:
- the peptide index on the protein
-
setIndexOnProtein
public void setIndexOnProtein(int indexOnProtein) Sets the peptide index on the protein.- Parameters:
indexOnProtein- the peptide index on the protein
-
getPeptide
Returns a peptide from the peptide draft.- Parameters:
massMin- the minimal massmassMax- the maximal mass- Returns:
- the peptide built from the peptide draft
-
getPeptide
Returns a peptide from the peptide draft.- Parameters:
massMin- the minimal massmassMax- the maximal masssmallMass- an encapsulated boolean indicating whether the peptide passed the maximal mass filter- Returns:
- the peptide built from the peptide draft
-
getFixedModifications
Returns the fixed modifications for the peptide.- Returns:
- the fixed modifications for the peptide.
-