aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander_Kabui2022-07-22 00:17:00 +0300
committerBonfaceKilz2022-07-22 14:52:08 +0300
commitc130545a342a1d3700a512e0821623e4d3a1c1aa (patch)
tree5df692d9bb58e4fe2f3af786bd8938f6bf785702
parentd05cf3636239456a0e258c6771f6282954acaa69 (diff)
downloadgenenetwork3-c130545a342a1d3700a512e0821623e4d3a1c1aa.tar.gz
pep8 fixes
-rw-r--r--gn3/computations/rust_correlation.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/gn3/computations/rust_correlation.py b/gn3/computations/rust_correlation.py
index a8dc256..bf2d1a8 100644
--- a/gn3/computations/rust_correlation.py
+++ b/gn3/computations/rust_correlation.py
@@ -8,9 +8,6 @@ import subprocess
import json
import os
-
-from typing import Optional
-
from gn3.computations.qtlreaper import create_output_directory
from gn3.random import random_string
from gn3.settings import CORRELATION_COMMAND
@@ -149,6 +146,9 @@ def parse_tissue_corr_data(symbol_name: str,
symbol_dict: dict[list[str, list[str]]],
dataset_symbols: dict[str, str],
dataset_vals: dict[str, list[str, str]]):
+ """parset tissue data input"""
+
+ results = None
if symbol_name and symbol_name.lower() in symbol_dict:
x_vals = ",".join([str(val)
@@ -165,11 +165,13 @@ def parse_tissue_corr_data(symbol_name: str,
data.append(",".join([str(x) for x in corr_vals]))
- except Exception as e:
+ except AttributeError:
pass
- return (x_vals, data)
+ results = (x_vals, data)
+
+ return results
-def parse_lit_corr_data(trait, dataset):
- pass
+def parse_lit_corr_data(_trait, _dataset):
+ """todo:parse lit data"""