diff options
author | Frederick Muriuki Muriithi | 2021-10-29 07:06:04 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2021-10-29 07:06:04 +0300 |
commit | eeb0d6d7ee1b65f1cbe9c32a9f9ee9237189a113 (patch) | |
tree | 3d853454a4e15d671580706a0b3c503396ac94a1 /tests/unit | |
parent | 3609a2d734bfc259ad29b865a9cb45d57124670a (diff) | |
download | genenetwork3-eeb0d6d7ee1b65f1cbe9c32a9f9ee9237189a113.tar.gz |
Fix some linting errors
Issue:
https://github.com/genenetwork/gn-gemtext-threads/blob/main/topics/gn1-migration-to-gn2/partial-correlations.gmi
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/computations/test_partial_correlations.py | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/tests/unit/computations/test_partial_correlations.py b/tests/unit/computations/test_partial_correlations.py index 7ff8b80..ac5eb20 100644 --- a/tests/unit/computations/test_partial_correlations.py +++ b/tests/unit/computations/test_partial_correlations.py @@ -1,7 +1,12 @@ """Module contains tests for gn3.partial_correlations""" from unittest import TestCase -from gn3.computations.partial_correlations import * +from gn3.computations.partial_correlations import ( + fix_samples, + control_samples, + dictify_by_samples, + tissue_correlation, + find_identical_traits) sampleslist = ["B6cC3-1", "BXD1", "BXD12", "BXD16", "BXD19", "BXD2"] control_traits = ( @@ -212,27 +217,27 @@ class TestPartialCorrelations(TestCase): error conditions. """ for primary, target, method, error, error_msg in ( - ((1,2,3), (4,5,6,7), "pearson", + ((1, 2, 3), (4, 5, 6, 7), "pearson", AssertionError, ( "The lengths of the `primary_trait_values` and " "`target_trait_values` must be equal")), - ((1,2,3), (4,5,6,7), "spearman", + ((1, 2, 3), (4, 5, 6, 7), "spearman", AssertionError, ( "The lengths of the `primary_trait_values` and " "`target_trait_values` must be equal")), - ((1,2,3,4), (5,6,7), "pearson", + ((1, 2, 3, 4), (5, 6, 7), "pearson", AssertionError, ( "The lengths of the `primary_trait_values` and " "`target_trait_values` must be equal")), - ((1,2,3,4), (5,6,7), "spearman", + ((1, 2, 3, 4), (5, 6, 7), "spearman", AssertionError, ( "The lengths of the `primary_trait_values` and " "`target_trait_values` must be equal")), - ((1,2,3), (4,5,6), "nonexistentmethod", + ((1, 2, 3), (4, 5, 6), "nonexistentmethod", AssertionError, ( "Method must be one of: pearson, spearman"))): |