Class Protein
java.lang.Object
com.compomics.util.experiment.personalization.ExperimentObject
com.compomics.util.experiment.biology.proteins.Protein
- All Implemented Interfaces:
Serializable
This class models a protein.
- Author:
- Marc Vaudel, Harald Barsnes
- See Also:
-
Field Summary
Fields inherited from class com.compomics.util.experiment.personalization.ExperimentObject
NO_KEY -
Constructor Summary
ConstructorsConstructorDescriptionProtein()Constructor for a protein.Simplistic constructor for a protein (typically used when loading identification files).Constructor for a protein.Constructor for a protein. -
Method Summary
Modifier and TypeMethodDescriptionGetter for the protein accession.intReturns the number of amino acids in the sequence.Returns the key for protein indexing.Getter for the protein sequence.Methods inherited from class com.compomics.util.experiment.personalization.ExperimentObject
addUrParam, asLong, clearParametersMap, getId, getUrParam, getUrParams, removeUrParam, setId, setUrParams
-
Constructor Details
-
Protein
public Protein()Constructor for a protein. -
Protein
Simplistic constructor for a protein (typically used when loading identification files).- Parameters:
accession- The protein accession
-
Protein
Constructor for a protein.- Parameters:
accession- The protein accessionsequence- The protein sequence
-
Protein
Constructor for a protein.- Parameters:
accession- The protein accessionsequence- The protein sequenceisDecoy- boolean indicating whether the protein is a decoy
-
-
Method Details
-
getAccession
Getter for the protein accession.- Returns:
- the protein accession
-
getSequence
Getter for the protein sequence.- Returns:
- the protein sequence
-
getProteinKey
Returns the key for protein indexing. For now the protein accession.- Returns:
- the key for protein indexing.
-
getLength
public int getLength()Returns the number of amino acids in the sequence.- Returns:
- the number of amino acids in the sequence
-