convertINSD method

Nucleotide convertINSD()

Convert International Nucleotide Sequence Database code. Change EnumBase.u => EnumBase.t. If infoKey is not null, throw exception.

Implementation

Nucleotide convertINSD() {
  if (infoKey != null) {
    throw Exception("Converting structures is likely to cause problems.");
  } else {
    if (base == EnumBase.u) {
      return Nucleotide(EnumBase.t);
    } else {
      return deepCopy();
    }
  }
}