feaResult: Constructor for 'feaResult-class'

Description Usage Arguments Value Examples

View source: R/AllClasses.R

Description

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

Usage

1
2
3
4
5
6
7
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

1
2
3
4
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"))

signatureSearch documentation built on April 16, 2021, 6 p.m.