Description Usage Arguments Value Examples
Get the type of variant given one or more reference alleles and the corresponding variant alleles.
1 | variantType(ref, alt)
|
ref |
the reference alleles |
alt |
the alternate (variant) alleles |
variant type for each ref/alt pair, one of:
snp (single nucleotide polymorphism)
mnp (multiple nucleotide polymorphism)
ins (insertion)
del (deletion)
mix (some combination of the above)
1 2 3 | ref = c("A", "A", "AA", "AT", "A", "AA", "AA", "AA", "ATTA", "AAA", "A", "TAAA")
alt = c("C", "C,G", "CT", "A", "AT", "C", "CAT", "TAAC", "ATA", "AATA", "T,AT", "TAA,TAAAA")
print(cbind(ref, alt, variantType(ref, alt)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.