Skip to content
Permalink
8472ea875e
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
14 lines (14 sloc) 574 Bytes
#' Use biomaRt
#' @description Short function get information from biomaRt.
#' @param gene_names Vector of gene names as ensembl_gene_id
#' @examples
#
#' @return
#' @importFrom biomaRt useMart getBM
use_biomaRt <- function(gene_names, ... ) {
ensembl = useMart("ensembl", dataset="hsapiens_gene_ensembl")
ensg_de_lung <- getBM(mart=ensembl,
filters=c("ensembl_gene_id"),
attributes=c("ensembl_gene_id", "entrezgene_id", "hgnc_symbol", "description", "chromosome_name","band"),
values = gene_names)
}