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
Adding Unequal Variance to Signature Analysis T-Test #186
Merged
gwaybio
merged 14 commits into
greenelab:master
from
gwaybio:signature-analysis-unequal-var
Sep 21, 2019
Merged
Adding Unequal Variance to Signature Analysis T-Test #186
gwaybio
merged 14 commits into
greenelab:master
from
gwaybio:signature-analysis-unequal-var
Sep 21, 2019
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
also calculate t-test in figures after filtering tissues
gwaybio
changed the title
Adding Unequal Variance to Signature Analysis T-Test
[WIP] Adding Unequal Variance to Signature Analysis T-Test
Sep 19, 2019
cgreene
reviewed
Sep 19, 2019
@@ -54,7 +54,7 @@ | |||
" b_activation = feature_series[feature_series.index.isin(group_b_ids)]\n", | |||
" \n", | |||
" # Perform t-test on two groups\n", | |||
" t_stat, t_p = ttest_ind(a_activation, b_activation)\n", | |||
" t_stat, t_p = ttest_ind(a_activation, b_activation, equal_var=False)\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
cgreene
reviewed
Sep 19, 2019
@@ -100,7 +100,7 @@ | |||
"metadata": {}, | |||
"outputs": [], | |||
"source": [ | |||
"url = \"https://www.nature.com/articles/sdata201733/tables/3\"\n", | |||
"url = \"https://www.nature.com/articles/sdata201733/tables/4\"\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙀
cgreene
approved these changes
Sep 19, 2019
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
gwaybio
changed the title
[WIP] Adding Unequal Variance to Signature Analysis T-Test
Adding Unequal Variance to Signature Analysis T-Test
Sep 21, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
ef98d58 is the major change of this pull request.
I tracked this error down after failing to align t-test results in subpanels b, d, and f to the results shown in a, c, and e (respectively).
A t-test with equal variance assumption will fail to identify cases found in b.
Another minor change is plotting panels b and d with the test-set features only. Previously, panels a and b were calculated using the test set and panels b and d were generated using the training set. Now, b and d use the test set.
I reran the pipeline after these changes and all files here are updated.
Updated Figure