nanxstats / protr

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

extractGeary fails without a proper error message when the sequence is shorter than nlag #8

Closed koefoed closed 8 years ago

koefoed commented 9 years ago

This is the same as #6 and #2 but for extractGeary.

extractGeary fails without an error message when the sequence is shorter than nlag.

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