varbase | R Documentation |
Takes GRanges or GappedAlignments object "reads" and uses cigar, MD, seq fields to return variant bases and ranges
Returns GRangesList (of same length as input) of variant base positions with character vector $varbase field populated with variant bases for each GRanges item in grl[[k]], with the following handling for insertions, deletions, and substitution GRange's:
Substitutions: nchar(gr$varbase) = width(gr) of the corresponding var Insertions: nchar(gr$varbase)>=1, width(gr) ==0 Deletions: gr$varbase = ”, width(gr)>=1
Each GRanges also has $type flag which shows the cigar string code for the event i.e. S = soft clip –> varbase represents clipped bases I = insertion –> varbase represents inserted bases D = deletion –> varbase is empty X = mismatch –> varbase represents mismatched bases
varbase(reads, soft = TRUE, verbose = TRUE)
reads |
GenomicRanges or GRangesList or GappedAlignments or data.frame/data.table reads to extract variants from |
soft |
boolean Flag to include soft-clipped matches (default = TRUE) |
verbose |
boolean verbose flag (default = TRUE) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.