mgledi / DiffLogo

DiffLogo: Comparative visualisation of sequence motifs
http://difflogo.com
8 stars 6 forks source link

Pairwise shifts #18

Closed Dronte closed 7 years ago

Dronte commented 8 years ago

This commit introduces pairvise alignments for PWMs in DiffLogo. We add localPwmAlignment function that bruteforces all the alignments and counts divergence for each. Simply takes the best one. Also it tests for reverse complement.

No plotting of the alignment is included in DiffLogo on this step.

There is also a nice plotting fuction usefull for testing: https://gist.github.com/Dronte/f39772d8565b04700fd80f88b45d7e49