Package pal.datatype

Class MolecularDataType.Utils

java.lang.Object
pal.datatype.MolecularDataType.Utils
Enclosing interface:
MolecularDataType

public static final class MolecularDataType.Utils extends Object
Utilities relating to MolecularDataType stuff
  • Constructor Details

    • Utils

      public Utils()
  • Method Details

    • getMolecularDataType

      public static final MolecularDataType getMolecularDataType(DataType dt)
      Converts (if possible) a DataType into a MolecularDataType. This is done by either casting (if input is already a MolecularDataType) or, if the DataType represents AminoAcids returning a SpecificAminoAcids object based on the Universal Codon Table
      Parameters:
      dt - the base DataType
      Returns:
      null if not possible to derive a MolecularDataType