Skip to contents

Open a .hic or .cool file for reading

Usage

File(path, resolution = NULL, matrix_type = "observed", matrix_unit = "BP")

Arguments

path

path to the file to be opened (Cooler URI syntax is supported).

resolution

matrix resolution. Required when file is in .hic format.

matrix_type

type of the matrix to be opened. Should be one of "observed", "oe" or "expected".

matrix_unit

unit of the matrix to be opened. Should be one of "BP", "FRAG".

Value

a file handle.

Examples

if (FALSE) { # \dontrun{
File("interactions.cool")
File("interactions.mcool::/resolutions/100000")
File("interactions.mcool", 100000)
File("interactions.hic", 100000)
} # }