R/getAllelesFromGenotypes.R

Defines functions getAllelesFromGenotypes

Documented in getAllelesFromGenotypes

#' @title getAllelesFromGenotypes
#' @description Get alleles from genotypes
#' @param g genotypes
#' @return alleles
#' @export
getAllelesFromGenotypes<-function(g){
   return(unique(unlist(strsplit(g,"/"))))
}

Try the forensIT package in your browser

Any scripts or data that you put into this service are public.

forensIT documentation built on April 4, 2025, 12:22 a.m.