gintervals.liftover | R Documentation |
Converts intervals from another assembly to the current one.
gintervals.liftover(intervals = NULL, chain = NULL)
intervals |
intervals from another assembly |
chain |
name of chain file or data frame as returned by 'gintervals.load_chain' |
This function converts 'intervals' from another assembly to the current one. Chain file instructs how the conversion of coordinates should be done. It can be either a name of a chain file or a data frame in the same format as returned by 'gintervals.load_chain' function.
The converted intervals are returned. An additional column named 'intervalID' is added to the resulted data frame. For each interval in the resulted intervals it indicates the index of the original interval.
A data frame representing the converted intervals.
gintervals.load_chain
, gtrack.liftover
,
gintervals
gdb.init_examples()
chainfile <- paste(.misha$GROOT, "data/test.chain", sep = "/")
intervs <- data.frame(
chrom = "chr25", start = c(0, 7000),
end = c(6000, 20000)
)
gintervals.liftover(intervs, chainfile)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.