Description Usage Arguments Value Author(s) Examples
View source: R/motif_analysis.R
This function computes the p-values for allele-specific affinity scores and between-allele affinity score changes using the importance sampling technique.
1 2 3 4 5 6 7 8 9  | ComputePValues(
  motif.lib,
  snp.info,
  motif.scores,
  ncores = 1,
  testing.mc = FALSE,
  loglik.type = "max",
  figdir = NULL
)
 | 
motif.lib | 
 A list object with the output format of function
  | |||||||
snp.info | 
 A list object with the output format of function
  | |||||||
motif.scores | 
 A data.frame object containing at least the following columns: 
  | |||||||
ncores | 
 An integer for the number of parallel process. Default: 1.  | |||||||
testing.mc | 
 If FALSE, Monte Carlo sample size is adaptively chosen between 2000 and 100K. If TRUE, the sample size is 100, which is used for testing purposes. Default: FALSE  | |||||||
loglik.type | 
 A string of 'max', 'mean', 'median'.  | |||||||
figdir | 
 A string for the path to print p-value plots for monitoring results. Default: NULL (no figure).  | 
A data.frame extending motif.scores by the following
additional columns:
| pval_ref | P-values for scores on the reference allele. | 
| pval_snp | P-values for scores on the SNP allele. | 
| pval_cond_ref | Conditional p-values for scores on the reference allele. | 
| pval_cond_snp | Conditional p-values for scores on the SNP allele. | 
| pval_diff | P-values for the difference in scores between the reference and the SNP alleles. | 
| pval_rank | P-values for the log rank ratio between the reference and the SNP alleles. | 
Sunyoung Shin sunyoung.shin@utdallas.edu, Chandler Zuo chandler.c.zuo@gmail.com
1 2  | data(example)
ComputePValues(motif_library, snpInfo, motif_scores$motif.scores, ncores = 2, testing.mc=TRUE)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.