Class Protein
java.lang.Object
com.compomics.util.experiment.personalization.ExperimentObject
com.compomics.util.experiment.biology.proteins.Protein
- All Implemented Interfaces:
Serializable
public class Protein extends ExperimentObject
This class models a protein.
- Author:
- Marc Vaudel, Harald Barsnes
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Protein()
Constructor for a protein.Protein(String accession)
Simplistic constructor for a protein (typically used when loading identification files).Protein(String accession, String sequence)
Constructor for a protein.Protein(String accession, String sequence, boolean isDecoy)
Constructor for a protein. -
Method Summary
Modifier and Type Method Description String
getAccession()
Getter for the protein accession.int
getLength()
Returns the number of amino acids in the sequence.String
getProteinKey()
Returns the key for protein indexing.String
getSequence()
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
-