Read the file, produce an InteractionSet object.

parseTabular(path, sep = '\t')

Arguments

path

A path to a tabular file.

sep

The separator of the tabular file. Default to tabulation.

Value

An InteractionSet object.

Details

Accepts a tabular file with chromosome, position 1, position 2, and multiple replicate columns listing interaction counts. Null interactions do not have to be listed. Values must be separated by tabulations. The header must be chromosome position 1 position 2 x.y x.y x.y ... with x replaced by condition names and y replaced by replicate names.

Examples

path <- system.file("extdata", "hicsample_21.tsv", package = "HiCParser")
object <- parseTabular(path, sep = "\t")
#> Parsing '/__w/_temp/Library/HiCParser/extdata/hicsample_21.tsv'.