Skip to content

Commit

Permalink
issue #1187 - handle bad gnomAD common annotation config
Browse files Browse the repository at this point in the history
  • Loading branch information
davmlaw committed Oct 24, 2024
1 parent bf7e86a commit dd06bba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions snpdb/common_variants.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ def variants_classification_changed(sender, **kwargs): # pylint: disable=unused

logging.info("variants_classification_changed_signal!! %s, %s", genome_build, variants)

# Look to see if any of these are in common filter (and not already handled)
for cgcfv in CohortGenotypeCommonFilterVersion.objects.filter(genome_build=genome_build):
# Look to see if any of these are used in a common filter (and not already handled)
for cgcfv in CohortGenotypeCommonFilterVersion.objects.filter(genome_build=genome_build,
cohortgenotypecollection__isnull=False):
va_qs = VariantAllele.objects.filter(variant__in=variants,
genome_build=genome_build)
va_qs = va_qs.exclude(variant__commonvariantclassified__common_filter=cgcfv)
Expand Down

0 comments on commit dd06bba

Please sign in to comment.