diff options
-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
|