my_gene: Map between ENSEMBL IDs and gene symbols

Description Usage Arguments Value

View source: R/sc_utils.R

Description

Convenience function for quickly extracting the gene symbol for an ENSEMBL ID of interest or vice versa. This is needed often for the Lo data set because the row names of the SCE object are ENSEMBL IDs.

Usage

1
my_gene(goi, gn_map)

Arguments

goi

vector of the IDs of the gene(s) of interest, e.g. "Ins2"

gn_map

object that contains the mapping between gene_symbol and ensembl_id, either an SCE object (from which rowData() will be used) or a data.table with "gene_symbol" and "ensembl_id"

Value

either the gene_symbols (if ENSEMBL IDs were given) or the ENSEMBL IDs (if gene_symbols were given) of the genes of interest


evanbiederstedt/sandbox documentation built on May 26, 2019, 12:31 p.m.