data(HVGERM)
# Using DECIPHER method (default, for V segments)
d1 <- igDistance(HVGERM[1:10], method = "decipher")
# Using Hamming distance
d2 <- igDistance(HVGERM[1:10], method = "hamming")
# Using Levenshtein distance (good for D/J segments)
d3 <- igDistance(HVGERM[1:10], method = "lv")
Run the code above in your browser using DataLab