drugs | R Documentation |
The drugs
generic extracts or assign the drug names/ids
stored in the drugs
slot of an feaResult object.
drugs(x)
drugs(x) <- value
## S4 method for signature 'feaResult'
drugs(x)
## S4 replacement method for signature 'feaResult'
drugs(x) <- value
x |
feaResult object |
value |
A character vector of drug names |
character vector
An feaResult object with new assigned drugs slot
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.