View source: R/breakPafAlignment.R
breakPafAlignment | R Documentation |
Function to break PAF alignment into matching bases between query and target sequence. In addition, locations of inserted bases in query and target sequence can be reported as well.
breakPafAlignment(
paf.aln = NULL,
min.deletion.size = 50,
min.insertion.size = 50,
collapse.mismatches = TRUE,
report.sv = TRUE
)
paf.aln |
A |
min.deletion.size |
A minimum size (in base pairs) of a deletion to be retained. |
min.insertion.size |
A minimum size (in base pairs) of an insertion to be retained. |
collapse.mismatches |
Set to |
report.sv |
Set to |
A list
of tibble
objects storing matched ('M') alignments as well as structurally variable ('SV') bases if 'report.sv' is TRUE.
David Porubsky
## Get PAF to break
paf.file <- system.file("extdata", "test2.paf", package = "SVbyEye")
## Read in PAF alignment
paf.aln <- readPaf(paf.file = paf.file)
## Break PAF alignment at indels of 1 kbp and longer
breakPafAlignment(paf.aln = paf.aln, min.deletion.size = 1000, min.insertion.size = 1000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.