Brick_matrix_issparse {HiCBricks} | R Documentation

## Check if a matrix for a chromosome pair is sparse.

### Description

Check if a matrix for a chromosome pair is sparse.

### Usage

    Brick_matrix_issparse(Brick = NULL, chr1 = NULL, chr2 = NULL)

### Arguments

`Brick` | Required. A string specifying the path to the Brick store created with CreateBrick.
`chr1` | Required. A character vector of length 1 specifying the chromosome corresponding to the rows of the matrix
`chr2` | Required. A character vector of length 1 specifying the chromosome corresponding to the columns of the matrix

### Value

Returns a logical vector of length 1, specifying if a matrix was loaded as a sparse matrix.

### Examples

    Brick.file <- system.file("extdata", "test.hdf", package = "HiCBricks")
    Brick_matrix_issparse(Brick = Brick.file, chr1 = "chr19", chr2 = "chr19")

[Package HiCBricks version 1.0.0 Index]