open-genes / open-genes-api

Open Genes API provides access to research data collected for the genes associated with aging
https://open-genes.com/api/docs
Mozilla Public License 2.0
9 stars 2 forks source link

Fix gene location parser #146

Open const8ine opened 1 year ago

const8ine commented 1 year ago

The script is located here: scripts/gene_location/location.py When calling exec method of GeneLocationFetcherNCBI class, it gives an error for all genes:

symbol PPARA...
 GENE: PPARA ERROR: <class 'urllib3.exceptions.MaxRetryError'> HTTPSConnectionPool(host='api.ncbi.nlm.nih.gov', port=443): Max retries exceeded with url: /datasets/v1/gene/symbol/PPARA/taxon/human (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90a36c4850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))