Skip to contents

The HicproFile class describes a BiocFile object, pointing to the location of a HiC-Pro-generated matrix file and containing 4 additional slots:

  1. bed: path to the matching .bed file generated by HiC-Pro;

  2. resolution: at which resolution the associated mcool file should be parsed ;

  3. pairsFile: the path (in plain character) to an optional pairs file (stored as a PairsFile object);

  4. metadata: a list metadata

HicproFile methods.

Arguments

path

String; path to the HiC-Pro output .matrix file (matrix file)

bed

String; path to the HiC-Pro output .bed file (regions file)

pairsFile

String; path to a pairs file

metadata

list.

object

A HicproFile object.

Slots

bed

Path to the matching .bed file generated by HiC-Pro

See also

Examples

hicproMatrixPath <- HiContactsData::HiContactsData('yeast_wt', 'hicpro_matrix')
#> see ?HiContactsData and browseVignettes('HiContactsData') for documentation
#> loading from cache
hicproBedPath <- HiContactsData::HiContactsData('yeast_wt', 'hicpro_bed')
#> see ?HiContactsData and browseVignettes('HiContactsData') for documentation
#> loading from cache
pairsPath <- HiContactsData::HiContactsData('yeast_wt', 'pairs.gz')
#> see ?HiContactsData and browseVignettes('HiContactsData') for documentation
#> loading from cache
hicpro <- HicproFile(
  hicproMatrixPath, bed = hicproBedPath, pairs = pairsPath ,
  metadata = list(type = 'example')
)
hicpro
#> HicproFile object
#> HiC-Pro files:
#>   $ matrix:   /github/home/.cache/R/ExperimentHub/19054ee69513_7837 
#>   $ regions:  /github/home/.cache/R/ExperimentHub/19053037a9bf_7838 
#> resolution: 1000 
#> pairs file: /github/home/.cache/R/ExperimentHub/190524de862e_7753 
#> metadata(1): type
resolution(hicpro)
#> [1] 1000
pairsFile(hicpro)
#>                                                  EH7703 
#> "/github/home/.cache/R/ExperimentHub/190524de862e_7753" 
metadata(hicpro)
#> $type
#> [1] "example"
#>