Files & Code
Updates
Week 6
- Goal: Start brainstorming which project I will complete. Thoroughly research project topics and formulate possible algorithms.
- Result: I have decided to do my project on the Relatedness Estimator. It seems interesting, but I haven't thought of a complete algorithm yet.
- Plan for next week: Start developing baseline algorithm.
- Grade: A
Week 7
- Goal: Develop baseline algorithm and start formulating my own algorithm that will improve upon the baseline algorithm.
- Result: I switched my project to Ancestry Mapping because I understand this topic more thoroughly and believe I can do a better job with this topic. I have started coding a semi functional baseline algorithm.
- Plan for next week: Finish baseline algorithm and start my own algorithm.
- Grade: A
Week 8
- Goal: Finish my own algorithm, so I can start analyzing data and comparing against the baseline. Make charts to show analysis of data.
- Result: Finished my algorithm and imported my output files for the baseline and my method into Excel. Currently analyzing my results and drawing conclusions.
- Plan for next week: Make powerpoint for presentation and present.
- Grade: A
Week 9
- Goal: Complete powerpoint for presentation and present on Friday.
- Result: Powerpoint completed and presented.
- Plan for next week: Put finishing touches on project and show Dat my code.
- Grade: A
Week 10
- Goal: Show Dat my working code for project.
- Result: Showed Dat my code.
- Plan for next week: Study for finals!
- Grade: A
About Me
Hello! My name is Ming Wei Lim, and I am a 3rd year Computer Science major at UCLA. I chose to take CS 124 because I was very curious to learn how computer science could be applied to biology. Below is my completed project for ancestry mapping. Feel free to leave a comment if you have any questions or thoughts! Enjoy!
Goal
- For some populations, each individual’s genome comes from multiple populations
- Goal of ancestry mapping is to identify which region originates from which population
- Easy: Global Ancestry Mapping with Known Populations
- Medium: Local Ancestry Mapping with Known Populations
Biological Problem & Motivation
- Admixture mapping: Finding regions with disproportional local ancestry
- Some diseases are more prevalent in some population than others
- E.g., multiple sclerosis is more prevalent in Europeans than in Africans
- Consider African with MS
- Family tree and historical patterns
Computational Problem
- Compare genotype SNPs for mystery individual against genotypes SNPs from 3 populations (data retrieved from HapMap)
- African (Luhya in Webuye, Kenya)
- Asian (Japanese in Tokyo, Japan & Han Chinese in Beijing, China)
- European (Toscani in Italia)
- Input: Sets of genotype SNPs from the 3 known populations and set of genotype SNPs from the mystery individual
- Output: String of 0’s (Unknown/Error), 1’s (Asian), 2’s (African), and 3’s (European) denoting the individual’s ancestry
Benchmarks
- Accuracy
- Given the mystery individual’s ancestry beforehand, how accurate are the results?
- What percentage of the results are 0’s (Unknown/Error)?
- Determine which population each region of SNPs belong to
Baseline Method
- Compare each SNP from the mystery individual to the corresponding SNP from an individual in each of the 3 populations
- If there is a match and the match is unique, then store the number (1, 2, or 3) corresponding to the population matched into an array
- Otherwise, store 0 in the array
- In order to reduce the amount of 0’s in the array, compare the mystery individual to multiple individuals in each of the 3 populations
- During this process, only focus on SNP positions where there’s a 0 in the array and find unique matches
Baseline Results & Analysis
- A lot of 0’s (Unknown/Error) in the results
- ~18% of results are 0’s in each test
- The trends of the results are correct but would like stronger numbers to support what we know about each individual
- E.g., want the results of the LWK individual to have more 2’s (LWK)
My Method
- Construct a frequency table for each known population.
- For each individual, slide a window over the SNPs and record which allele combinations occur and the frequencies of the occurrences
- Store allele combinations and frequencies into HashMap and update the HashMap as the window slides
- Slide window over SNPs for mystery individual
- Look up the frequency for the allele combination using the HashMaps constructed for each population
- Output the number (1, 2, or 3) for the corresponding population with the maximum frequency
- Otherwise, output 0 if multiple populations have the maximum frequency or the allele combination cannot be found in the HashMaps
My Method Results & Analysis
- Number of 0’s in results negligible
- Stronger results to support data
Local Mapping
- When I populate the HashMap, I am essentially performing local ancestry mapping
- The “windowing” technique shows which segment of SNPs belong to which populations
- Find out what population an allele combination belongs to by searching HashMap
Performance Analysis
- Runtime for baseline is O(a)
- a = # of SNPs * # of individuals in population
- Runtime for my method is O(b)
- b = # of SNPs in chromosome
- Constant time to retrieve items from HashMap
- It takes O(n) time to populate the HashMap
- n = # of SNPs * # of individuals in population
- Parameters will vary based on which chromosome I choose to test
- Different chromosomes have different number of SNPs which will affect the speed of the algorithms
- Chromosome 21 is used in results
Conclusions
- My method outperforms the baseline whenever a “pure” individual is tested
- Baseline holds up well when a “mixed” individual is tested
- Main limitation is accuracy
- Results could be stronger in order to support what we know about tested individual
- Hidden Markov Model and Viterbi Algorithm can be used to increase accuracy