#' 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)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.