## optimal matching distances with substitution cost matrix
## using transition rates
data(biofam)
biofam.seq <- seqdef(biofam,10:25,informat='STS')
costs <- seqsubm(biofam.seq,method="TRATE")
biofam.om <- seqdist(biofam.seq,method="OM",indel=3,sm=costs)
## normalized LCP distances
biofam.lcp <- seqdist(biofam.seq,method="LCP", norm=TRUE)
## normalized LCS distances to the most frequent sequence in the data set
biofam.lcs <- seqdist(biofam.seq,method="LCS", refseq=0, norm=TRUE)
## histogram of the normalized LCS distances
hist(biofam.lcs)Run the code above in your browser using DataLab