load_BrickContainer: Create a BrickContainer object from a JSON file

View source: R/BrickContainer_functions.R

load_BrickContainerR 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)


koustav-pal/HiCBlocks documentation built on Oct. 29, 2022, 8:17 a.m.