Skip to content

Add permutation method to calculate thresholds #74

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jenna-tomkinson
Copy link
Member

Add permutation method to calculate thresholds

In this PR, we use a permutation method to randomly shuffle the whole rows (single-cells) and compute EMD per feature to get a single median value to represent the threshold where there is no change. Since EMD is not signed, we will add sign to this value in the figures to create a range.

We could not do the traditional shuffling independently per feature because it drastically changed the distributions per population, leading to large EMD values. When we shuffled whole rows, we can keep the same distribution which is what EMD is most sensitive to. I can explain this more in person if this doesn't make sense currently.

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@jenna-tomkinson jenna-tomkinson requested a review from gwaybio July 3, 2025 21:57
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.

1 participant