diff options
author | Frederick Muriuki Muriithi | 2021-10-29 07:06:04 +0300 |
---|---|---|
committer | BonfaceKilz | 2021-11-04 12:45:57 +0300 |
commit | ebd8bbbccd282d67ada11a524eee21f14ff71b1c (patch) | |
tree | 23b9c106e00107414b0159f20a1acf76861ceaed /tests | |
parent | 5a9db2162a0a694a76a256996bb296ff06c75126 (diff) | |
download | genenetwork3-ebd8bbbccd282d67ada11a524eee21f14ff71b1c.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')
-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"))): |