Skip to content

[NET-218] Remove sort from Eggebrecht ranking#67

Merged
pollaro merged 9 commits intodevelopmentfrom
NET218_removesort
Oct 9, 2024
Merged

[NET-218] Remove sort from Eggebrecht ranking#67
pollaro merged 9 commits intodevelopmentfrom
NET218_removesort

Conversation

@pollaro
Copy link
Copy Markdown
Collaborator

@pollaro pollaro commented Oct 9, 2024

To calculate a p-value, one can count the values of a statistic that are higher than the "observed."
There's two ways to do this:

  • raw counting
  • Or sorting them, and then finding the indexed of the observed.

The second value is what used to be done in legacy. But sorting is roughly O(n log n), which a find is O(log n). Doing the running sum is O(n). So, we gain a small speed up, which is really only noticeable when n starts approaching large numbers. 1000's or more.

There was also an issue where it doesn't appear the statistics were being combined correctly for single sample tests. Fixed

@pollaro pollaro merged commit 00a6c91 into development Oct 9, 2024
@pollaro pollaro deleted the NET218_removesort branch October 23, 2024 15:13
pollaro added a commit that referenced this pull request Mar 25, 2025
* [NET-214] Error plotting Chi-squared and Hypergeometric within network pair (#58)

added check for tests without single sample

* [NET-216] Make `commitString.m` shell agnostic (#62)

make sprintf one line

* remove sorts from result rank

* fixed an error in merging stats and probabilities.
removed sort in eggebrecht ranking

* result rank is a mess and I'm still not sure it's correct

* rename directory...again

* added ability for hypergeo to use p-value as a stat. also fixed summing method for p-value calc

* added the 1 - to get the p-value using p-values of tests correct
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