
Read up/down drug signatures from a gene set library
Source:R/09_downstream.R
mx_read_signatures.RdParses a GMT file or an Enrichr gene set library text file and pairs sets
named "<drug> up" and "<drug> down" (case-insensitive,
separated by a space, underscore or hyphen) into signatures for
mx_drug_connectivity. Works with Enrichr's
LINCS_L1000_Chem_Pert_Consensus_Sigs library.
Value
A named list; each element is a list with character vectors
up and down. Drugs lacking either direction are dropped.
Examples
f <- tempfile(fileext = ".gmt")
writeLines(c("drugA up\t\tG1\tG2\tG3", "drugA down\t\tG4\tG5"), f)
mx_read_signatures(f)
#> $drugA
#> $drugA$up
#> [1] "G1" "G2" "G3"
#>
#> $drugA$down
#> [1] "G4" "G5"
#>
#>