drugs-methods: Extract/Assign Drug Names for feaResult

Description Usage Arguments Value Examples

Description

The drugs generic extracts or assign the drug names/ids stored in the drugs slot of an feaResult object.

Usage

1
2
3
4
5
6
7
8
9
drugs(x)

drugs(x) <- value

## S4 method for signature 'feaResult'
drugs(x)

## S4 replacement method for signature 'feaResult'
drugs(x) <- value

Arguments

x

feaResult object

value

A character vector of drug names

Value

character vector

An feaResult object with new assigned drugs slot

Examples

1
2
3
4
5
6
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"))
drugs(fr)
drugs(fr) <- c("d3", "d4")

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