GInteractions-subsetByFeatures-methods: Subset a GInteractions object by features

Description Usage Arguments Value Examples

Description

Subsets interactions for which at least one of the anchors overlaps with a given GRanges object. Alternatively, subsets interactions based on annotated feature IDs for a particular feature.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
subsetByFeatures(GIObject, features, feature.class = NULL)

## S4 method for signature 'GInteractions,GRanges,missing'
subsetByFeatures(GIObject, features, feature.class = NULL)

## S4 method for signature 'GInteractions,GRangesList,missing'
subsetByFeatures(GIObject, features, feature.class = NULL)

## S4 method for signature 'GInteractions,character,character'
subsetByFeatures(GIObject, features, feature.class = NULL)

Arguments

GIObject

A GInteractions object

features

A GRanges or GRangesList object, or a character vector containing IDs of annotated features, e.g. promoter IDs.

feature.class

If ‘features’ is a character vector, the corresponding feature name, e.g. 'promoter'.

Value

a subsetted GInteractions object

Examples

1
2
3
4
data('hic_example_data')
data('mm9_refseq_promoters')
ids <- names(mm9_refseq_promoters[1:10])
subsetByFeatures(hic_example_data, ids, 'promoter')

GenomicInteractions documentation built on Nov. 8, 2020, 8:19 p.m.