addNearest: Add columns to query with distance to nearest subject and...

Description Usage Arguments

View source: R/utility.r

Description

Add columns to query with distance to nearest subject and subject id(s)

Usage

1
addNearest(query, subject, id = "name", prefix = "subject")

Arguments

query

Genomic regions to find nearest genes for as a GRanges, data.frame, or data.table with the columns "chr", "start", and "end"

id

Column name of the id field in subject to report as the nearest id(s). In case of ties, a comma separated list will be returned.

prefix

Append this string to names of the added columns

query

Genomic regions to find nearest genes for as a GRanges, data.frame, or data.table with the columns "chr", "start", and "end"


jeffbhasin/goldmine documentation built on Nov. 13, 2019, 9:11 a.m.