Description Usage Arguments Value Examples
Function to filter out SNPs from ExAC database
1 | trimSnps(vcf, maft = 0.1)
|
vcf |
readVcf object from ExAC database read over a certain range |
maft |
minor allele frequency cutoff for filtering |
snps GenomicRanges object with positions of putative heterozygous SNPs info data fram with metadata for putative heterozygous SNPs
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
vcfFile <- "../data-raw/ExAC.r0.3.sites.vep.vcf.gz"
# Filter for SNPs over all of chr1
testRanges <- GRanges(seqnames='1', IRanges(start = 0, width=249250621))
param = ScanVcfParam(which=testRanges)
vcf <- readVcf(vcfFile, "hg19", param=param)
temp <- trimSnps(vcf)
snps <- temp$snps
info <- temp$info
head(info)
head(snps)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.