findOverlappingElements: Find overlaps between guides and annotated elements

Description Usage Arguments Value Examples

View source: R/MAUDE.R

Description

Finds guides that overlap the elements of a BED-like data.frame (e.g. open chromatin regions) and returns a new data.frame containing those overlaps

Usage

1
2
3
findOverlappingElements(guides, elements, guides.pos = "pos",
  guides.chr = "chr", elements.start = "st", elements.end = "en",
  elements.chr = "chr")

Arguments

guides

a data.frame containing guide information including the guides genomic position in a column named guides.pos

elements

a data.frame containing element information, as in a BED file, including the element's genomic start, end, and chromosome in columns named elements.start, elements.end, and elements.chr

guides.pos

the name of the column in guides that contains the genomic position targeted by the guide (defaults to "pos")

guides.chr

the name of the column in guides that contains the genomic chromosome targeted by the guide (defaults to "chr")

elements.start

the name of the column in elements that contains the start coordinate of the element (defaults to "st")

elements.end

the name of the column in elements that contains the start coordinate of the element (defaults to "en")

elements.chr

the name of the column in elements that contains the start coordinate of the element (defaults to "chr")

Value

Returns a new data.frame containing the intersection of elements and guides

Examples

1
annotatedGuides = findOverlappingElements(myGuides, myElements)

klarman-cell-observatory/MAUDE documentation built on Nov. 4, 2019, 3:53 p.m.