View source: R/subsetPafAlignments.R
subsetPaf | R Documentation |
This function takes loaded PAF alignments using readPaf
function and then subsets
as well as cuts PAF alignments at desired target coordinates.
subsetPaf(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", "test_ava.paf", package = "SVbyEye")
## Read in PAF
paf.table <- readPaf(paf.file = paf.file, include.paf.tags = TRUE, restrict.paf.tags = "cg")
## Subset multiple PAF alignments based on desired target region
target.region <- "HG01358_2:100000-200000"
subsetPaf(paf.table, target.region = target.region)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.