cigar2ranges | R Documentation |
Function to load CIGAR string reported in PAF alignments into a set of genomic ranges.
cigar2ranges(
paf.table = NULL,
coordinate.space = "reference",
min.insertion.size = 50,
min.deletion.size = 50,
collapse.mismatches = TRUE
)
paf.table |
A |
coordinate.space |
A used defined coordinate space given CIGAR should be parsed against, either 'reference' or 'query'. |
min.insertion.size |
A minimum size (in base pairs) of an insertion to be retained. |
min.deletion.size |
A minimum size (in base pairs) of a deletion to be retained. |
collapse.mismatches |
Set to |
A GRanges
object.
David Porubsky
## Get PAF to process
paf.file <- system.file("extdata", "test3.paf", package = "SVbyEye")
## Parse CIGAR into a set of genomic ranges
paf.table <- readPaf(paf.file = paf.file)
cigar2ranges(paf.table = paf.table)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.