snp.qc | R Documentation |
Drop SNPs from an annotSnpStats object according to SNP qc summary stats
snp.qc(x, thr = c(Call.rate = ">0.99", MAF = ">0.03", z.HWE = "<5"))
x |
annotSnpStats object |
thr |
named character vector, see Details. |
thr
must be a named character vector, with names
corresponding to column names in the matrix returned by
col.summary
. The elements of the vector
should be character objects. The first character must be '<' or
'>' and the remainder, on conversion to as.numeric, gives the
threshold for keeping SNPs. z.HWE
is special, and applies
to abs(z.HWE).
an annotSnpStats object with only SNPs that meet the criteria specified.
Chris Wallace
X<-example.data(1000,1000)
X
## find rare SNPs with high call rates that do not deviate from HWE
X.rare.qcpass <- snp.qc(X, thr=c(Call.rate=">0.99", MAF="<0.05", z.HWE="<3"))
X.rare.qcpass
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.