nanxstats / protr

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

extractCTDC fails if no amino acids map to any one group, fixes #4 #5

Closed koefoed closed 8 years ago

koefoed commented 9 years ago

I changed the code to use apply on the group lists and directly count the number of matches. This also preserves names without fiddling and risking mistakes.

Fixes road2stat/protr#4

Maybe it would be easier if the properties where encoded as properties <- list( hydrophobicity = c( g1=c('R', ...), g2=c(...) ...), normwaalsvolume = c(...),...)?