compareSingle static method

bool compareSingle(
  1. Nucleotide a,
  2. Nucleotide b,
  3. bool fuzzyComp
)

(en) Compares two Nucleotide and returns true if they are the same.

(ja) 2つのNucleotideを比較し、同じであればtrueを返します。

  • a : Nucleotide 1.
  • b : Nucleotide 2.
  • fuzzyComp : If true, Can contain m, r, w, s, y, k, v, h, d, b, n. If true, t and u are searched as the same.

Implementation

static bool compareSingle(Nucleotide a, Nucleotide b, bool fuzzyComp) {
  if (fuzzyComp) {
    if (!a.base.fuzzyComparison(b.base)) return false;
  } else {
    if (a.base != b.base) return false;
  }
  if (a.infoKey != b.infoKey) return false;
  return true;
}