lefser icon indicating copy to clipboard operation
lefser copied to clipboard

Error in lda.default(x, grouping, ...)

Open J5886 opened this issue 1 year ago • 2 comments

Hello,

I'm using the lefser package with HUMAnN3 pathways output,

I created a phyloseq object and then converted it to a tse object to run Lefser, but i got this erorr

res <- lefser(tse_lefobj, groupCol = "Treatment")

Error in lda.default(x, grouping, ...) : variables 3 12 18 29 64 96 112 appear to be constant within groups

Could you please tell me, what should I do to fix it?

Thank you in advance

J5886 avatar Mar 19 '24 18:03 J5886

@J5886 It sounds like you have the same values across groups in a grouping variable e.g., "Treatment". In order to better assist you, could you provide a minimally reproducible example? https://stackoverflow.com/a/5963610/6558242 Thank you.

LiNk-NY avatar Mar 19 '24 22:03 LiNk-NY

@J5886 It sounds like you have the same values across groups in a grouping variable e.g., "Treatment". In order to better assist you, could you provide a minimally reproducible example? https://stackoverflow.com/a/5963610/6558242 Thank you.

Hi @LiNk-NY, thanks for your rapid response and assistance,

J5886 avatar Mar 20 '24 16:03 J5886

@J5886 this issue should be resolved in recent versions of lefser - please try again and let us know if it persists.

lwaldron avatar Jun 13 '24 14:06 lwaldron

@J5886 this issue should be resolved in recent versions of lefser - please try again and let us know if it persists.

Hi @lwaldron thanks for letting me know. Regards!

J5886 avatar Jun 19 '24 17:06 J5886