getGenesAnnotation: getGenesAnnotation returns the required information about a...

View source: R/getGenesAnnotation.R

getGenesAnnotationR Documentation

getGenesAnnotation returns the required information about a list of genes from Ensembl biomart.

Description

The function returns the required information about a list of genes from Ensembl biomart. This list of genes can be Ensembl ID, gene names or either of the possible values admited by Ensembl biomart. Furthermore, the reference genome can be chosen depending on the necessity of the user.

Usage

getGenesAnnotation(
  values,
  attributes = c("ensembl_gene_id", "external_gene_name", "percentage_gene_gc_content",
    "entrezgene_id"),
  filter = "ensembl_gene_id",
  notHSapiens = FALSE,
  notHumandataset = "",
  referenceGenome = 38
)

Arguments

values

A list of genes that contains the names or IDs or "allGenome" string, which indicates that all genome will be returned.

attributes

A vector which contains the different information attributes that the Ensembl biomart admit.

filter

The attribute used as filter to return the rest of the attributes.

notHSapiens

A boolean value that indicates if the user wants the human annotation or another annotation available in BiomaRt. The possible not human dataset can be consulted by calling the following function: biomaRt::listDatasets(useMart("ensembl")).

notHumandataset

A dataset identification from biomaRt::listDatasets(useMart("ensembl")).

referenceGenome

Integer that indicates used reference genome. It must be 37 or 38.

Value

A matrix that contains all the information asked to the attributes parameter.

Examples

myAnnotation <- getGenesAnnotation(c("KRT19","BRCA1"), filter="external_gene_name",notHSapiens=FALSE)

CasedUgr/KnowSeq documentation built on Aug. 16, 2022, 6:19 a.m.