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:
- Switch use of mapping objects to Codon object
- Use the Codon objects with variants to create SingleNucleotideVariant classes
- Add a pandas.Dataframe for the gene_region, representing each codon per row with tolerance (based on gnomad) annotated
- Add a pandas.Dataframe for all clinvar variants
- Allow gene_regions be reconstructed from tsv files (like MetaDomain) existing from codon and SingleNucleotideVariant classes