Skip to contents

Get gene description from BioMart

Usage

get_gene_desc(
  genes,
  attrs = c("hgnc_symbol", "description"),
  clean_desc = TRUE,
  mart = NULL,
  verbose = FALSE
)

Arguments

genes

character vector; genes of interest

attrs

character vector; valid attributes from biomaRt::listAttributes(mart)

clean_desc

logical; T to remove "[Source: ...]" from description field

mart

Mart object; will generate one if not provided

verbose

logical; output biomaRt messages to console

Value

dataframe with attrs columns, populated from BioMart

Examples

genes <- c("POU5F1", "SOX2", "KLF4", "MYC")
# \donttest{
  head(Rubrary::get_gene_desc(genes))
#>   hgnc_symbol                                    description
#> 1        KLF4                    KLF transcription factor 4 
#> 2         MYC MYC proto-oncogene, bHLH transcription factor 
#> 3      POU5F1                        POU class 5 homeobox 1 
#> 4        SOX2                SRY-box transcription factor 2 
# }