shaunpwilkinson / kmer

K-mer Counting for Biological Sequence Analysis
26 stars 6 forks source link

problem with AAbin byte format #4

Open raim opened 5 months ago

raim commented 5 months ago

Hi,

Is this package still maintained? I installed the current versions of ape and kmer from CRAN, using R version 4.3.3 in Ubuntu Linux. I get the following error:

aabin <- as.AAbin("ACDFGHKLMNRTY")
kcount(aabin, k=2) 
Error in FUN(X[[i]], ...) : 
  invalid byte for class 'AAbin'

To track this down a bit I downloaded the source from github and added some more information to the stop() call from internals.R .disambiguateAA function to also provide what a and guide are on my machine:

Error in FUN(X[[i]], ...) : 
  invalid byte for class 'AAbin': 41, class: raw, type: raw, guide: 41;42;43;44;45;46;47;48;49;4a;4b;4c;4d;4e;4f;50;51;52;53;54;55;56;57;58;59;5a;2a;2d

best, Rainer