View source: R/07_find_match.R
find_match | R Documentation |
Identifies the reference motif that is the best match to each CoRecMotif.
find_match(
corecmotifs,
reference_motifs_file,
cluster_assignments = NULL,
meme_path = NULL,
min_overlap = 5,
output_file = NULL,
check_corecmotifs = TRUE
)
corecmotifs |
|
reference_motifs_file |
|
cluster_assignments |
|
meme_path |
|
min_overlap |
|
output_file |
|
check_corecmotifs |
|
The PPM representation of each CoRecMotif is compared to
the reference motifs with memes::runTomTom()
using Euclidean distance
("ed") as the distance metric. The match_motif and match_pvalue slots of the
CoRecMotif are filled in based on the best match returned
by memes::runTomTom()
. The match_pvalue slot is corrected for multiple
comparisons by multiplying the raw match p-value by the number of motifs in
the reference database. The match_cluster slot is filled in based on the
user-provided cluster assignments or left empty if no cluster assignments are
provided.
A list of CoRecMotifs with the match_motif, match_pvalue, and (optionally) match_cluster slots filled in.
motif_clusters for a description of the expected columns of
cluster_assignments
print("FILL THIS IN")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.