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.
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