isSNV: Determine if variants in a VCF object are SNPs

Description Usage Arguments Value See Also Examples

Description

Returns TRUE for variants that are SNVs and FALSE otherwise. For variants with multiple ALT alleles, only the FIRST is used.

Usage

1
isSNV(vcf)

Arguments

VCF

an object inheriting from the VCF class

Value

logical vector with the same length as vcf

See Also

VCF-class

Examples

1
2
3
4
5
library(VariantAnnotation)
fl <- system.file("extdata", "chr22.vcf.gz", package="VariantAnnotation")
param <- ScanVcfParam(fixed="ALT", geno=c("GT", "GL"), info=c("LDAF"))
vcf = readVcf(fl,"hg19",param=param)
table(isSNV(vcf))

seandavi/MutationTools documentation built on May 29, 2019, 4:32 p.m.