View source: R/GetAllSignatureGenes.R
GetAllSignatureGenes | R Documentation |
This function returns all the unique genes appearing within a list of signatures. Particularly useful when signatures contain "negative" genes, as it will remove the "-" sign. Also works on single vectors rather than lists, in which case it will remove the minus sign and duplicates.
GetAllSignatureGenes(signature.list)
signature.list |
Character vector list. A list of signatures. |
The unique elements present among the signatures (character vector).
SL <- list(CD8TC=c("CD3","CD8","-CD4"),
Fibro=c("VIM","COL1A1","-EPCAM"))
UniqueGenes <- GetAllSignatureGenes(SL) # Returns c("CD3","CD4","CD8","VIM","COL1A1","EPCAM")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.