From d385cf6404f3a2a5ba1facd073795ee5e9707476 Mon Sep 17 00:00:00 2001 From: Amine GHOZLANE Date: Fri, 6 Sep 2024 15:30:48 +0200 Subject: [PATCH] Improve readability --- meteor/variantcalling.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meteor/variantcalling.py b/meteor/variantcalling.py index 52844aa..b82eb6d 100644 --- a/meteor/variantcalling.py +++ b/meteor/variantcalling.py @@ -336,9 +336,9 @@ def create_consensus( ) ) ) - consensus[record.pos + i - 1] = self.IUPAC[mnv] + consensus[record.start + i] = self.IUPAC[mnv] else: - consensus[record.pos - 1] = self.IUPAC[keep_alts] + consensus[record.start] = self.IUPAC[keep_alts] # Update consensus array for each matching range if gene_id in low_cov_sites.index: selection = low_cov_sites.loc[gene_id]