Add columns to query with distance to nearest subject and subject id(s)
1 | addNearest(query, subject, id = "name", prefix = "subject")
|
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" |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.