From 0a24eca14384e5828fc455ff1212fcd7f3936988 Mon Sep 17 00:00:00 2001 From: Ge94 Date: Fri, 16 Aug 2024 12:51:51 +0100 Subject: [PATCH] Variable name change --- genomeuploader/genome_upload.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/genomeuploader/genome_upload.py b/genomeuploader/genome_upload.py index a70064b..99cf3fb 100755 --- a/genomeuploader/genome_upload.py +++ b/genomeuploader/genome_upload.py @@ -180,7 +180,7 @@ def compute_MAG_quality(completeness, contamination, RNApresence): def extract_tax_info(taxInfo): # if unclassified, block the execution - lineage, position, digitAnnotation = taxInfo.split(';'), 0, False + lineage, kingdomPositionInLineage, digitAnnotation = taxInfo.split(';'), 0, False lineageFirst = lineage[0] if "Unclassified " in lineageFirst: if "Archaea" in lineageFirst: @@ -198,18 +198,18 @@ def extract_tax_info(taxInfo): selectedKingdom, finalKingdom = kingdoms, "" if lineage[1].isdigit(): selectedKingdom = kingdomTaxa - position = 2 + kingdomPositionInLineage = 2 digitAnnotation = True for index, k in enumerate(selectedKingdom): if digitAnnotation: - if k == lineage[position]: + if k == lineage[kingdomPositionInLineage]: finalKingdom = selectedKingdom[index] break else: - if k in lineage[position]: + if k in lineage[kingdomPositionInLineage]: finalKingdom = selectedKingdom[index] break - + iterator = len(lineage)-1 submittable = False rank = ""