EBISPOT / goci

GWAS Catalog Ontology and Curation Infrastructure
Apache License 2.0
26 stars 19 forks source link

Data-Release -: Issue with EBI Search Index file generation #1299

Open sajo-ebi opened 2 months ago

sajo-ebi commented 2 months ago

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