Multiple_VCF {customProDB} | R Documentation |
Load multiple vcf files and output a GRange object with SNVs present in multiple samples.
Multiple_VCF(vcfs, share_num, ...)
vcfs |
a list of GRanges object which input from multiple VCF files using function InputVcf. |
share_num |
Two options, percentage format or sample number. |
... |
additional arguments |
This function allows to limit SNVs that are present in at least m out of n VCF files.
a GRange object that contains the shared variations
Xiaojing Wang
path <- system.file("extdata/vcfs", package="customProDB") vcfFiles<- paste(path, '/', list.files(path, pattern="*vcf$"), sep='') vcfs <- lapply(vcfFiles, function(x) InputVcf(x)) shared <- Multiple_VCF(vcfs, share_num=2)