Repository navigation
Chosing reference levels in ANCOMBC2 #327
Unanswered
hammerklaviersonate
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hello,
I am using ANCOMBC2 to compare differential abundances at Phylum level. I've got my phyloseq object. There are two categories of interest. 1.) Sample Typ (containing 8 different sample types) and 2.) Location (containing 4 distinct locations called A, B, C, D)
This code runs just fine but I have issues with the res_pair$lfc output. As I understand it, ancombc2 takes the location A as the reference
to calclute all other lfc against so that I end up with only 3 lfc outputs in res_pair$lfc. Am I correct?
Since there is no hierarchy in the locations I would prefer a more exploratory approach: I would like ancombc2 to calculate the lfc of the general mean across all locations (A, B, C, D) instead of picking A as the reference - so that in the end I have lfcs of every location compared against the grand general mean - not against location A.
How can I do that? Any help is greatly appreciated! Thanks in advance
All reactions