Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/summary.minPtest.R
Summary method for objects of class "minPtest"
1 2 |
object |
an object of class |
level |
a numeric threshold that specifies which genes are shown in the summary, i.e. the genes with adjusted permutation-based p-values smaller than or equal to that threshold are printed. Default is 0.05. |
sign.SNP |
a logical value; if TRUE, print, in addition to the genes selected by a |
... |
Further arguments for the |
Prints the genes with adjusted permutation-based p-value smaller than or equal to a level
, the corresponding permutation-based p-values, the adjusted permutation-based p-values and the SNPs located on these genes, either all SNPs or SNPs selected by the level
, sorted by the adjusted marginal p-values, with marginal p-values and adjusted marginal p-values.
summary.minPtest
returns a list. Each item characterizes a gene, selected according to a level
, list items are named by means of these genes. Each gene item contains a list of data frames, a data frame for the permutation-based p-values and adjusted permutation-based p-values for this gene and a data frame for the marginal p-values and adjusted marginal p-values for the SNPs located on that gene, either all SNPs or SNPs selected by the level
.
Stefanie Hieke hieke@imbi.uni-freiburg.de
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ## Continuing the example from minPtest and generateSNPs:
# generate a data set consisting of 100 subjects and 200 SNPs on 5 genes.
SNP <- c(6,26,54,135,156,186)
BETA <- c(0.9,0.7,1.5,0.5,0.6,0.8)
SNPtoBETA <- matrix(c(SNP,BETA),ncol=2,nrow=6)
colnames(SNPtoBETA) <- c("SNP.item","SNP.beta")
set.seed(191)
sim1 <- generateSNPs(n=100,gene.no=5,block.no=4,block.size=10,p.same=0.9,
p.different=0.75,p.minor=c(0.1,0.4,0.1,0.4),
n.sample=80,SNPtoBETA=SNPtoBETA)
# Cochran Armitage Trend Test without covariates and default permutations.
# Example: Run R sequential
### Seed
set.seed(10)
seed1 <- sample(1:1e7,size=1000)
###
minPtest.object <- minPtest(y=sim1$y, x=sim1$x, SNPtoGene=sim1$SNPtoGene,
seed=seed1)
###
summary(minPtest.object)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.