BG Lab 2

Lab Content

Expand all

Lab Content

Genotype file

Genotype file

An updated genotype file.

To understand the annotation, read the SnpEff & SnpSift manual

If you're using Safari on a Mac you will need to do the following before downloading the file:

  1. Open Safari
  2. Click the "General" tab
  3. Uncheck the box "Open safe files after downloading"

Reading a vcf file

To walk you through how to read a vcf I ran the following command, which will show the contents of the file minus the header, and minus the annotation column. This just cleans things up by removing parts of the file that we don't need.

The output is here:

The the columns are

  1. chromosome
  2. position
  3. unique identifier (rs ID)
  4. the reference allele (the allele found in the human reference genome)
  5. the alternate allele (an allele discovered in other individuals)
  6. the FORMAT the individuals genotypes are in (in this case they are coded in the "GT" format, which is 0/0, 0/1, 1/0, or 1/1; believe it or not there are other useful formats). THIS COLUMN DOES NOT PROVIDE THE INDIVIDUAL'S GENOTYPES AND CAN BE SAFELY IGNORED!
  7. the genotype of this 23andme individual

To decode the genotype, you must combine the last column with the REF and ALT allele information. Take the last line, rs4475691. The REF allele is "C", and the ALT allele is "T". The genotype is 0/1, which tells you that one chromosome of this individual carries 0 ALT alleles (i.e., 1 reference allele) and the other chromosome carries 1 ALT allele. So the genotype is C/T.

For another example, take rs6681049. The REF allele is T and the ALT is C. The genotype is 1/1. That means that one chromosome of this individual carries 1 ALT allele (i.e., a C) and the other chromosome also carries 1 ALT allele (i.e., a C). So the genotype for this individual at that site is C/C.

Lab assignment 2

Example full credit answers

1. Most of you got this one right. The most common mistake was to include too much information and too many steps (although that generally did not cost you any points).

This individuals has 0 alternate alleles, so their genotype is G/G. Two reference alleles.

2. There are multiple ways to answer this. One of the most straightforward was as follows, although we could quibble over whether it should have included any splicing variants. zgrep 'synonymous\|missense\|start_gain\|start_lost\|stop_gain\|stop_lost\|3_prime_UTR_variant\|5_prime_UTR_variant' hu916767_20170324191934.1kgALTallele.withHeader.snpEff.vcf.gz | wc -l 52772

3. One good answer was: "a) This person is likely to be lactose intolerant. One primary variant for lactose intolerance is rs4988235, while another one is rs182549. For both of these, the genotype to be lactose intolerant is C/C. This person had the C/C genotype for both sites.

Though it looks like at the second site the genotype is G/G, this is reading from the positive strand. The negative strand [which is used on SNPpedia, and is the transcribed strand], would be C/C.

b) Geographical distribution for the allele frequency of rs182549

The Minor allele frequency is 0 in Africa, and southern Europe and Asia, while the minor allele is more prevalent (even becomes major) in Eastern Europe and Western US. Minor allele is slightly prevalent in northern South America."

Example commands

Tuesday, Apr 18, in class exercise

Pick either your favorite gene or favorite phenotype. If the latter, pick a gene associated with that phenotype. Search the 23andMe file to discover:

  1. The number of variants annotated against that gene.
  2. The number of variants predicted to have an effect on gene function.
  3. Compare the number you find to the number in ExAC. Why is there a difference?
  4. For all variants in #2, search clinvar to see if any are known to affect the phenotype.

What I've done to prepare the vcf file

Feel free to ignore this section -- it's only here to document what I've done for my own future reference, and for any interested student.

1. 23andMe format was converted to vcf format.

2. I merged sites with 1000 genomes in order to get reference and alternate alleles at each site.

3. I annotated the resulting file with snpEff.