diff options
author | Hui Lan <lanhui@zjnu.edu.cn> | 2021-02-10 14:32:32 +0800 |
---|---|---|
committer | Hui Lan <lanhui@zjnu.edu.cn> | 2021-02-10 14:32:32 +0800 |
commit | af52e015cbe1bcdbc3130a62b7c2c577d488c459 (patch) | |
tree | beba7648ae8da99090869f0233c283bb54b94afb /Code | |
parent | 8a521038c66c34ec35e4fa9d64585b963cd7114c (diff) |
download_and_map.py: fix name d not defined error.
Diffstat (limited to 'Code')
-rw-r--r-- | Code/download_and_map.py | 4 |
1 files changed, 2 insertions, 2 deletions
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
|