Skip to main content

Make HGNC queries for gene symbols

Project description

Query HGNC for gene symbols.
Created to attempt to rescue old gene symbols because of an old excel "database" that had to be converted in a Django database


pip install hgnc-queries


Use HGNC queries to get:

>> import hgnc_queries
>> hgnc_queries.get_new_symbol("RN5S49", verbose = False)

>> hgnc_queries.get_gene_starting_with("BRCA", verbose = False)
["BRCA1", "BRCA1P1", "BRCA2", "BRCA3"]

>> hgnc_queries.get_alias("ARID1B", verbose = False)
["KIAA1235", "ELD/OSA1", "p250R", "BAF250b", "DAN15", "6A3-5"]

>> hgnc_queries.get_main_symbol(BRAF1, verbose = False)

>> hgnc_queries.get_prev_symbol("COL2A1", verbose = False)
["SEDC", "AOM"]

>> hgnc_queries.get_id("BRAF", verbose = False)

>> hgnc_queries.get_symbol_from_id("1097", verbose = False)

# new function more for in-script use
# get the hgnc symbol if gene symbol not recognized by the process you're using
>> print(queries.get_hgnc_symbol("RN5S49"))
>> print(queries.get_hgnc_symbol("BRAF1"))

>> hgnc_queries.get_refseq("BRCA1", False)
>> hgnc_queries.get_ensembl("BRCA1", False)

>> hgnc_queries.convert_refseq2ensembl("NM_007294", False)
>> hgnc_queries.convert_ensembl2refseq("ENSG00000012048", False)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for hgnc-queries, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size hgnc_queries-0.1.0-py2.py3-none-any.whl (5.5 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size hgnc_queries-0.1.0.tar.gz (4.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page