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

force model fits to annotate against grand means #7

Merged
merged 18 commits into from
Oct 3, 2022

Conversation

ttriche
Copy link
Contributor

@ttriche ttriche commented Oct 2, 2022

Turns out all that needed to be done for this is to subtract off the mean value of each factor and fit accordingly. This forces groups with less-than-average enrichment for a factor to drop out. To clean up further, a weight is derived from -log10(fdr) such that associations with an FDR > about 0.316 are dropped from the plot. If the user sets dropEmpty=TRUE, factors with no association at all will not be plotted (this is not the default... yet).

@zdebruine zdebruine merged commit 17cc162 into zdebruine:main Oct 3, 2022
@zdebruine
Copy link
Owner

Awesome, I'll have a closer look later this week and may take the liberty to put some of these hyperparameters as arguments to the function. If nothing else it will at least help us clean up plots on a case-by-case basis.

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

Successfully merging this pull request may close these issues.

2 participants