variants | R Documentation |
Call substitutions and indels from contigs
Calls substitutions from contigs by comparing DNAStringSet ref against reference sequence ref via RSeqLib::BWA
The caller is IUPAC "ambiguity code aware" meaning that for every instance of ambiguity in the query and reference it will output the cartesian product of all mismatching variants (iupac = TRUE) otherwise it will treat those bases literally.
Note: not recommended to use on reads, only for contigs, i.e. will not scale to millions of reads
variants(query, ref, expand.iupac = TRUE, verbose = FALSE)
query |
DNAStringSet of query |
ref |
DNASTringSet of ref |
expand.iupac |
logical flag (TRUE) specifying whether to expand iupac for computing SNV in query and reference |
GRanges in ref coordinates of SNV and indels
Marcin Imielinski
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.