Hi Joseph, thanks for your answer. I've checked your link, but I think it is used to perform alignments between sequences. In my case, I need to find matches of a position weight matrix in a sequence. A position weight matrix is a matrix that have the following structure:
A C T G
----------------------------------
POS1| 50 20 20 10
POS2| 20 20 10 50
POS3| 50 0 50 0
POS4| 25 25 25 25
This kind of matrix represents the probability of each nucleotide for each position. The idea is to find matches in a sequence that were accomplished by the matrix.
This feature is useful if you want to find protein binding sites in the genome, for example. I've seen applications that can perform this task, but I want to do it in a programmatically way.