GetIntersectingFeatures: Find intersecting regions between two objects

Description Usage Arguments Value Examples

View source: R/utilities.R

Description

Intersects the regions stored in the rownames of two objects and returns a vector containing the names of rows that intersect for each object. The order of the row names return corresponds to the intersecting regions, i.e. the nth feature of the first vector will intersect the nth feature in the second vector. A distance parameter can be given, in which case features within the given distance will be called as intersecting.

Usage

1
2
3
4
5
6
7
8
GetIntersectingFeatures(
  object.1,
  object.2,
  assay.1 = NULL,
  assay.2 = NULL,
  distance = 0,
  verbose = TRUE
)

Arguments

object.1

The first Seurat object

object.2

The second Seurat object

assay.1

Name of the assay to use in the first object. If NULL, use the default assay

assay.2

Name of the assay to use in the second object. If NULL, use the default assay

distance

Maximum distance between regions allowed for an intersection to be recorded. Default is 0.

verbose

Display messages

Value

Returns a list of two character vectors containing the row names in each object that overlap each other.

Examples

1
2
3
4
5
6
GetIntersectingFeatures(
  object.1 = atac_small,
  object.2 = atac_small,
  assay.1 = 'peaks',
  assay.2 = 'bins'
)

Signac documentation built on Dec. 11, 2021, 9:55 a.m.