I need to download a large amount of files from histories of different users. These files are named the same way so I can easily get their IDs with histories.show_matching_datasets with a regular expression. The code looks like this :
hl = gi.histories.get_histories() for h in hl: histID=h['id'] todl = gi.histories.show_matching_datasets(histID,name_filter=".*_thing.vcf")['id'] gi.datasets.download_dataset(todl, file_path="./")
It works fine with VCF files, but when I try to do it with a bed files it doesn't work. I will try to give you all the details.
When I try to do it on the bed file I want to download, in a python terminal I have this error :
If I copy/paste the link in my browser it downloads the file (and the file is OK).
If I look into the uwsgi log I can read HistoryDatasetAssociation error (not accessible):
If I try to download the file with Galaxy interface and then use "Get Data" to have it in another history, and then try to download it with bioblend, I have the exact same error.
Here is the file :
Can you reproduce this error ?