View source: R/motifLocation.R
motifLocation | R Documentation |
motifLocation
Visualize motif location in a specificial sequences..
data |
A data frame file from getMotifFromXML function. |
tree.path |
A file path of the correponding phylogenetic tree. The IDs of the phylogenetic tree must be same as the IDs of sequences used to identify motifs using MEME. |
Return a plot
Xiang LI <lixiang117423@foxmail.com>
# without phylogenetic tree filepath <- system.file("examples", "meme.xml", package = "ggmotif") motif_extract <- getMotifFromMEME(data = filepath, format="xml") motif_plot <- motifLocation(data = motif_extract) # with phylogenetic tree filepath <- system.file("examples", "meme.xml", package = "ggmotif") treepath <- system.file("examples", "ara.nwk", package="ggmotif") motif_extract <- getMotifFromMEME(data = filepath, format="xml") motif_plot <- motifLocation(data = motif_extract, tree = treepath)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.