From 89ae8b18752ed555ed5f0653ae2644f646c19c6f Mon Sep 17 00:00:00 2001 From: "Dr. K. D. Murray" <1560490+kdm9@users.noreply.github.com> Date: Sat, 13 Jul 2024 14:55:43 +0200 Subject: [PATCH] Update samplot_vcf.py --- samplot/samplot_vcf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/samplot/samplot_vcf.py b/samplot/samplot_vcf.py index 168689c..bd8d826 100644 --- a/samplot/samplot_vcf.py +++ b/samplot/samplot_vcf.py @@ -958,7 +958,8 @@ def generate_commands( logger.warning( "BAMs missing from VCF samples: {}".format(", ".join(missing_bam_samples)) ) - + + var_count = 0 # define it here, in case of zero variants (otherwise it will raise NameError when used below) for var_count, variant in enumerate(vcf): translocation_chrom = None svtype = variant.info.get("SVTYPE", "SV")