Skip to contents

Query and set IDs (tmod_id) or Titles (tmod_title) of gene sets in a tmodGS object

Usage

tmod_ids(x)

tmod_ids(x) <- value

tmod_titles(x)

tmod_titles(x) <- value

Arguments

x

an object of class tmodGS

value

a character vector of unique IDs

Value

Returns character vector corresponding to x$gs$ID

Examples

data(tmod)
mset <- tmod[ c("LI.M37.0", "LI.M75", "LI.M3") ]
tmod_ids(mset)
#> [1] "LI.M37.0" "LI.M75"   "LI.M3"   
tmod_ids(mset) <- c("em", "pstrem", "bzdrem")
tmod_titles(mset) <- c("foo", "bar", "baz")
mset$gs
#> # A tibble: 3 × 9
#>   ID     Title Category  Annotated URL         Source SourceID original.ID     B
#>   <chr>  <chr> <chr>     <chr>     <chr>       <chr>  <chr>    <chr>       <int>
#> 1 em     foo   immune    Yes       http://www… Li et… LI       M37.0         347
#> 2 pstrem bar   immune    Yes       http://www… Li et… LI       M75            22
#> 3 bzdrem baz   signaling Yes       http://www… Li et… LI       M3             47