R/update.reference.info.R

update.reference.info <- function(ref.info, snps){

  ref.info <- ref.info[ref.info$SNP %in% snps, ]
  if(nrow(ref.info) == 0){
    msg <- 'No SNP left'
    stop(msg)
  }

  rownames(ref.info) <- ref.info$SNP

  ref.info

}

Try the SCAT package in your browser

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

SCAT documentation built on May 2, 2019, 1:24 p.m.