BrickContainer_list_chromosomes: Return the descriptive name of the BrickContainer

Description Usage Arguments Value Examples

View source: R/BrickContainer_functions.R

Description

BrickContainer_list_chromosomes returns the chromosomes available in the BrickContainer

Usage

1

Arguments

Brick

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

lengths

Default FALSE If TRUE, will also return the chromosomal lengths

Value

If lengths is FALSE, only the chromosome names are returned. If lengths is TRUE, a data.frame containing the chromosome names and their lengths is provided.

Examples

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

out_dir <- file.path(tempdir(), "BrickContainer_list_chromosome_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)

BrickContainer_list_chromosomes(My_BrickContainer)

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