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

No enrichment randomized and testing patch #170

Merged
merged 4 commits into from
Aug 14, 2020
Merged

Conversation

alex-l-kong
Copy link
Contributor

@alex-l-kong alex-l-kong commented Aug 14, 2020

The no enrichment cases for channel and cluster enrichment currently rely on a completely random generation of an array, which can cause the p-values and especially the z-scores to fail. For now, adding a random seed for that test will do the trick.

Duplicate tests for no enrichment also appeared, so we'll need to update those to test for p_neg (which was missing).

I still think it would be useful to implement a smarter way to randomly generate no_enrich tests in the near future without having to set a random seed, but for now, this should do the trick.

@ackagel
Copy link
Contributor

ackagel commented Aug 14, 2020

smh this one's gonna take me a while to get through

Copy link
Contributor

@ackagel ackagel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me

@ngreenwald ngreenwald merged commit 0d6f922 into master Aug 14, 2020
@ngreenwald ngreenwald deleted the enrich_random_patch branch August 14, 2020 21:30
alex-l-kong added a commit that referenced this pull request Jan 14, 2021
* New and improved (like 2-4 lines changed haha) spatial analysis testing with random seed for no enrich and removal of duplicate tests

* Just had to add that comment about 42 to botch PEP8...

* Hopefully changing the random seed works (goodbye 42...)

Co-authored-by: Noah Greenwald <noahfgreenwald@gmail.com>
y2kbugger pushed a commit that referenced this pull request Jul 29, 2021
* New and improved (like 2-4 lines changed haha) spatial analysis testing with random seed for no enrich and removal of duplicate tests

* Just had to add that comment about 42 to botch PEP8...

* Hopefully changing the random seed works (goodbye 42...)

Co-authored-by: Noah Greenwald <noahfgreenwald@gmail.com>
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.

3 participants