isSymbolic {StructuralVariantAnnotation} | R Documentation |
Determining whether the variant is a symbolic allele.
isSymbolic(x, ...) ## S4 method for signature 'CollapsedVCF' isSymbolic(x, ..., singleAltOnly = TRUE) ## S4 method for signature 'ExpandedVCF' isSymbolic(x, ...)
x |
A VCF object. |
... |
Internal parameters. |
singleAltOnly |
Whether only single ALT values are accepted. Default is set to TRUE. |
The function takes a VCF object as input, and returns a logical value for each row, determining whether the variant is a symbolic allele.
A logical list of which the length is the same with the input object.
CollapsedVCF
: Determining whether a CollapsedVCF object is a symbolic
allele. Only single ALT values are accepted.
ExpandedVCF
: Determining whether a ExpandedVCF object is a symbolic
allele
vcf.file <- system.file("extdata", "gridss.vcf", package = "StructuralVariantAnnotation") vcf <- VariantAnnotation::readVcf(vcf.file, "hg19") isSymbolic(vcf)