filterPaf | R Documentation |
This function takes loaded PAF alignments using readPaf
function and perform
user defined filtering of input alignments based on mapping quality, alignment length, and
minimum alignments between target and query.
filterPaf(
paf.table,
min.mapq = 10,
min.align.len = 1000,
min.align.n = 1,
is.selfaln = FALSE,
min.selfaln.dist = 0
)
paf.table |
A |
min.mapq |
Minimum mapping quality to retain. |
min.align.len |
Minimum alignment length to retain. |
min.align.n |
Minimum number of alignments between a pair of sequences/regions. |
is.selfaln |
Set to |
min.selfaln.dist |
Keep alignment pairs with this or larger distance from each other (Applied only to FASTA self-alignments). |
A tibble
of filtered 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")
## Filter PAF alignments based on desired target region
filterPaf(paf.table = paf.table, min.align.len = 50000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.