base2Geno: Formatting the Matrix of SNP to Int Type

Description Usage Arguments Details Value See Also Examples

Description

formatting the matrix of snp to int type

Usage

1
base2Geno(baseData = NULL, allele.matrix = NULL)

Arguments

baseData

the matrix of snp

allele.matrix

the allele of each snp site

Details

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

Value

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

See Also

globalMPRByMarkers

Examples

1
2
3
4
5
6
7
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)

MPR.genotyping documentation built on May 2, 2019, 3:26 a.m.