Skip to content

Instantly share code, notes, and snippets.

@kieranrcampbell
Created October 18, 2018 21:37
Show Gist options
  • Save kieranrcampbell/e3b03673efe0de56e170dc5864b0efe0 to your computer and use it in GitHub Desktop.
Save kieranrcampbell/e3b03673efe0de56e170dc5864b0efe0 to your computer and use it in GitHub Desktop.
get_ensembl_id <- function(symbol, sce) {
if(!(symbol %in% rowData(sce)$Symbol)) {
stop("Symbol not in SCE genes")
}
rownames(sce)[rowData(sce)$Symbol == symbol]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment