Nothing
#' @title Remove Sequences
#' @description Remove sequences not used by samples.
#'
#' @param g a \linkS4class{gtypes} object.
#'
#' @return a new \linkS4class{gtypes} object with unused sequences removed.
#'
#' @author Eric Archer \email{eric.archer@@noaa.gov}
#'
#' @export
#'
removeSequences <- function(g) {
if(is.null(getSequences(g))) return(g)
haps <- getAlleleNames(g)
g@sequences <- g %>%
getLociNames() %>%
purrr::map(function(x) getSequences(g)[[x]][haps[[x]]]) %>%
stats::setNames(names(haps)) %>%
as.multidna()
g
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.