collapsePaf | R Documentation |
This function takes PAF alignments stored in using tibble
object and collapse them
based on grouping variable defined in 'collapse.by' that have to be a valid column name
present in 'paf.table'.
collapsePaf(paf.table, collapse.by = NULL)
paf.table |
A |
collapse.by |
A user defined column name present in 'paf.table' to serve as grouping variable. |
A tibble
of collapsed 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")
## Split PAF alignments into user defined bins
paf.table <- pafToBins(paf.table = paf.table, binsize = 1000)
## Collapse PAF alignments by bin id
collapsePaf(paf.table = paf.table, collapse.by = "bin.id")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.