nanxstats / protr

🧬 Toolkit for generating various numerical features of protein sequences
https://nanx.me/protr/
Other
52 stars 13 forks source link

extractMoran fails without a proper error message when the sequence is shorter than nlag #6

Closed koefoed closed 8 years ago

koefoed commented 9 years ago

Hi again, This is similar to #2.

When the sequence is shorter than nlag there is no proper error message.

> packageVersion('protr')
[1] ‘0.5.1’
> extractMoran("STHIYTKE")
Error in P[[i]][1:(N - j)] : 
  only 0's may be mixed with negative subscripts
>