From 2750290db4219809e7aec8354208f38b289cf604 Mon Sep 17 00:00:00 2001 From: Jeremy Arbesfeld Date: Thu, 10 Oct 2024 09:30:24 -0400 Subject: [PATCH] Ensure that upper case gene symbol is compared to upper case gene symbol in UTA --- src/cool_seq_tool/sources/mane_transcript_mappings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cool_seq_tool/sources/mane_transcript_mappings.py b/src/cool_seq_tool/sources/mane_transcript_mappings.py index 03256f6b..2f67c42b 100644 --- a/src/cool_seq_tool/sources/mane_transcript_mappings.py +++ b/src/cool_seq_tool/sources/mane_transcript_mappings.py @@ -61,7 +61,9 @@ def get_gene_mane_data(self, gene_symbol: str) -> list[dict]: location information). The list is sorted so that a MANE Select entry comes first, followed by a MANE Plus Clinical entry, if available. """ - data = self.df.filter(pl.col("symbol") == gene_symbol.upper()) + data = self.df.filter( + pl.col("symbol").str.to_uppercase() == gene_symbol.upper() + ) if len(data) == 0: _logger.warning(