R/hic_import.R

Defines functions hic_import

Documented in hic_import

#' Imports HiC file
#'
#' Takes a local bam file and load it to the environment as an GAlignment object
#'
#' @param file The path of the input file to read
#'
#' @return A GAlignmentPairs object
#' @export
#' @importFrom GenomicAlignments readGAlignmentPairs readGAlignments
#'
#' @examples
#' x <- hic_import("example.bam")
hic_import <- function(file) {
  readGAlignmentPairs(file = file, use.names = TRUE)
}
ComunidadBioInfo/HiConvert documentation built on Oct. 30, 2019, 5:44 a.m.