Description Usage Arguments Details Value Author(s) Examples
View source: R/motif_analysis.R
Compute the log-likelihood scores for motifs.
1 | ComputeMotifScore(motif.lib, snp.info, ncores = 1)
|
motif.lib |
A list object with the output format of function
|
snp.info |
A list object with the output format of function
|
ncores |
An integer for the number of parallel process. Default: 1. |
This function computes the binding affinity scores for both alleles at each SNP window. For each pair of SNP and motif, it finds the subsequence from both strand that maximizes the affinity binding score. It returns both the matching positions and the maximized affinity scores.
A list of two data.frame's. Field snp.tbl
contains:
snpid | SNP id. |
ref_seq | Reference allele nucleotide sequence. |
snp_seq | SNP allele nucleotide sequence. |
ref_seq_rev | Reference allele nucleotide sequence on the reverse strand. |
snp_seq_rev | SNP allele nucleotide sequence on the reverse strand. |
Field motif.score
contains:
motif | Name of the motif. |
motif_len | Length of the motif. |
ref_start, ref_end, ref_strand | Location of the best matching subsequence on the reference allele. |
snp_start, snp_end, snp_strand | Location of the best matching subsequence on the SNP allele. |
log_lik_ref | Log-likelihood score for the reference allele. |
log_lik_snp | Log-likelihood score for the SNP allele. |
log_lik_ratio | The log-likelihood ratio. |
mean_log_lik_ref | Mean subsequence log-likelihood score for the reference allele. |
mean_log_lik_snp | Mean subsequence log-likelihood score for the SNP allele. |
mean_log_lik_ratio | The ratio of mean subsequence log-likelihood between the SNP and the reference allele. |
median_log_lik_ref | Median subsequence log-likelihood score for the reference allele. |
median_log_lik_snp | Median subsequence log-likelihood score for the SNP allele. |
median_log_lik_ratio | The ratio of median subsequence log-likelihood between the SNP and the reference allele. |
log_enhance_odds | Difference in log-likelihood ratio between SNP allele and reference allele based on the best matching subsequence on the reference allele. |
log_reduce_odds | Difference in log-likelihood ratio between reference allele and SNP allele based on the best matching subsequence on the SNP allele. |
Sunyoung Shin sunyoung.shin@utdallas.edu, Chandler Zuo chandler.c.zuo@gmail.com
1 2 | data(example)
ComputeMotifScore(motif_library, snpInfo, ncores = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.