BrickContainer_unlink_resolution: Remove links to all Hi-C matrices for a given resolution.

Description Usage Arguments Value Examples

View source: R/BrickContainer_functions.R

Description

BrickContainer_unlink_resolution removes links to all files associated to a given resolution

Usage

1

Arguments

Brick

Required. A string specifying the path to the Brick store created with CreateBrick.

resolution

Required A string specifying the resolution to remove. This string must match the resolution values listed by BrickContainer_list_resolutions

Value

An object of class BrickContainer where the resolution and links to its associated files have been removed

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
Bintable.path <- system.file("extdata",
"Bintable_100kb.bins", package = "HiCBricks")

out_dir <- file.path(tempdir(), "BrickContainer_unlink_res_test")
dir.create(out_dir)

My_BrickContainer <- 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 <- Create_many_Bricks(BinTable = Bintable.path, 
    bin_delim = " ", output_directory = out_dir, file_prefix = "Test", 
    experiment_name = "Vignette Test", resolution = 40000, 
    remove_existing = TRUE)

BrickContainer_unlink_resolution(Brick = My_BrickContainer, 
resolution = 40000)

HiCBricks documentation built on Nov. 8, 2020, 7:45 p.m.