lefser icon indicating copy to clipboard operation
lefser copied to clipboard

Error in cols * 0.05 : non-numeric argument to binary operator

Open chuynh96 opened this issue 2 years ago • 2 comments

Hello,

I was able to convert my phyloseq object (output from the DADA2 pipeline) into a SummarizedExperiment object such that it mirrors the example SummarizedExperiment from the vignette (zeller14). However, using lefser(MySE, groupCol = "study_condition"), I keep getting this error: Error in cols * 0.05 : non-numeric argument to binary operator

I have no idea why I'm getting this error! I also attempted to use relative abundance rather than raw counts (although it appears the example zeller14 SummarizedExperiment just has raw counts) to see if it would prevent the error, to no avail.

Any advice anyone?

chuynh96 avatar Jul 21 '23 02:07 chuynh96

Hi @chuynh96, cols is a numeric vector, which has your abundance values per feature. I would check that all of your abundance values are numeric. Or check that MySE is set up similarly to assay(zeller14). If that doesn't resolve this issue, could you point me to your dataset and conditions with which you run lefser.

asyakhl avatar Aug 12 '23 18:08 asyakhl

@chuynh96 Any updates on this?

LiNk-NY avatar Aug 15 '23 15:08 LiNk-NY

Closing as error is not reproducible.

lwaldron avatar Jun 13 '24 14:06 lwaldron