From e14812e483cbfd9a51a124ef2d13ebc5b639a295 Mon Sep 17 00:00:00 2001 From: Adam English Date: Mon, 3 Feb 2025 17:15:21 -0600 Subject: [PATCH] grpaf fix sample,group labels forced str types --- truvari/annotations/grpaf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/truvari/annotations/grpaf.py b/truvari/annotations/grpaf.py index beb33c90..f0cab133 100644 --- a/truvari/annotations/grpaf.py +++ b/truvari/annotations/grpaf.py @@ -95,7 +95,7 @@ def grpaf_main(cmd_args): # setup masks vcf_samples = pd.Series(list(in_vcf.header.samples)) - groups = pd.read_csv(args.labels, sep='\t', names=["sample", "group"]) + groups = pd.read_csv(args.labels, sep='\t', names=["sample", "group"], dtype=str) presence = groups["sample"].isin(vcf_samples) if args.strict and not presence.all(): logging.error("Samples in --labels not in VCF header")