count_word {simplifyEnrichment}R Documentation

Calculate word frequency

Description

Calculate word frequency

Usage

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


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


[Package simplifyEnrichment version 1.0.0 Index]