readVCF | R Documentation |
Filtering the patient variants in VCF format annotated by VEP
readVCF(
sampleName,
filter = "",
geneQuality = 20,
readDepth = 10,
variants,
assembly = "assembly37",
distSplicThreshold = 1000,
synonymous = TRUE
)
sampleName |
character name with the patient code as is written in the VCF file. |
filter |
character name with the desired filter to select the variants. It should be as is written in the FILTER column in the vcf file. |
geneQuality |
numeric value indicating the desired GQ threshold. Default 20. |
readDepth |
numeric value indicating the desired DP threshold. Default 10. |
variants |
object of class vcfR-class with the patient variants using the read.vcfR function from vcfR package. |
assembly |
Genome assembly used. Default assembly human GRCh37. |
distSplicThreshold |
integer indicating the maximum distance in base pairs (bp) allowed between intronic variants and the intron-exon boundary. Default 1000. |
synonymous |
logical indicating whether to include the synonymous variants. Default TRUE. |
returns an object of class vcfR-class.
library(vcfR)
vcfFile = paste(system.file("extdata/example", package = "ClinPrior"),"HG001_GRCh37_1_22_v4.2.1_benchmark.vep01.KCNQ2Met546Thr.vcf.gz",sep="/")
variants <- read.vcfR(vcfFile)
variantsFiltered <- readVCF(sampleName = "HG001",variants=variants)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.