powered by
genotypeToCharacter(geno, alleleA=NULL, alleleB=NULL, sort=TRUE)
geno
alleleA
alleleB
If geno is a matrix, length of alleleA and alleleB should be equal to the number of rows of geno.
If alelleA or alleleB is NULL, returned genotypes will have values "A/A", "A/B", or "B/B".
alelleA
NULL
GenotypeData
geno <- matrix(c(0,1,2,0,1,2,1,NA), nrow=4) alleleA <- c("A","T","C","T") alleleB <- c("C","G","G","A") genotypeToCharacter(geno, alleleA, alleleB)
Run the code above in your browser using DataLab