Skip to content
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

Direction of test for logFC calculation #338

Open
RemiDL opened this issue Jun 19, 2024 · 1 comment
Open

Direction of test for logFC calculation #338

RemiDL opened this issue Jun 19, 2024 · 1 comment

Comments

@RemiDL
Copy link

RemiDL commented Jun 19, 2024

Hi,

I'm wondering if there is a way to check the direction of the test used to get the LogFC.
I have a seurat object converted to sce, then I run Milo pipeline and run the differential abundance per group:

da_results <- testNhoods(traj_milo, design = ~ group, design.df = traj_design_order)

The outcome is clear that I have neighborhood with positive or negative LogFC, but I can'T be sure of the direction of the test.
Can I find this information in the design.df or somewhere in the milo object ?

Thanks a lot for your help.
Best regards
Rémi

@MikeDMorgan
Copy link
Member

The direction is set by the variable in your model. By default in R this is lexicographical ordering - you can set the explicit direction/compator using a factor variable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants