java.lang.Object
com.compomics.util.experiment.biology.variants.amino_acids.Swap
All Implemented Interfaces:
Variant

public class Swap
extends Object
implements Variant
Class representing an amino acid swap.
Author:
Marc Vaudel
  • Constructor Details

    • Swap

      public Swap()
      Empty default constructor
    • Swap

      public Swap​(char leftAa, char rightAa)
      Constructor.
      Parameters:
      leftAa - the single character code of the amino acid originally to the left
      rightAa - the single character code of the amino acid originally to the right
  • Method Details

    • getDescription

      public String getDescription()
      Description copied from interface: Variant
      Returns the description of the variant as string.
      Specified by:
      getDescription in interface Variant
      Returns:
      the description of the variant as string