select_subset: Get a matrix from a BED-like entry

View source: R/utils.R

select_subsetR Documentation

Get a matrix from a BED-like entry

Description

Extracts a square symmetric matrix around the diagonal from a contacts object.

Usage

select_subset(exp, chrom, start, end)

Arguments

exp

The contacts objects produced by construct.experiment()

chrom

A character of length 1: the chromosome.

start

An integer of length 1 noting the start position in bp.

end

An integer of length 1 noting the end position in bp.

Value

A list with the X and Y coordinates and a matrix Z containing the contacts at these coordinates.

Examples

## Not run: 
# Get the TP53-locus in an experiment mapped to hg19
mat <- select_subset(WT, "chr17", 75e5, 76e5)

# Plot the region
image(mat)

## End(Not run)

robinweide/GENOVA documentation built on March 14, 2024, 11:16 p.m.