Skip to content

Commit

Permalink
fix parsing error happening with kegg scraping
Browse files Browse the repository at this point in the history
  • Loading branch information
Maluuck committed Dec 13, 2023
1 parent 36a3f99 commit c9afca5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/src/pathway_data/kegg.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ def scrapping(path, species):
if has_genes:
pathway_gene_symbols = []
for i in pathway_genes:
pathway_gene_symbols.append(i[1])
if i:
pathway_gene_symbols.append(i[1])
kegg2external_genes = symbols_to_ensemble(pathway_gene_symbols, species, "gene")
# Diseases
has_diseases = pathway_diseases is not None
Expand Down

0 comments on commit c9afca5

Please sign in to comment.