trimSnps: Function to filter out SNPs from ExAC database

Description Usage Arguments Value Examples

Description

Function to filter out SNPs from ExAC database

Usage

1
trimSnps(vcf, maft = 0.1)

Arguments

vcf

readVcf object from ExAC database read over a certain range

maft

minor allele frequency cutoff for filtering

Value

snps GenomicRanges object with positions of putative heterozygous SNPs info data fram with metadata for putative heterozygous SNPs

Examples

 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)

JEFworks/HoneyBADGER documentation built on July 24, 2021, 3:01 p.m.