aboutsummaryrefslogtreecommitdiff
path: root/gn3/db/datasets.py
diff options
context:
space:
mode:
authorzsloan2023-05-22 17:31:23 +0000
committerzsloan2023-05-22 17:31:23 +0000
commit8c1add0155160092c9e7980e2d7da5b7d1ddfa0f (patch)
tree0e451de62dfebd47f70d5fef0d2c1ee3ffcdaff3 /gn3/db/datasets.py
parent68dd9d55cf41e057658b7e2ed3bdd7c5dfadf354 (diff)
downloadgenenetwork3-8c1add0155160092c9e7980e2d7da5b7d1ddfa0f.tar.gz
Initialize 'line'; previous pylint complained because line might not be initialized (if the genofile was empty, for example)
Diffstat (limited to 'gn3/db/datasets.py')
-rw-r--r--gn3/db/datasets.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/gn3/db/datasets.py b/gn3/db/datasets.py
index 470e430..38cd16c 100644
--- a/gn3/db/datasets.py
+++ b/gn3/db/datasets.py
@@ -16,6 +16,7 @@ def retrieve_sample_list(group: str):
genofile_path = os.environ.get("GENENETWORK_FILES") + "/genotype/" + group + ".geno"
if os.path.isfile(genofile_path):
with open(genofile_path, "r") as genofile:
+ line = ""
for line in genofile:
line = line.strip()
if not line: