Open laurapspector opened 3 months ago
Hi, I encounted the same problem, but I find that conver the pwm to the dataFrame will resolve this problem.
first_pwm <- as.data.frame(getPwmFromFastaFile("xxxx"))
second_pwm <- as.data.frame(getPwmFromFastaFile("xxxx"))
diffLogoFromPwm(first_pwm , second_pwm)
it works on me, hope it could help you
I call getPwmFromFastaFile() to create a pwm from a FASTA file. The pwm has 8 columns. Then I call diffLogoFromPwm() and get the following error:
Error in preconditionPWM(pwm1) : Columns of PWM must add up to 1.0.
However, the sum of the columns is indeed 1 (see below).