View source: R/intervals-core.R
| gintervals.from_strings | R Documentation |
Creates a set of 1D intervals by parsing UCSC-style coordinate strings.
gintervals.from_strings(regions = NULL)
regions |
a character vector of region strings. Accepted formats per
element: |
Parses strings of the form "chrom:start-end" ("chrom:start..end"
is also accepted) into a 1D intervals data frame. A chromosome-only string
such as "chr1" expands to the full chromosome extent. An optional
trailing strand suffix ":+" or ":-" adds a "strand" column.
Coordinates are zero-based and half-open, matching the convention used by
gintervals.
A data frame representing the intervals, sorted as by
gintervals. A "strand" column is added only when at least one
region specifies a strand.
gintervals, gintervals.2d
gdb.init_examples()
gintervals.from_strings("chr1:1000-2000")
gintervals.from_strings(c("chr1:1000-2000:+", "chr2:50-60:-"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.