Skip to content

Commit

Permalink
Better warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
davmlaw committed Dec 9, 2024
1 parent 9ec34d6 commit e7d4d16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upload/tasks/vcf/genotype_vcf_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def process_items(self, upload_step):
calculate_vcf_stats(vcf.pk, annotation_version.pk)

if vcf_annotation_stats := VCFAnnotationStats.objects.filter(vcf=vcf, vep_skipped_count__gt=0).first():
message_string = f"Variant Effect Predictor (VEP) was unable to annotate {vcf_annotation_stats.vep_skipped_count} variants."
message_string = f"CalculateVCFStats may not be accurate as VEP was unable to annotate {vcf_annotation_stats.vep_skipped_count} variants."
SimpleVCFImportInfo.objects.create(type=SimpleVCFImportInfo.ANNOTATION_SKIPPED, has_more_details=True,
upload_step=upload_step, message_string=message_string)

Expand Down

0 comments on commit e7d4d16

Please sign in to comment.