R/update.ref.snps.R

update.ref.snps <- function(ref.snps, exc.snps){
  
  if(length(exc.snps) == 0){
    return(ref.snps)
  }
  
  ref.snps <- setdiff(ref.snps, exc.snps)
  if(length(ref.snps) == 0){
    msg <- "All SNPs excluded in update.ref.snps"
    stop(msg)
  }
  ref.snps
  
}

Try the ARTP2 package in your browser

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

ARTP2 documentation built on May 2, 2019, 3:38 p.m.