count_word: Calculate word frequency

Description Usage Arguments Details Value Examples

View source: R/word_count.R

Description

Calculate word frequency

Usage

1
count_word(go_id, term = NULL, exclude_words = NULL)

Arguments

go_id

A vector of GO IDs.

term

The corresponding names or description of terms if the input are not GO terms.

exclude_words

The words that should be excluded.

Details

The input can be simply set with a vector of GO id to go_id argument that the GO names are automatically extracted. If the input are not GO terms, users need to provide a vector of long names/descriptions by term argument.

If the input is GO id, the following words are excluded: c("via", "protein", "factor", "side", "type", "specific"). They are analyzed by simplifyEnrichment:::all_GO_word_count().

The text preprocessing followings the instructions from http://www.sthda.com/english/wiki/word-cloud-generator-in-r-one-killer-function-to-do-everything-you-need .

Value

A data frame with words and frequencies.

Examples

1
2
go_id = random_GO(500)
head(count_word(go_id))

simplifyEnrichment documentation built on Nov. 8, 2020, 5:07 p.m.