R/getEnds.R

#' convert a galp into a gr of 5' cuts
#' 
#' @param gr  an intermediate GRanges from a GAlignmentPairs
#'
#' @return    a gr of width-1 cuts
#'
#' @import    GenomicAlignments 
#' 
#' @export
getEnds <- function(gr) { 
  sort(c(resize(gr, 1, fix='start'),
         resize(gr, 1, fix='end')))
}
RamsinghLab/ATACseeker documentation built on May 8, 2019, 8:05 a.m.