R/update.raw.geno.R

update.raw.geno <- function(raw.geno, exc.snps){
  
  if(length(exc.snps) == 0){
    return(raw.geno)
  }
  
  id <- which(!(colnames(raw.geno) %in% exc.snps))
  if(length(id) == 0){
    msg <- "All SNPs are excluded in update.raw.geno"
    stop(msg)
  }
  
  raw.geno <- raw.geno[, id, drop = FALSE]
  gc()
  raw.geno
  
}

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.