View source: R/compute_similarity_grammar.R
| compute_similarity_grammar_flat | R Documentation |
This function computes the sequence grammar similarities between query regions and the corresponding target regions.
compute_similarity_grammar_flat(
gr_query,
gr_target,
query_genome,
target_genome,
motif_list,
grammar_size = 500L,
metric = "cosine"
)
gr_query |
The query genomic regions of |
gr_target |
The target genomic regions of |
query_genome |
The query genome build identifier (e.g. 'mm10', 'hg38').
Make sure the corresponding BSgenome package is installed.
Or a |
target_genome |
The target genome build identifier (e.g. 'mm10', 'hg38').
Make sure the corresponding BSgenome package is installed.
Or a |
motif_list |
|
grammar_size |
The nearby region (bp) to extract regulatory grammars. Default is 500L. |
metric |
The metric for computing similarities between indicators. One of 'cosine' and 'jaccard'. Default is 'cosine'. |
A numeric vector with values between 0 and 1.
Chenyang Dong cdong@stat.wisc.edu
data('data_example')
data('jaspar_pfm_list')
similarity <- compute_similarity_grammar_flat(gr[2], gr_list[[2]], 'mm10', 'hg38', jaspar_pfm_list)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.