shaunpwilkinson / insect

Informatic Sequence Classification Trees
14 stars 5 forks source link

Error in FUN(X[[i]], ...) : argument 'x' must be a raw vector #7

Open Jez-R opened 3 years ago

Jez-R commented 3 years ago

Hi Shaun,

I'm having an issue with insect::classify throwing the following error message:

Error in FUN(X[[i]], ...) : argument 'x' must be a raw vector

I'm working through the "DADA2 and insect classification pipeline script for Symbiodiniaceae NGS sequences" script, and the error occurs at line 142 (classifs <- classify(seqdna, tree). I've attached the relevant RDS files here if that helps.

Screen Shot 2021-08-23 at 10 33 05 am

seqdna appears fine:

Screen Shot 2021-08-23 at 10 12 41 am

I've tried converting seqdna to between binary and character string formats:

seqdna <- char2dna(dna2char(seqdna))

and running this through classify - this overcomes the raw vector issue but throws an additional issue with NNhit:

Screen Shot 2021-08-23 at 10 28 07 am

tree ("insect", "dendrogram" object) looks correct.

Screen Shot 2021-08-23 at 10 12 50 am

Any advice would be greatly appreciated, and thanks again for the extensive documentation of the Timor workflow!

Archive.zip