Modelling (Bio)logical Sequences through Markov Logic Networks