1. A method comprising: specifying a model of a set of biopolymer sequences, the model comprising a first module that characterizes a state of matching between the sequences of the set in a first region and a second module that characterizes a state of matching between the sequences of the set in a second region, wherein the states of matching of the first and second module differ; and comparing a given set of sequences to the model.