R/update.allele.info.R

update.allele.info <- function(allele.info, exc.snps){
  
  if(length(exc.snps) == 0){
    return(allele.info)
  }
  
  id <- which(!(allele.info$SNP %in% exc.snps))
  if(length(id) == 0){
    msg <- "All SNPs excluded in update.allele.info"
    stop(msg)
  }
  allele.info <- allele.info[id, ]
  allele.info
  
}

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.