getAnnotationFromEnsembl {KnowSeq} | R Documentation

## getAnnotationFromEnsembl 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

    getAnnotationFromEnsembl(values, attributes = c("ensembl_gene_id",
      "external_gene_name", "percentage_gene_gc_content", "gene_biotype"),
      filters = "ensembl_gene_id", referenceGenome = 38,
      notHSapiens = FALSE, notHumandataset = "")

### Arguments

`values` | A list of genes that contains the names or IDs.
`attributes` | A vector which contains the different information attributes that the Ensembl biomart admit.
`filters` | The attributes used as filter to return the rest of the attributes.
`referenceGenome` | The human reference genome used to return the annotation. The possibilities are two: 37 and 38
`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")).

### Value

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

### Examples

    myAnnotation <- getAnnotationFromEnsembl(c("ENSG00000210049","ENSG00000211459","ENSG00000210077"),referenceGenome=37)

[Package KnowSeq version 1.0.0 Index]