cmbi / metadome

MetaDome is aimed at professionals in the (bio-)medical field of human genetics who wish to visualize the position of their mutation of interest in the context of general population-based genetic variation and provide detailed information of pathogenic variants found across homologous domain positions.

Home Page:https://stuart.radboudumc.nl/metadome/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Refactor models.entities.gene_region.py

laurensvdwiel opened this issue · comments

For future maintainability it is better if gene_region is refactored in the following manner:

  1. Switch use of mapping objects to Codon object
  2. Use the Codon objects with variants to create SingleNucleotideVariant classes
  3. Add a pandas.Dataframe for the gene_region, representing each codon per row with tolerance (based on gnomad) annotated
  4. Add a pandas.Dataframe for all clinvar variants
  5. Allow gene_regions be reconstructed from tsv files (like MetaDomain) existing from codon and SingleNucleotideVariant classes