goci
goci copied to clipboard
Data-Release -: Issue with EBI Search Index file generation
There was an issue in Python script where we got the following error -:
[INFO] Database connection to SPOTREL was successful
[Warning] Number of studies do not match.
Traceback (most recent call last):
File "/hps/software/users/parkinso/spot/gwas/anaconda3/envs/gwas-utils-dev/bin/create-ebi-search-index-data", line 10, in <module>
sys.exit(main())
File "/hps/software/users/parkinso/spot/gwas/anaconda3/envs/gwas-utils-dev/lib/python3.7/site-packages/create_ebi_search_index_data.py", line 408, in main
ebi_search_index_data_obj.data_check()
File "/hps/software/users/parkinso/spot/gwas/anaconda3/envs/gwas-utils-dev/lib/python3.7/site-packages/create_ebi_search_index_data.py", line 96, in data_check
self._find_data_errors()
File "/hps/software/users/parkinso/spot/gwas/anaconda3/envs/gwas-utils-dev/lib/python3.7/site-packages/create_ebi_search_index_data.py", line 102, in _find_data_errors
with contextlib.closing(connection.cursor()) as cursor:
NameError: name 'connection' is not defined
Changed Python script in conda package path to handle Name error , will make code changes to the repo https://github.com/EBISPOT/gwas-ebi-search-index , @karatugo to investigate why the script doesn't work with gwas-utils conda package but only works with gwas-utils-dev conda package