nanxstats / protr

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

extractSOCN fails when the length of the sequence is equal to nlag #11

Closed koefoed closed 8 years ago

koefoed commented 9 years ago
> packageVersion('protr')
[1] ‘0.5.1’
> extractSOCN("SSDYSDLQRVKQELLEEVKKELQKVKEEII")
Error in `*tmp*`[[d]] : subscript out of bounds
> 

This sequence has length 30 which is equal to the default nlag. processing the first amino acid in the sequence, it is compared to amino acid 1 + nlag = 31, which is out of bounds (R/desc11SOCN.R, line 67; d=30, i=1).