# NOT RUN {
#######################################################################
# Load the Star Trek series storysets smt file and storysets object #
#######################################################################
file <- system.file("storysets", "series.smt", package = "stoRy")
mystorysets <- storysets$new(file)
print(mystorysets)
#######################################################################
# Perform the theme enrichment analysis for each of TOS, TAS, and TNG #
# relative to default TOS/TAS/TNG background #
#######################################################################
results <- TEA(mystorysets)
#######################################################################
# Output top ten enriched TOS themes #
#######################################################################
results$TOS[1:10,c("Theme", "NSample", "NOmega", "Pvalue", "Padj")]
#######################################################################
# Output top ten enriched TAS themes #
#######################################################################
results$TOS[1:10,c("Theme", "NSample", "NOmega", "Pvalue", "Padj")]
#######################################################################
# Output top ten enriched TNG themes #
#######################################################################
results$TOS[1:10,c("Theme", "NSample", "NOmega", "Pvalue", "Padj")]
# }
Run the code above in your browser using DataLab