This preview shows page 1. Sign up to view the full content.
Unformatted text preview: , that reads in the large scale genotype data set located at infile , recodes the SNPs in 0, 1, or 2 based on the number of minor alleles for each SNP, and outputs the recoded data as a tab delimitted le in outfile (keeping all headers and row names). The minor allele is the allele that appears less for the particular SNP under consideration. For instance, your code should be able to to run by typing: recodeSNP("http://www.bios.unc.edu/~mwu/bios735/data/SNPdata.txt", "newdata.txt") (note that the in the url above may have gotten screwed up in L A T E Xagain). Be careful that some SNPs may be nonpolymorphic (i.e. everybody has the same genotype) in which case the minor allele is not observed and everyone has no copies of the minor allele for the SNP and should be scored as 0s. 1...
View Full Document
This note was uploaded on 11/18/2011 for the course BIOS 735 taught by Professor Staff during the Spring '10 term at UNC.
- Spring '10