Skip to content

Commit 63f61f3

Browse files
committed
Handle list of current HGNC IDs
1 parent cecdf78 commit 63f61f3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: src/indra_cogex/analysis/gene_analysis.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,11 @@ def parse_gene_list(gene_list: Iterable[str]) -> Tuple[Dict[str, str], List[str]
298298
hgnc_ids.append(entry)
299299
else: # probably a symbol
300300
hgnc_id = hgnc_client.get_current_hgnc_id(entry)
301-
if hgnc_id:
301+
# Handle special case where an outdated symbol
302+
# corresponds to multiple current HGNC IDs
303+
if isinstance(hgnc_id, list):
304+
hgnc_ids.append(hgnc_id[0])
305+
elif hgnc_id:
302306
hgnc_ids.append(hgnc_id)
303307
else:
304308
errors.append(entry)

0 commit comments

Comments
 (0)