ENCODE_downloader icon indicating copy to clipboard operation
ENCODE_downloader copied to clipboard

KeyError: 'original_files'

Open cosmiccapybara opened this issue 1 year ago • 1 comments

Hello, I am trying to download multiple files by providing a list of file IDs:

python /g/data/zk16/software/encode_downloader.py acc_ids.txt

========== ENCFF093VXI ========== Traceback (most recent call last): File "/g/data/zk16/software/encode_downloader.py", line 414, in main() File "/g/data/zk16/software/encode_downloader.py", line 230, in main for org_f in json_data_exp['original_files']: KeyError: 'original_files'

cosmiccapybara avatar Apr 26 '23 09:04 cosmiccapybara

I'm sorry that this tools is no longer maintained. Please add a single line to skip file accessions without such key. Something like


# add this to line 229
if 'original_files' not in json_data_exp:
    continue

for org_f in json_data_exp['original_files']:
...

leepc12 avatar May 16 '23 17:05 leepc12