Description Usage Arguments Value See Also Examples
This function queries Ensembl biomart to convert transcript IDs to gene IDs.
1 2 3 4 |
species |
Character vector of length 1, Latin name of the species of interest. |
type |
Character, must be one of "vertebrate", "metazoa", "plant", "fungus" and "protist". Passing "vertebrate" will use the default www.ensembl.org host. Gene annotation of some common invertebrate model organisms, such as Drosophila melanogaster, are available on www.ensembl.org so for these invertebrate model organisms, "vertebrate" can be used for this argument. Passing values other than "vertebrate" will use other Ensembl hosts. For animals absent from www.ensembl.org, try "metazoa". |
other_attrs |
Character vector. Other attributes to get from Ensembl,
such as gene symbol and position on the genome.
Use |
use_gene_name |
Logical, whether to get gene names. |
use_transcript_version |
Logical, whether to include version number in
the Ensembl transcript ID. To decide whether to
include transcript version number, check whether version numbers are included
in the |
use_gene_version |
Logical, whether to include version number in the Ensembl gene ID. Unlike transcript version number, it's up to you whether to include gene version number. |
ensembl_version |
Integer version number of Ensembl (e.g. 94 for the
October 2018 release). This argument defaults to |
verbose |
Whether to display progress. |
... |
Othe arguments to be passed to |
A data frame with at least 2 columns: gene
for gene ID,
transcript
for transcript ID, and optionally gene_name
for gene names. If other_attrs
has been specified, then those will
also be columns in the data frame returned.
Other functions to retrieve transcript and gene info: sort_tr2g
,
tr2g_EnsDb
, tr2g_TxDb
,
tr2g_fasta
, tr2g_gff3
,
tr2g_gtf
, transcript2gene
1 2 3 | tr2g <- tr2g_ensembl(species = "Felis catus", other_attrs = "description")
# This will use plants.ensembl.org as host instead of www.ensembl.org
tr2g <- tr2g_ensembl(species = "Arabidopsis thaliana", type = "plant")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.