-
Notifications
You must be signed in to change notification settings - Fork 27
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
BUG: ancombc no longer works with '*' as the interaction term in the formula #133
Comments
Update: this also fails while using the interaction term I tested this with the following command (using PD mice dataset):
This is the error message:
|
Another update: this appears to be due to the following code change in ancombc: This change only permits additive interaction terms. |
# what should happen:
vars = rownames(attr(terms(formula), 'factors'))
# what currently happens:
vars = unlist(strsplit(formula, split = "\\s*\\+\\s*")) |
It appears to be intentional: FrederickHuangLin/ANCOMBC#141 If I remember correctly, we don't use |
I initially discovered this while building the 2024.5 docs, but also replicated locally. Within a 2024.5 amplicon environment (on mac OS) the command in PD mice that utilizes ancombc with
donor * genotype
fails with the following error message:This doesn't occur in 2024.2. I need to investigate further, but something seems to have changed with the input handling for ancombc. This error doesn't occur when swapping out '*' for '+' in this particular example.
The text was updated successfully, but these errors were encountered: