getFunctionWC: Creates word cloud visualization of GO functionality based on...

Description Usage Arguments Value References Examples

View source: R/getFunctionWC.R

Description

A function that takes motif "names" in MotifDb format, retrieves corresponding GO functions and produces a word cloud visualization based on function frequency within all specified motifs.

Usage

1
getFunctionWC(matchNames)

Arguments

matchNames

A character vector indicating Motif "names" (based on MotifDb records)

Value

Returns functionFreq - A table/list indicating frequency of found functionalities

References

Hines, K. (2014). Stack Overflow source code [Source code]. https://stackoverflow.com/questions/26937960/creating-word-cloud-of-phrases-not-individual-words-in-r.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data(jaspar.scores, package="MotifFunc")
jaspar.scores
matchNames <- MotifFunc::classifySeqMotifs("AGCGTAGGCGT")
functionFreq <- MotifFunc::getFunctionWC(matchNames)

transfacFilePath <- system.file("extdata", "new0007.txt", package = "MotifFunc")
data(jaspar.scores, package="MotifFunc")
jaspar.scores
matchNames <- MotifFunc::classifyPcmMotifs(transfacFilePath)
functionFreq <- MotifFunc::getFunctionWC(matchNames)

minhanho/MotifFunc documentation built on Dec. 8, 2019, 1:46 p.m.