feaResult: Constructor for 'feaResult-class'

View source: R/AllClasses.R

feaResultR Documentation

Constructor for feaResult-class

Description

This is a helper function to construct a feaResult object. For detail description, please consult the help file of the feaResult-class.

Usage

feaResult(
  result,
  organism = "UNKNOWN",
  ontology = "UNKNOWN",
  drugs = "UNKNOWN",
  targets = "UNKNOWN"
)

Arguments

result

tibble object containing the FEA results

organism

character(1), organism information of the annotation system

ontology

character(1), ontology type of the GO annotation system. If the annotation system is KEGG, it will be 'KEGG'

drugs

character vector, input drug names used for the enrichment test

targets

character vector, gene labels of the gene/protein targets for the drugs

Value

feaResult object

Examples

fr <- feaResult(result=dplyr::tibble(id=letters[seq_len(10)], 
                                     val=seq_len(10)),
                organism="human", ontology="MF", drugs=c("d1", "d2"), 
                targets=c("t1","t2"))

girke-lab/signatureSearch documentation built on Feb. 21, 2024, 8:32 a.m.