diff options
author | Alexander_Kabui | 2023-06-21 00:06:30 +0300 |
---|---|---|
committer | Alexander_Kabui | 2023-06-21 00:06:30 +0300 |
commit | 7a5f04106ba3df4f3268d56d8813105d31d66733 (patch) | |
tree | dc9361950a92da67ac49f5e2ecf6c31e276c4b32 | |
parent | 650eb1f019de3a921d739c5d00218b4151b4411b (diff) | |
download | genenetwork2-7a5f04106ba3df4f3268d56d8813105d31d66733.tar.gz |
code to fetch csv info
-rw-r--r-- | wqflask/wqflask/correlation/pre_computes.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/wqflask/wqflask/correlation/pre_computes.py b/wqflask/wqflask/correlation/pre_computes.py index e82eb0ec..c91e3862 100644 --- a/wqflask/wqflask/correlation/pre_computes.py +++ b/wqflask/wqflask/correlation/pre_computes.py @@ -190,12 +190,18 @@ def __generate_target_name__(db_name): f"ProbeSetFreezeId_{results[0]}_{results[1]}") -def fetch_csv_info(textfile_path: str, db_target_name: str): +def fetch_csv_info(db_target_name: str, conn): """ alternative for processing csv textfiles with rust !.currently expiremental """ - raise ValueError + csv_file_path = fetch_text_file(dataset_name, conn) + if csv_file_path: + return { + "file_type": "csv", + "lmdb_target_path": "csv_file_path", + "lmdb_target_path": "", + } def fetch_lmdb_info(db_path: str, db_target_name: str): |