Entering edit mode
When using msmsTests on some mass spec proteomics data, and looking at the edgeR results tables, the lFC.Av and LogFC columns always have opposite signs. According to the documentation, lFC.Av is calculated from the plain (normalised) values, and LogFC is as calculated by the GLM; so while I expect them to differ they should not by this much. Further, a quick inspection of of the values indicates that the LogFC value is also inconsistent with the normalised values.
Does anyone know what might be causing this?
Invoking the functions:
model.edgeR <- msms.edgeR(tmp.dat, "y ~ Treatment + Replicate", "y ~ Replicate")
results.edgeR <- test.results(model.edgeR, tmp.dat, phenoData(tmp.dat)$Treatment, gp1="Inhibitor", gp2="Vehicle", div=colSums(exprs(tmp.dat)), alpha=0.05)
The relevant phenoData from the underlying object:
tmp.dat$Treatment
[1] ...etc...
Levels: Vehicle Inhibitor

Continued here due to posting difficulties:
Extract from the results table:
Swapping Inhibitor and Vehicle in the test.results() call seems to make everything properly consistent, but that contradicts what is says in the documentation for the function:
sessionInfo( ):