drugs-methods: Extract/Assign Drug Names for feaResult

drugsR Documentation

Extract/Assign Drug Names for feaResult

Description

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

Usage

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

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")

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