load_BrickContainer {HiCBricks} | R Documentation

## Create a BrickContainer object from a JSON file

### Description

`load_BrickContainer` creates a BrickContainer object from a JSON file

### Usage

    load_BrickContainer(config_file = NULL, project_dir = NULL)

### Arguments

`config_file` | Default NULL A character string of length 1 specifying the path to the path to the configuration json created using `Create_many_bricks`
`project_dir` | Default NULL A character string of length 1 specifying the path to the path to the configuration json created using `Create_many_bricks`

### Value

An object of class BrickContainer

### Examples

    Bintable.path <- system.file("extdata",
    "Bintable_100kb.bins", package = "HiCBricks")
    out_dir <- file.path(tempdir(), "BrickContainer_load_test")
    dir.create(out_dir)
    Create_many_Bricks(BinTable = Bintable.path,
      bin_delim = " ", output_directory = out_dir, file_prefix = "Test",
      experiment_name = "Vignette Test", resolution = 100000,
      remove_existing = TRUE)
    My_BrickContainer <- load_BrickContainer(project_dir = out_dir)

[Package HiCBricks version 1.10.0 Index]