Description Usage Arguments Value Examples
convert a GRanges to a JSON query for mongodb
1 2 3 4 | grConverter(
queryGRange,
cfields = c(chrom = "chrom", start = "chromStart", end = "chromEnd")
)
|
queryGRange |
a |
cfields |
a named character(3) vector with names 'chrom', 'start', 'end'; the element values will be used to name document fields in the query |
a JSON document generated by rjson::toJSON
1 2 | gr = GenomicRanges::GRanges('chr1', IRanges(1,25000))
grConverter(gr, cfields=c(chrom='chr', start='start', end='end'))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.