cut_by_logit2NES: Trim the table of results.

View source: R/cut_by_logit2NES.R

cut_by_logit2NESR Documentation

Trim the table of results.

Description

This function trims the table of results from massiveGST function retaining the rows with a logit2NES below the specified threshold.

Usage

cut_by_logit2NES(ttable, logit2NES_threshold = 0.58)

Arguments

ttable

a data frame of "mGST" class coming from massiveGST function.

logit2NES_threshold

a real value

Value

A data frame.

Note

the functions cut_by_NES, cut_by_logit2NES, and cut_by_significance can be nested.

Author(s)

Stefano M. Pagnotta

References

Cerulo, Pagnotta (2022) \Sexpr[results=rd]{tools:::Rd_expr_doi("10.3390/e24050739")}

See Also

massiveGST, cut_by_NES, cut_by_significance,

summary.mGST, plot.mGST

Examples

library(massiveGST)

# get the gene profile
fname <- system.file("extdata", package="massiveGST")
fname <- file.path(fname, "pre_ranked_list.txt")
geneProfile <- get_geneProfile(fname)

# get the gene-sets
geneSets <- get_geneSets_from_msigdbr(category = "H", what = "gene_symbol")

# run the function
ans <- massiveGST(geneProfile, geneSets, alternative = "two.sided")

head(ans)

cut_by_logit2NES(ans)
cut_by_logit2NES(cut_by_significance(ans))

plot(cut_by_logit2NES(ans))


massiveGST documentation built on March 31, 2023, 8:59 p.m.