From c9afca5c4a4ce82cf9c06efd8b0c4d611e713809 Mon Sep 17 00:00:00 2001 From: Maluuck Date: Wed, 13 Dec 2023 15:19:22 +0100 Subject: [PATCH] fix parsing error happening with kegg scraping --- backend/src/pathway_data/kegg.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/pathway_data/kegg.py b/backend/src/pathway_data/kegg.py index 4708998e..b3c38ec6 100644 --- a/backend/src/pathway_data/kegg.py +++ b/backend/src/pathway_data/kegg.py @@ -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