powered by
Calculate differences between characters in columns of germs and return their indices as an int vector.
allele_diff_indices(germs, X = 0L, non_mismatch_chars_nullable = NULL)
A vector of integers containing indices of differing columns.
A vector of strings representing germ sequences.
The threshold index from which to return differences as indices.
A set of characters that are ignored when comparing sequences (default: 'N', '.', '-').
germs = c("ATCG", "ATCC") X = 3 result = allele_diff_indices(germs, X) # 1, 2, 3
Run the code above in your browser using DataLab