private static void AddNmTag(BamAlignment alignment, int nm) { if (nm > 0) { alignment.ReplaceOrAddIntTag("NM", nm, true); } }