guma44 / GEOparse

Python library to access Gene Expression Omnibus Database (GEO)
BSD 3-Clause "New" or "Revised" License
137 stars 51 forks source link

download all supplementary file instead of only one #81

Closed BioInfoData closed 4 months ago

BioInfoData commented 1 year ago

When using GEOparse to download suplamentry files from GEO accession that includes more than one suplamentry file I got this erorr:

Traceback (most recent call last): File "C:/Users/User/PycharmProjects/test_geo/main.py", line 17, in get_sup_data(out_dir, gse_num) File "C:/Users/User/PycharmProjects/test_geo/main.py", line 15, in get_sup_data print(gse.gsms[gsm].download_supplementary_files(directory=out_dir, download_sra=False)) File "C:\Users\User\PycharmProjects\test_geo\venv\lib\site-packages\GEOparse\GEOTypes.py", line 493, in download_supplementary_files assert len(metavalue) == 1 and metavalue != "" AssertionError

I found that the script is expecting one file only. I changed the code to allow download of all supplementary files.