Skip to content

Commit

Permalink
temp fix for #1053 - will work out data fix later
Browse files Browse the repository at this point in the history
  • Loading branch information
davmlaw committed May 17, 2024
1 parent bee40fa commit f1dc3ee
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions snpdb/variant_sample_information.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,13 @@ def _cohort_genotype_to_sample_genotypes(values_qs):

cgc = CohortGenotypeCollection.objects.get(pk=cgc_id)
if cgc.cohort_version != cgc.cohort.version:
logging.warning("CohortGenotypeCollection %s out of date with Cohort.version", cgc.pk)
continue
logging.warning("CohortGenotypeCollection (without VCF) %s v.%d out of date with Cohort v.%d",
cgc.pk, cgc.cohort_version, cgc.cohort.version)

cohort_can_change = cgc.cohort.vcf is None
if cohort_can_change:
continue # Otherwise not really out of date, just a bug - see issue #1053

samples_qs = cgc.cohort.get_samples()

ontology_path = f"patient__{PATIENT_ONTOLOGY_TERM_PATH}__name"
Expand Down

0 comments on commit f1dc3ee

Please sign in to comment.