From ef4f83ccd8c663a4beacb0eb484d55b2a5c2f72b Mon Sep 17 00:00:00 2001 From: Adam English Date: Tue, 6 Feb 2024 16:55:24 -0500 Subject: [PATCH] Bad variable fixes ga4gh --- truvari/region_vcf_iter.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/truvari/region_vcf_iter.py b/truvari/region_vcf_iter.py index dfcdf339..7de75c11 100644 --- a/truvari/region_vcf_iter.py +++ b/truvari/region_vcf_iter.py @@ -182,8 +182,8 @@ def region_filter(vcf, tree, inside=True, with_region=False): # region-less chromosome if not inside: try: - for entry in vcf.fetch(chrom): - yield ret_type(entry, chrom, cur_intv) + for cur_entry in vcf.fetch(chrom): + yield ret_type(cur_entry, chrom, cur_intv) except ValueError: pass # region on chromosome not in vcf continue @@ -230,5 +230,5 @@ def region_filter(vcf, tree, inside=True, with_region=False): # if we finished the intervals first, need to flush the rest of the outside entries if not inside: - for entry in cur_iter: + for cur_entry in cur_iter: yield ret_type(cur_entry, chrom, cur_intv)