Description Usage Arguments Details Value Author(s) See Also Examples
Genome-wide significance for a case-control GWA scan. Analysis
function is ccfast
.
1 2 | emp.ccfast(y, data, snpsubset, idsubset, times = 200, quiet=FALSE,
bcast = 10)
|
All arguments are the same as in and passed intact to the ccfast
.
See help for this function.
y |
character name of the vector of case-control status. Cases are denoted as 1 and controls as 0. |
data |
An object of |
snpsubset |
Index, character or logical vector with subset of SNPs to run analysis on.
If missing, all SNPs from |
idsubset |
Index, character or logical vector with subset of IDs to run analysis on.
If missing, all people from |
times |
If more then one, the number of replicas to be used in derivation of
empirical genome-wide significance. See |
quiet |
do not print warning messages |
bcast |
If the argument times > 1, progress is reported once in bcast replicas |
In the analysis of empirical significance, first time the function
ccfast
is called and result object is
saved. Later, the function ccfast
is called
times
times with replace=FALSE
in order to generate
the distribution under the null. Each call, minimal P-value is extracted
and compared with original P-values. For a particular SNP, empirical
P-value is obtained as a proportion of times minimal Ps from resampled data
was less then the original P.
The list elements effB, effAB and effBB are the ones obtained from the analysis of the original (not permuted) data set
Object of class scan.gwaa-class
Yurii Aulchenko
ccfast
,
emp.qtscore
,
scan.gwaa-class
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | require(GenABEL.data)
data(srdta)
a<-ccfast("bt",data=srdta,snps=c(500:800))
plot(a)
# this does not make sense, as the whole experiment must be analysed, not a small region!
# also, times = 20 is way too small (should be at least 200)
b<-emp.ccfast("bt",data=srdta,snps=c(500:800),bcast=10, times = 20)
plot(b)
# compare qvalues and empirical P
qv<-qvaluebh95(a[,"P1df"])$qval
qv
b[,"P1df"]
plot(qv,b[,"P1df"],xlim=c(0,1),ylim=c(0,1))
abline(a=0,b=1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.