# Path: hgvs/exceptions.py
# class HGVSError(Exception):
#     pass
# 
# class HGVSDataNotAvailableError(HGVSError):
#     pass


import os
import re
import six
import hgvs
import logging
import inspect
import psycopg2
import psycopg2.extras
import psycopg2.pool
import contextlib
from six.moves.urllib import parse as urlparse
from hgvs.exceptions import HGVSError, HGVSDataNotAvailableError
        rows = self._fetchall(self._queries['gene_id_for_hgnc'], [hgnc])
        return [r['gene_id'] for r in rows]

    def get_ncbi_gene_id_for_tx(self, tx_ac):
        rows = self._fetchall(self._queries['gene_id_for_tx'], [tx_ac])
        return [r['gene_id'] for r in rows]

    def get_tx_for_ncbi_gene_id(self, gene_id):
        rows = self._fetchall(self._queries['tx_for_gene_id'], [gene_id])
        return [r['tx_ac'] for r in rows]

    def get_hgnc_for_ncbi_gene_id(self, gene_id):
        rows = self._fetchall(self._queries['hgnc_for_gene_id'], [gene_id])
        return [r['hgnc'] for r in rows]

    def get_gene_info_for_ncbi_gene_id(self, gene_id):
        rows = self._fetchall(self._queries['gene_info_for_gene_id'], [gene_id])
        return rows

    def get_gene_info_for_hgnc(self, hgnc):
        rows = self._fetchall(self._queries['gene_info_for_hgnc'], [hgnc])
        return rows

    def get_all_transcripts(self):
        rows = self._fetchall(self._queries['all_transcripts'], [])
        return [r['tx_ac'] for r in rows]

    def store_assocacs(self, hgnc, tx_ac, gene_id, pro_ac, origin):
        sql = """
                insert into assocacs (hgnc, tx_ac, gene_id, pro_ac, origin)

# Path: hgvs/exceptions.py
# class HGVSError(Exception):
#     pass
# 
# class HGVSDataNotAvailableError(HGVSError):
#     pass


# Path: hgvs/dataproviders/ncbi.py
import os
import re
import six
import hgvs
import logging
import inspect
import psycopg2
import psycopg2.extras
import psycopg2.pool
import contextlib
from six.moves.urllib import parse as urlparse
from hgvs.exceptions import HGVSError, HGVSDataNotAvailableError

        rows = self._fetchall(self._queries['gene_id_for_hgnc'], [hgnc])
        return [r['gene_id'] for r in rows]

    def get_ncbi_gene_id_for_tx(self, tx_ac):
        rows = self._fetchall(self._queries['gene_id_for_tx'], [tx_ac])
        return [r['gene_id'] for r in rows]

    def get_tx_for_ncbi_gene_id(self, gene_id):
        rows = self._fetchall(self._queries['tx_for_gene_id'], [gene_id])
        return [r['tx_ac'] for r in rows]

    def get_hgnc_for_ncbi_gene_id(self, gene_id):
        rows = self._fetchall(self._queries['hgnc_for_gene_id'], [gene_id])
        return [r['hgnc'] for r in rows]

    def get_gene_info_for_ncbi_gene_id(self, gene_id):
        rows = self._fetchall(self._queries['gene_info_for_gene_id'], [gene_id])
        return rows

    def get_gene_info_for_hgnc(self, hgnc):
        rows = self._fetchall(self._queries['gene_info_for_hgnc'], [hgnc])
        return rows

    def get_all_transcripts(self):
        rows = self._fetchall(self._queries['all_transcripts'], [])
        return [r['tx_ac'] for r in rows]

    def store_assocacs(self, hgnc, tx_ac, gene_id, pro_ac, origin):
        sql = """
                insert into assocacs (hgnc, tx_ac, gene_id, pro_ac, origin)

                values (%s,%s,%s,%s,%s)