scripts/functional_vep.R

getFunctional<- function(vep_gr){
  vep_gr <- vep_gr[which(grepl(pattern = "GeneID", values(vep_gr)$Gene))]
  ns_inds <- which(grepl(pattern="NON_SYNONYMOUS_CODING",  values(vep_gr)$Consequence))
  stop_inds <- which(grepl(pattern="STOP_GAINED",  values(vep_gr)$Consequence))
  inds <- c(ns_inds, stop_inds)
  vep_gr <- vep_gr[inds]
  return(vep_gr)
}

Try the VariantTools package in your browser

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

VariantTools documentation built on Nov. 8, 2020, 8:03 p.m.