GetRelDistNearest: Return list of nearest distances between entries from two...

Description Usage Arguments Details Value Author(s)

View source: R/helper.R

Description

Return list of nearest distances between entries from two lists of GRanges objects. See 'Details'.

Usage

1
GetRelDistNearest(lst1, lst2)

Arguments

lst1

A list of GRanges object.

lst2

A list of GRanges object.

Details

The function uses GenomicRanges::distanceToNearest to return the nearest distances between the start positions of a GRanges object from lst1 and the corresponding GRanges object from lst2 with the same name (based on field seqnames). Note that distances are given as signed integers: Negative distances correspond to pos(gr1) < pos(gr2), positive distances correspond to pos(gr1) > pos(gr2).

Value

A list of integer vectors. See 'Details'.

Author(s)

Maurits Evers, maurits.evers@anu.edu.au


mevers/RNAModR documentation built on Nov. 17, 2019, 9:11 a.m.