aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gn3/computations/qtlreaper.py3
-rw-r--r--gn3/db/genotypes.py2
-rw-r--r--tests/unit/db/test_traits.py1
3 files changed, 4 insertions, 2 deletions
diff --git a/gn3/computations/qtlreaper.py b/gn3/computations/qtlreaper.py
index 5ddea76..8b2893e 100644
--- a/gn3/computations/qtlreaper.py
+++ b/gn3/computations/qtlreaper.py
@@ -74,7 +74,8 @@ def run_reaper(
if separate_nperm_output:
permu_output_filename: Union[None, str] = "{}/qtlreaper/permu_output_{}.txt".format(
output_dir, random_string(10))
- output_list = output_list + ["--permu_output", permu_output_filename] # type: ignore[list-item]
+ output_list = output_list + [
+ "--permu_output", permu_output_filename] # type: ignore[list-item]
else:
permu_output_filename = None
diff --git a/gn3/db/genotypes.py b/gn3/db/genotypes.py
index 9ea9f20..9987320 100644
--- a/gn3/db/genotypes.py
+++ b/gn3/db/genotypes.py
@@ -56,7 +56,7 @@ def __load_genotype_samples_from_geno(genotype_filename: str):
continue
break
- headers = line.split("\t" ) # type: ignore[arg-type]
+ headers = line.split("\t") # type: ignore[arg-type]
if headers[3] == "Mb":
return headers[4:]
return headers[3:]
diff --git a/tests/unit/db/test_traits.py b/tests/unit/db/test_traits.py
index ee98893..baa2af3 100644
--- a/tests/unit/db/test_traits.py
+++ b/tests/unit/db/test_traits.py
@@ -166,6 +166,7 @@ class TestTraitsDBFunctions(TestCase):
the right calls.
"""
+ # pylint: disable=C0103
db_mock = mock.MagicMock()
STRAIN_ID_SQL: str = "UPDATE Strain SET Name = %s WHERE Id = %s"