Class MassGap
java.lang.Object
com.compomics.util.experiment.personalization.ExperimentObject
com.compomics.util.experiment.identification.amino_acid_tags.MassGap
- All Implemented Interfaces:
TagComponent
,Serializable
public class MassGap extends ExperimentObject implements TagComponent
An undefined mass gap.
- Author:
- Marc Vaudel, Harald Barsnes
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description String
asSequence()
Returns the tag component as String like a peptide sequence.double
getMass()
Returns the mass of the tag component.boolean
isSameAs(TagComponent anotherCompontent, SequenceMatchingParameters sequenceMatchingPreferences)
Indicates whether another component is the same as the component of interest.boolean
isSameSequenceAndModificationStatusAs(TagComponent anotherCompontent, SequenceMatchingParameters sequenceMatchingPreferences)
Indicates whether another component is the same as the component of interest.void
setMass(double value)
Sets the mass of the gap.Methods inherited from class com.compomics.util.experiment.personalization.ExperimentObject
addUrParam, asLong, clearParametersMap, getId, getUrParam, getUrParams, removeUrParam, setId, setUrParams
-
Constructor Details
-
Method Details
-
setMass
public void setMass(double value)Sets the mass of the gap.- Parameters:
value
- the mass of the gap
-
asSequence
Description copied from interface:TagComponent
Returns the tag component as String like a peptide sequence. Note: this does not include modifications.- Specified by:
asSequence
in interfaceTagComponent
- Returns:
- the tag component as String like a peptide sequence
-
getMass
public double getMass()Description copied from interface:TagComponent
Returns the mass of the tag component.- Specified by:
getMass
in interfaceTagComponent
- Returns:
- the mass of the tag component
-
isSameAs
public boolean isSameAs(TagComponent anotherCompontent, SequenceMatchingParameters sequenceMatchingPreferences)Description copied from interface:TagComponent
Indicates whether another component is the same as the component of interest.- Specified by:
isSameAs
in interfaceTagComponent
- Parameters:
anotherCompontent
- another componentsequenceMatchingPreferences
- the sequence matching preferences- Returns:
- a boolean indicating whether the other component is the same as the one of interest
-
isSameSequenceAndModificationStatusAs
public boolean isSameSequenceAndModificationStatusAs(TagComponent anotherCompontent, SequenceMatchingParameters sequenceMatchingPreferences)Description copied from interface:TagComponent
Indicates whether another component is the same as the component of interest.- Specified by:
isSameSequenceAndModificationStatusAs
in interfaceTagComponent
- Parameters:
anotherCompontent
- another componentsequenceMatchingPreferences
- the sequence matching preferences- Returns:
- a boolean indicating whether the other component is the same as the one of interest
-