Skip to content

Commit e3b7d4c

Browse files
committed
Added indexing of previous gene symbols
1 parent 5d49928 commit e3b7d4c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,11 @@
3030
# HGNC ID
3131
# Approved Symbol
3232
# Approved Name
33+
# Previous Symbols
3334
# Synonyms
3435
# Entrez Gene ID (supplied by NCBI)
3536
# Ensembl Gene ID (supplied by Ensembl)
36-
GENE_URL = 'http://www.genenames.org/cgi-bin/download?col=gd_hgnc_id&col=gd_app_sym&col=gd_app_name&col=gd_aliases&col=md_eg_id&col=md_ensembl_id&status=Approved&status_opt=2&where=&order_by=gd_app_sym_sort&format=text&limit=&hgnc_dbtag=on&submit=submit'
37+
GENE_URL = 'http://www.genenames.org/cgi-bin/download?col=gd_hgnc_id&col=gd_app_sym&col=gd_app_name&col=gd_prev_sym&col=gd_aliases&col=md_eg_id&col=md_ensembl_id&status=Approved&status_opt=2&where=&order_by=gd_app_sym_sort&format=text&limit=&hgnc_dbtag=on&submit=submit'
3738
DEFAULT_GENE_FILENAME = 'genes.tsv'
3839

3940
# TODO: incorporate disease data from:

parsers.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,11 @@ def documents(self):
122122
'column': 'Approved Symbol',
123123
'field': 'alt_id',
124124
},
125+
{
126+
'column': 'Previous Symbols',
127+
'field': 'alt_id',
128+
'delimiter': ', ',
129+
},
125130
{
126131
'column': 'Synonyms',
127132
'field': 'alt_id',

0 commit comments

Comments
 (0)