Question: python's HGVS module UTA connection error
gravatar for wrel2015
3.5 years ago by
wrel20150 wrote:


I am getting an error whenever I try to connect to the public UTA database hosted by Invitae as part of the HGVS module to try and get the genomic location of the Refseq transcript HGVS term using publicly available data.

Here is what I entered in terminal, if anyone has come across this I would really appreciate your help. Thanks!

>>> import hgvs
>>> import hgvs.parser
>>> hgvsparser = hgvs.parser.Parser()
>>> var_c1 = hgvsparser.parse_hgvs_variant('NM_001197320.1:c.281C>T')
>>> var_c1
SequenceVariant(ac=NM_001197320.1, type=c, posedit=281C>T)
>>> import hgvs.dataproviders.uta
>>> hdp = hgvs.dataproviders.uta.connect()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/location/users/bla/bla_user/.local/lib/python2.7/site-packages/hgvs-0.3.6-py2.7.egg/hgvs/dataproviders/", line 71, in connect
    conn = UTA_postgresql(url, pooling)
  File "/location/users/bla/bla_user/.local/lib/python2.7/site-packages/hgvs-0.3.6-py2.7.egg/hgvs/dataproviders/", line 390, in __init__
    super(UTA_postgresql, self).__init__(url)
  File "/location/users/bla/bla_user/.local/lib/python2.7/site-packages/hgvs-0.3.6-py2.7.egg/hgvs/dataproviders/", line 146, in __init__
  File "/location/users/bla/bla_user/.local/lib/python2.7/site-packages/hgvs-0.3.6-py2.7.egg/hgvs/dataproviders/", line 405, in _connect
  File "/software/title/python2/lib/python2.7/site-packages/psycopg2/", line 164, in connect
    conn = _connect(dsn, connection_factory=connection_factory, async=async)
psycopg2.OperationalError: could not connect to server: Connection refused
    Is the server running on host "" ( and accepting

    TCP/IP connections on port 5432?


snp software error • 1.5k views
ADD COMMENTlink modified 13 months ago by Biostar ♦♦ 20 • written 3.5 years ago by wrel20150

The site might be down. Try again after a while maybe?

ADD REPLYlink written 3.5 years ago by RamRS20k

I've been trying this for weeks :(

ADD REPLYlink written 3.5 years ago by wrel20150

Ohh. Maybe a network problem on your end then? Maybe raise an issue on their bitbucket? They are pretty responsive.

ADD REPLYlink written 3.5 years ago by RamRS20k
gravatar for Reece
3.4 years ago by
United States
Reece250 wrote:

The OP also asked at the hgvs bitbucket page and the issue was solved there. The problem appears to be that the user's institution began blocking outgoing ports.



ADD COMMENTlink written 3.4 years ago by Reece250
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 784 users visited in the last hour