New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
appear to be constant with groups #32
Comments
This seems to happen with normalization to column sums adding to 1 instead of 1 million as in the original implementation. The following code after normalization accomplishes this, and we will make this the default of the relativeAb function.
|
@Peacesandy append Line 28 in db8f36a
The following code currently reproduces the problem, so use it to create a library(lefser)
data(zeller14)
zeller14sub <- zeller14[, zeller14$study_condition != "adenoma"]
zeller14ra <- relativeAb(zeller14sub)
lefser(zeller14ra, groupCol = "study_condition") |
Okay, I'll make a pull request as soon as I'm done |
Fixed by 8864568 (v1.13.2) and this error no longer appears. Thank you for the report, @celinechen1885 . @asyakhl will you push to bioc-devel ASAP? @celinechen1885, the easiest way to access this fix for now is to install from GitHub ( |
@asyakhl please push to bioc-devel and cherry-pick to bioc-release. This is an important bugfix. |
@lwaldron I've updated both. Thanks! |
Thanks Marcel! |
Hi!
I'm working with a shotgun metagenomics data, and we aim to analyze the functional profile.
we have 224 samples in total, with 356 different pathways.
below are the codes that I used
metagenomic_lefse <- read.csv
se <- SummarizedExperiment(assays = list(counts = as.matrix(metagenomic_lefse)))
colData(se) <- DataFrame(metadata)
se$group <- as.factor(se$group)
se$DI <- as.factor(se$DI)
se_relab <- relativeAb(se)
I got an error message:
Error in lda.default(x, grouping, ...) :
variables 85 145 appear to be constant within groups
Could anyone help me with it?
Thanks!
The text was updated successfully, but these errors were encountered: