From af52e015cbe1bcdbc3130a62b7c2c577d488c459 Mon Sep 17 00:00:00 2001 From: Hui Lan Date: Wed, 10 Feb 2021 14:32:32 +0800 Subject: download_and_map.py: fix name d not defined error. --- Code/download_and_map.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Code') diff --git a/Code/download_and_map.py b/Code/download_and_map.py index 0c7bfb5..aeeb3b3 100644 --- a/Code/download_and_map.py +++ b/Code/download_and_map.py @@ -90,9 +90,9 @@ def make_download_list(mapped_dir, rna_data_info_dict): mapped_run_ids = get_list(DOWNLOADED_SRA_ID_LOG_FILE) small_ids = get_list(IGNORED_SRA_ID_LOG_FILE) # these files are too small for run_id in sorted(rna_data_info_dict.keys(), reverse=True): # SRR first, then ERR, then DRR - include_me = True if d[run_id]['library_strategy'].lower() == 'rna-seq' and d[run_id]['library_source'].lower() == 'transcriptomic' else False + include_me = True if rna_data_info_dict[run_id]['library_strategy'].lower() == 'rna-seq' and rna_data_info_dict[run_id]['library_source'].lower() == 'transcriptomic' else False if not (run_id + '_quant.txt') in mapped_files and (not run_id in result) and (not run_id in small_ids) and (not run_id in mapped_run_ids) and include_me: # not mapped yet and is RNA-seq - result.append(x) + result.append(run_id) return result -- cgit v1.2.1