View source: R/liftRangesToAlignment.R
liftRangesToAlignment | R Documentation |
Function to lift coordinates to the alignment in PAF format.
liftRangesToAlignment(
paf.table,
gr = NULL,
direction = "query2target",
report.cigar.str = FALSE
)
paf.table |
A |
gr |
A |
direction |
One of the possible, lift ranges from query to target 'query2target' or vice versa 'target2query'. |
report.cigar.str |
Set to 'TRUE' if CIGAR string should be reported as well (Slow if >1000 regions). |
A GRanges-class
object with resized original set of ranges.
David Porubsky
## Define range(s) to lift
roi.gr <- as("chr17:46645907-46697277", "GRanges")
## Get PAF alignment to lift to
paf.file <- system.file("extdata", "test_lift1.paf", package = "SVbyEye")
## Read in PAF
paf.table <- readPaf(paf.file = paf.file, include.paf.tags = TRUE, restrict.paf.tags = "cg")
## Lift target range to query coordinates
liftRangesToAlignment(paf.table = paf.table, gr = roi.gr, direction = "target2query")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.