Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8161781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:34:18+00:00 2026-06-06T18:34:18+00:00

I am trying to represent to genetic variation data in a database for my

  • 0

I am trying to represent to genetic variation data in a database for my institution. We have discovered genetic variants, which have associated with them reference alleles, mutant alleles, chromosome, position, name, possible effect, gene, position in gene etc.

Though it’s not essential for the question context is sometimes useful, I’ll be building this with django, and the db backend will be either PostgreSQL or MySQL (suggestions about choice here also welcome, though not main focus of question)

To represent this information properly I have set about designing a relational database. I’m running into problems defining the most efficient structure however.
I could represent it as follows:

Variants belong to genes in a many to one relationship. i.e. one gene can have many variants but one variant cannot usually span more than one gene. (However sometimes this can happen with large CNVs or where two genes overlap, so perhaps a many to many relationship???)

Variants are also discovered in individuals. Individuals have genotypes, which is just two copies of the various combinations of alleles of the variant. I’m not sure about the best for this at all, perhaps a joint primary key of variant and individual and the record the genotype as the number of mutant alleles (0,1,2 for example)???

So my question is (sorry for all the preamble, and bio talk) what way do we thing is the best, or a better design for these three things:
Variants – the main thing I want to store information about, and Genes, and Individuals – both essential for any downstream analyses.

Any advice is much appreciated. Again sorry for the somewhat ephemeral nature of the question.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T18:34:18+00:00Added an answer on June 6, 2026 at 6:34 pm

    Well, I know nothing about genes, nor do I speak bio-lingo. However, I have gathered some propositions from your question and wikipedia and came up with this. Mostly as an exercise in modelling, using FCO approach. So here are some statements, you should be able to flag each one as true or false.

    • Gene is a name given to some stretches of DNA.
    • Gene occupies a given position on a chromosome.
    • Chromosome is a single piece of coiled DNA containing many genes.
    • Allele is a one of multiple alternative forms of a single gene.
    • Allele is a gene.
    • Variant is a DNA sequence.
    • Variant spans gene.
    • Variant spans allele.
    • Genotype is two copies of alleles.
    • Phenotype is person’s observable trait.
    • Genotype affects phenotype.
    • One phenotype can be affected by many genotypes.
    • One genotype may affect many phenotypes.
    • Person has many genotypes.
    • Person has many observed phenotypes.
    • Variant can be discovered in a person.

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an interesting problem trying to represent complex schedule data in a database.
I have a problem which I am trying to solve with genetic algorithms. The
I am having trouble trying to represent the below SQL (which returns the results
I'm trying to represent several surface plots* for which the scale differs a bit.
I am trying to represent weighted edges. I eventually want to have OutE to
I have just spent a couple of hours trying to represent the decision tree
I've been trying to make a generic class to represent a range of values
I'm trying to represent a two-dimensional coordinate grid with a two-dimensional array. Problem is,
I'm trying to represent the result of an MD5 hash in the shortest possible
I am trying to represent a graph using disjoint union and record. The following

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.