From cc9149c83641f6c350ae087d8dec2290feae7737 Mon Sep 17 00:00:00 2001 From: Jeremy Stone <74574922+jstone-uw@users.noreply.github.com> Date: Thu, 30 Jan 2025 23:41:00 -0800 Subject: [PATCH] Bug fixes --- src/mavedb/routers/variants.py | 2 +- src/mavedb/view_models/clinvar_variant.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/mavedb/routers/variants.py b/src/mavedb/routers/variants.py index d1c4cc6b..610bc24c 100644 --- a/src/mavedb/routers/variants.py +++ b/src/mavedb/routers/variants.py @@ -46,7 +46,7 @@ def lookup_variants( return [variants_by_allele_id[allele_id] for allele_id in request.clingen_allele_ids] -@router.post( +@router.get( "/variants/{urn}", status_code=200, response_model=VariantWithScoreSet, diff --git a/src/mavedb/view_models/clinvar_variant.py b/src/mavedb/view_models/clinvar_variant.py index f37e0c8e..4c81d276 100644 --- a/src/mavedb/view_models/clinvar_variant.py +++ b/src/mavedb/view_models/clinvar_variant.py @@ -29,7 +29,7 @@ class SavedClinvarVariant(ClinvarVariantBase): id: int modification_date: date creation_date: date - mapped_variants: Sequence[SavedMappedVariant] + #mapped_variants: Sequence[SavedMappedVariant] record_type: str = None # type: ignore _record_type_factory = record_type_validator()(set_record_type) @@ -40,7 +40,8 @@ class Config: # Properties to return to non-admin clients class ClinvarVariant(SavedClinvarVariant): - mapped_variants: Sequence[MappedVariant] + pass + #mapped_variants: Sequence[MappedVariant] # ruff: noqa: E402