isSNV: Flag single nucleotide variants

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Flag single nucleotide variants

Usage

1
2
## S4 method for signature 'SeqVarGDSClass'
isSNV(gdsobj, biallelic=TRUE)

Arguments

gdsobj

A SeqVarGDSClass object with VCF data.

biallelic

A logical indicating whether only biallelic SNVs are considered.

Details

If biallelic=TRUE, a variant is considered a single nucleotide variant (SNV) if there is one reference allele and one alternate allele, each one base in length. If biallelic=FALSE, there may be multiple alternate alleles, each one base in length.

Setting biallelic=TRUE is considerably faster for large data sets.

Value

A logical vector indicating which variants are SNVs.

Author(s)

Stephanie Gogarten

See Also

SeqVarGDSClass, allele-methods, applyMethod

Examples

1
2
3
gds <- seqOpen(seqExampleFileName("gds"))
table(isSNV(gds))
seqClose(gds)

SeqVarTools documentation built on Nov. 22, 2020, 2 a.m.