samplot icon indicating copy to clipboard operation
samplot copied to clipboard

Don't crash on an empty vcf

Open kdm9 opened this issue 1 year ago • 0 comments

Hi folks,

In samplot vcf, the accumulator variable for the number of parsed variants uses enumerate(), which means that the var_count variable wasn't define if there were no variants in the file. Likely, an empty vcf should be an error that is reported somewhere, but for now I at least define the variable so as not to get a rather inscrutable NameError.

Thanks K

kdm9 avatar Jul 13 '24 12:07 kdm9