R/removeSNPs.R

Defines functions removeSNPs

Documented in removeSNPs

removeSNPs <-
function(m, snps){

  message("removing SNPs")
  width(m) <- 2
  ov <- findOverlaps(m, snps)
  m <- m[-unique(queryHits(ov))]
  n=length(unique(queryHits(ov)))
  message(sprintf("%d (%.1f%s) CpGs removed", n, 100*(n/length(m)), "%"))
  width(m) <- 1
  m

}

Try the MethylSeekR package in your browser

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

MethylSeekR documentation built on Nov. 8, 2020, 6:57 p.m.