I am using champ.DMP
for differential methylation analysis, but I am unclear about how the tool determines the reference group for comparison between phenotypes.
For instance, if I have two categories (e.g., "A" and "B") and the log fold change value for a specific CpG site is positive, how do I consistently know if methylation is higher in group "A" or "B"? Additionally, is there a way to manually set the reference group if I wanted to switch the comparison to analyse 'B' vs. 'A' instead of 'A' vs. 'B'?
I’ve looked through the documentation but couldn’t find any clear explanation of this.
Could someone clarify how to set the baseline group and correctly interpret the log fold change?
Any insights would be much appreciated!
Thanks for the clear explanation! Setting the reference group with
factor()
andrelevel()
makes sense. Appreciate the help!