R/update.ref.snps.R

Defines functions update.ref.snps

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
  
}
zhangh12/ARTP2 documentation built on Aug. 16, 2019, 7:27 p.m.