1 / 2

Assignment 3: Arrays and Hashes

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.

greg
Download Presentation

Assignment 3: Arrays and Hashes

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 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

More Related