diff options
author | Frederick Muriuki Muriithi | 2022-10-03 09:04:03 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-10-03 09:04:03 +0300 |
commit | 53aa084fd2c9c930ac791ee43affffb3f788547c (patch) | |
tree | db2a73ca3e74134a38ecddf528c42813c4060dae /wqflask | |
parent | a5cfbd22ad82ff07c5e8207ce9a3d5447718f158 (diff) | |
download | genenetwork2-53aa084fd2c9c930ac791ee43affffb3f788547c.tar.gz |
Bug: Don't process data for output early
* The ",".join(...) call was processing the data for output to file,
way too early, which would lead to errors down the line, very far
removed from the actual cause of the error.
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/correlation/pre_computes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/correlation/pre_computes.py b/wqflask/wqflask/correlation/pre_computes.py index 330925f9..85720013 100644 --- a/wqflask/wqflask/correlation/pre_computes.py +++ b/wqflask/wqflask/correlation/pre_computes.py @@ -204,7 +204,7 @@ def read_text_file(sample_dict, file_path): csv_reader = csv.reader(csv_file, delimiter=',') _posit, sample_vals = __fetch_id_positions__( next(csv_reader)[1:], sample_dict) - return (sample_vals, [",".join([line[i] for i in _posit]) for line in csv_reader]) + return (sample_vals, [[line[i] for i in _posit] for line in csv_reader]) def write_db_to_textfile(db_name, conn, text_dir=TMPDIR): |