knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
Typically, data resulting from HiC experiments is analyzed either at the fragment level or summarized into genomic bins. Several analysis pipelines exist that enable users to characterize different aspects of their data, such as TADs, loops and compartments. However, each software uses their own formats and standarization of formats is currently lacking. This package provides a functions to convert between different software formats.
Currently,
library(HiConvert)
The code below imports a bam file into R and stores it in a GenomicInteractions file.
in_file <- system.file( "extdata", "bam", "SRR400264_subset.bam", package="HiConvert", mustWork=TRUE ) imported <- hic_import(in_file) imported
The following code export a GI file into a bedpe.
hic_export( imported, file="prueba.bedpe" ) head( readLines( "prueba.bedpe" ) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.