Skip to content

Commit

Permalink
#389 empty string fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LuppovDaniil committed Sep 17, 2024
1 parent 0e9131b commit 1a52c76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py_src/ChunkQC.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,14 +178,14 @@ def process_chunk(self) -> dict[int: str]:


def gene_match_check(gene_name: str) -> bool:
if isinstance(gene_name, str):
if isinstance(gene_name, str) and not gene_name == '':
gene_name = gene_name.split('*')[0]
return gene_name in nomenclature_set
return True


def alleles_match_check(gene_name: str) -> bool:
if isinstance(gene_name, str):
if isinstance(gene_name, str) and not gene_name == '':
gene = gene_name.split('*')[0]
if len(gene_name.split('*')) > 1:
allele = gene_name.split('*')[1]
Expand Down

0 comments on commit 1a52c76

Please sign in to comment.