parseCigarString | R Documentation |
Function to parse CIGAR string into a set interval ranges.
parseCigarString(cigar.str = NULL, coordinate.space = "reference")
cigar.str |
A character string containing alignment represented as a CIGAR string. |
coordinate.space |
A used defined coordinate space given CIGAR should be parsed against, either 'reference' or 'query'. |
A IRangesList
object.
David Porubsky
## Get PAF to process
paf.file <- system.file("extdata", "test3.paf", package = "SVbyEye")
## Read in PAF
paf.table <- readPaf(paf.file = paf.file, include.paf.tags = TRUE, restrict.paf.tags = "cg")
## Parse CIGAR in reference (target) space
parseCigarString(cigar.str = paf.table$cg)
## Parse CIGAR in query space
parseCigarString(cigar.str = paf.table$cg, coordinate.space = "query")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.