MarioniLab / miloR

R package implementation of Milo for testing for differential abundance in KNN graphs
https://bioconductor.org/packages/release/bioc/html/miloR.html
GNU General Public License v3.0
316 stars 20 forks source link

Update contrasts documentation #304

Closed MikeDMorgan closed 1 month ago

MikeDMorgan commented 5 months ago

The testNhoods documentation and contrasts vignette require clarification on the ordering of formula variables. The default behaviour of testNhoods is to use the last fixed effect variable in the model for hypothesis testing. This contrasts with the model.matrix behaviour which needs the contrast variable to be the first.

Either change the code to make the contrasts consistent with the testNhoods behaviour or document it clearly.