subset_interactions: Choose a chromosome and a range within which InteractionSet...

Description Usage Arguments Value Examples

View source: R/import_and_subset.R

Description

The interactions of the InteractionSet will be subsetted, but all regions (i.e. the annotation) will be retained. This is only useful if you want to add interactions in the other regions later. Otherwise, especially for direct conversion to matrices, it is more useful to subset the whole InteractionSet, including the regions.

Usage

1
subset_interactions(Iset, chr, from = NULL, to = NULL)

Arguments

Iset

The InteractionSet object to be subsetted.

chr

The chromosome for which interactions should be retained.

from

Optional. The starting point of the interactions to be retained. If NULL, the chromosome beginning is selected.

to

Optional. The ending point of the interactions to be retained. If NULL, the chromosome end is selected.

Value

An InteractionSet object containing only those interactions specified, but all original genomic annotation.

Examples

1
# chr2_Iset <- subset_interactions(Iset, chr=2)

AnnikaGable/chromium documentation built on May 5, 2019, 6:04 a.m.