Skip to content

Commit

Permalink
grpaf fix
Browse files Browse the repository at this point in the history
sample,group labels forced str types
  • Loading branch information
ACEnglish committed Feb 3, 2025
1 parent 384a934 commit e14812e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion truvari/annotations/grpaf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit e14812e

Please sign in to comment.