MotifFunc contains functions that handle genomic data to classify motifs, determine functionality, and group broad functionalities for word cloud visualization. As with the word cloud format, functions with the same frequency are displayed in the same colour and size.
Note: The current version only supports visualization for motif matches within Homo sapiens. Visualization looks best when previewed in RStudio.
You can install the MotifFunc from github with:
require("devtools")
devtools::install_github("minhanho/MotifFunc", build_vignettes = TRUE)
library("MotifFunc")
To run the shiny app:
runMotifFunc()
browseVignettes("MotifFunc")
.
├── DESCRIPTION
├── LICENSE
├── LICENSE.md
├── MotifFunc.Rproj
├── NAMESPACE
├── R
│ ├── classifyMotifs.R
│ ├── data.R
│ ├── getFunctionWC.R
│ ├── helperFunctions.R
│ └── runMotifFunc.R
├── README.md
├── data
│ ├── jaspar.scores.rda
│ └── matches.rda
├── inst
│ ├── CITATION
│ ├── extdata
│ │ ├── HO_M_A1.png
│ │ ├── MA0007.1.transfac
│ │ ├── WCoutput.png
│ │ └── new0007.txt
│ └── shiny-scripts
│ └── app.R
├── man
│ ├── MotIVtoTable.Rd
│ ├── classifyPcmMotifs.Rd
│ ├── classifySeqMotifs.Rd
│ ├── correctJasparTransfac.Rd
│ ├── getFunctionWC.Rd
│ ├── jaspar.scores.Rd
│ ├── matches.Rd
│ └── runMotifFunc.Rd
├── tests
│ ├── testthat
│ │ └── test-MotifFunc.R
│ └── testthat.R
└── vignettes
└── MotifFuncVignette.Rmd
The author of this package is Minh An Ho. The functions available within this package include:
library("MotifFunc")
lsf.str("package:MotifFunc")
The functions classifyPcmMotifs, classifySeqMotifs, getFunctionWC, as well as helper functions (excluding MotIV.toTable) were authored by Minh An. The classifyPcmMotifs function makes use of functions from MotIV R package to load a PCM .transfac file and generate motif matches using data from the MotifDb R package. The classifySeqMotifs function makes use of functions from universalmotif R package to create a PCM of the motif produced by a given sequence, MotIV R package to load a PCM .transfac file and generate motif matches using data from the MotifDb R package. The getFunctionWC function makes use of functions from MotifDb R package to retrieve motif match information, biomartr R package to retrieve GO information, wordcloud R package to produce the visualization, and RColorBrewer R package to format the colouring of the visualization. Showing function "phrases" for wordcloud output instead of single words was adapted from Hines, K. (2014). The
The helper function MotIV.toTable is entirely the work of Shannon P and Richards M, written in the MotifDb documentation but not yet integrated into MotifDb.
The runMotifFunc is taken from the TestingPackage R package with very minor changes.
The rest of the contributions are made by Minh An.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.