20 likes | 170 Views
Assignment 3: Arrays and Hashes. Write a program to read in the genotypes from a SNP chip. Read in the SNP ID's and the genotypes and store in arrays. Be sure to check the SNP ID for duplicate genotypes. Count the number of genotypes (AA, AB, BA, BB, "no call" and print out the total for each.
E N D
Assignment 3: Arrays and Hashes • Write a program to read in the genotypes from a SNP chip. Read in the SNP ID's and the genotypes and store in arrays. Be sure to check the SNP ID for duplicate genotypes. • Count the number of genotypes (AA, AB, BA, BB, "no call" and print out the total for each. • Submit your program to icon. • Modify your program to use hashes instead of arrays. Use the SNP ID as the key, and the genotype as the value. Submit this program to icon as well. • A sample input file is provided on the web site. • Due Fri, October 19th