find_overlapping_coordinates: Find peaks that overlap a specific genomic location

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Find peaks that overlap a specific genomic location

Usage

1
find_overlapping_coordinates(coord_list, coord, maxgap = 0)

Arguments

coord_list

A list of coordinates to be searched for overlap in the form chr_100_2000.

coord

The coordinates that you want to find in the form chr1_100_2000.

maxgap

The maximum distance in base pairs between coord and the coord_list that should count as overlapping. Default is 0.

Value

A character vector of the peaks that overlap coord.

Examples

1
2
3
4
5
  test_coords <- c("chr18_10025_10225", "chr18_10603_11103",
                   "chr18_11604_13986",
                   "chr18_157883_158536", "chr18_217477_218555",
                   "chr18_245734_246234")
  find_overlapping_coordinates(test_coords, "chr18:10,100-1246234")

cicero documentation built on Dec. 7, 2018, 6 p.m.