aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2021-10-29 07:06:04 +0300
committerBonfaceKilz2021-11-04 12:45:57 +0300
commitebd8bbbccd282d67ada11a524eee21f14ff71b1c (patch)
tree23b9c106e00107414b0159f20a1acf76861ceaed
parent5a9db2162a0a694a76a256996bb296ff06c75126 (diff)
downloadgenenetwork3-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
-rw-r--r--tests/unit/computations/test_partial_correlations.py17
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"))):