View source: R/subsetPafAlignments.R
subsetPafAlignments | R Documentation |
This function takes loaded PAF alignments using readPaf
function and then subsets
as well as cuts PAF alignments at desired target coordinates. This function can only be applied
to PAF alignments containing a single query and target sequence.
subsetPafAlignments(paf.table, target.region = NULL)
paf.table |
A |
target.region |
A user defined target region either as character string ('chr:start-end') or as
a |
A tibble
of subsetted PAF alignments.
David Porubsky
## Get PAF to plot
paf.file <- system.file("extdata", "test1.paf", package = "SVbyEye")
## Read in PAF
paf.table <- readPaf(paf.file = paf.file, include.paf.tags = TRUE, restrict.paf.tags = "cg")
## Subset PAF alignments based on desired target region
subsetPafAlignments(paf.table = paf.table, target.region = "target.region:19050000-19200000")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.