R/valAlleles.R

Defines functions valAlleles

# This function validates if alleles are in the correct format.


valAlleles <- function(al) {

    # allowed characters
    dict = c("A","T","G","C")

    al_el = unique(unlist( strsplit(al, "") ))

    o1 = length( setdiff( al_el, dict ) )
    o2 = list(setdiff( al_el, dict ))
    return( list(o1,o2) )

}

Try the metaCCA package in your browser

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

metaCCA documentation built on Nov. 8, 2020, 10:58 p.m.