nanxstats / protr

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

extractMoreauBroto fails when the sequence is shorter than the lag #2

Closed koefoed closed 8 years ago

koefoed commented 9 years ago

extractMoreauBroto fails when nchar(x) <= nlag without a propper error message:

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

Hi, I don't belong to Bioinformatics background, I am trying this package for some project, I have peptide sequences, I would like to derive some features from it to use as input to machine learning model. Could someone explain the reason for this error, "extractMoreauBroto: length of the sequence is <= nlag; NAs will be generated",