powered by
formatting the matrix of snp to int type
base2Geno(baseData = NULL, allele.matrix = NULL)
the matrix of snp
the allele of each snp site
returned a matrix which have same size of matrix of snp, but "A","G","C","T" become "1","0","-1".
the snp from parent1 will become 1, the snp is not detected by sequencing will become 0, the snp from parent2 will become -1.
globalMPRByMarkers
# NOT RUN { base=matrix(c("A",NA,"G", NA,"T","A", "C","G",NA),3,3,byrow=TRUE) allele=matrix(c("A","G", "T","A", "C","G"),3,2,byrow=TRUE) base2Geno(base,allele) # }
Run the code above in your browser using DataLab