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
  • Constructor Details

    • Protein

      public Protein()
      Constructor for a protein.
    • Protein

      public Protein​(String accession)
      Simplistic constructor for a protein (typically used when loading identification files).
      Parameters:
      accession - The protein accession
    • Protein

      public Protein​(String accession, String sequence)
      Constructor for a protein.
      Parameters:
      accession - The protein accession
      sequence - The protein sequence
    • Protein

      public Protein​(String accession, String sequence, boolean isDecoy)
      Constructor for a protein.
      Parameters:
      accession - The protein accession
      sequence - The protein sequence
      isDecoy - boolean indicating whether the protein is a decoy
  • Method Details

    • getAccession

      public String getAccession()
      Getter for the protein accession.
      Returns:
      the protein accession
    • getSequence

      public String getSequence()
      Getter for the protein sequence.
      Returns:
      the protein sequence
    • getProteinKey

      public String 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