Skip to content

Commit

Permalink
Ensemble id checking bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarinllao committed Oct 4, 2018
1 parent 65c4c7c commit 8eeb548
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pathme/wikipathways/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ def get_valid_gene_identifier(node_ids_dict, hgnc_manager):
return _validate_query(hgnc_manager, hgnc_entry, uniprot_id, UNIPROT)

# Try to get ENSEMBL id
elif 'bdb_ncbigene' in node_ids_dict:
ensembl_id = node_ids_dict['bdb_ncbigene']
elif 'bdb_ensembl' in node_ids_dict:
ensembl_id = node_ids_dict['bdb_ensembl']
hgnc_entry = hgnc_manager.get_gene_by_uniprot_id(ensembl_id)

return _validate_query(hgnc_manager, hgnc_entry, ensembl_id, ENSEMBL)
Expand Down

0 comments on commit 8eeb548

Please sign in to comment.