Learn R Programming

MPR.genotyping (version 0.8)

base2Geno_ori: Formatting the Matrix of SNP to Int Type(NA)

Description

formatting the matrix of SNP to int type(NA)

Usage

base2Geno_ori(baseData = NULL, allele.matrix = NULL)

Arguments

baseData

the matrix of snp

allele.matrix

the allele of each snp site

Value

returned a matrix which have same size of matrix of snp, but "A","G","C","T" become "0","NA","1".

Details

the snp from parent1 will become 0, the snp is not detected by sequencing will become NA, the snp from parent2 will become 1.

See Also

base2Geno

Examples

Run this code
# 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_ori(base,allele)
# }

Run the code above in your browser using DataLab