When working with a set of miRNAs, useful information includes
if a certain miRNA name exists in the miRBase database.
the miRNA sequence in a certain miRBase version.
if a given miRNA is still considered to be a miRNA.
the miRNA names from the most recent miRBase version
the respective miRNA name from a different miRBase version, for using other
services, such as miRNA target databases.
The miRNAmeConverter R package has been developed for handling naming
challenges of mature miRNAs.
In addition we have developed a web interface that enables one to use the
translateMiRNAName function via web interface and is based on shiny
(miRNAmeConverter-web).
The miRNAmeConverter package delivers results in a fast and transparent way.
The main functions
check for validity of mature miRNA names,
determine the most likely miRBase version of a given set of miRNAs and
translate mature miRNA names to different versions (incl. sequences).
The core function, translating miRNA names to different versions, is especially
useful when dealing with miRNA tools other than miRBase. To retrieve targets
from miRTarBase, for example,
the miRNA name from version 20 is required, whereas the website
miRecords only accepts version 17.
The miRNAmeConverter can manage large sets of miRNA names and hence can be
easily implemented into workflows.
The data set included in the package (miRNAs) is a collection of human miRNA
names. It consists of valid miRNA names (some duplicates), incorrect names and
features used as controls in experiments, such as the RNU44 as a house keeping
gene for HT-qPCR assay plates from Applied Biosystems.
To load the package and gain access to the functions and sample dataset of the
miRNAmeConverter package just run the following command:
library(miRNAmeConverter)
## Loading required package: miRBaseVersions.db
Citing miRNAmeConverter
To give the authors professional credit for their work, please try to cite the
publication when you use the miRNAmeConverter:
citation("miRNAmeConverter")
##
## Please cite the paper below for the miRNAmeConverter software
## itself. Please also try to cite the miRBase database.
##
## Haunsberger, S.J., Connolly N.M.C., Prehn, J.H.M., (2016).
## miRNAmeConverter: an R/Bioconductor package for translating
## mature miRNA names to different miRBase versions.
## Bioinformatics. doi: 10.1093/bioinformatics/btw660
##
## A BibTeX entry for LaTeX users is
##
## @Article{,
## author = {Stefan J Haunsberger and Niamh M C Connolly and Jochen H M Prehn},
## title = {{miRNAmeConverter}: an R/Bioconductor package for translating mature miRNA names to different miRBase versions},
## journal = {Bioinformatics},
## year = {2016},
## doi = {10.1093/bioinformatics/btw660},
## url = {https://doi.org/10.1093/bioinformatics/btw660},
## }
miRNA name input values
According to the nomenclature used in the miRBase repository hsa-mir-29a is a
stem-loop sequence name. If we substitute the ‘r’ by a capital ‘R’ it
codes for the mature 3’ miRNA hsa-miR-29a (or hsa-miR-29a-5p in the current
version). The miRNAs input value for the functions has to
be in form of a character vector. Algorithms of the package are not case
sensitive. This has the effect, that for example in the case hsa-mir-29a and
hsa-miR-29a as input values both will be considered as valid mature miRNA
names.
The MiRNANameConverter class
The MiRNANameConverter class is coded in S4 style. All functions offered by
the miRNAmeConverter package are methods of that class.
All methods can be displayed by
An instance of the MiRNANameConverter class can be created by calling the
MiRNANameConverter function:
MiRNANameConverter();
## An object of class: MiRNANameConverter
## - Most recent miRBase version provided in the package:[1] 22
## - Valid miRBase versions: [1] 22.0 21.0 20.0 19.0 18.0 17.0 16.0 15.0 14.0 13.0 12.0 11.0 10.1 10.0
## [15] 9.2 9.1 9.0 8.2 8.1 8.0 7.1 6.0
## - Number of species: [1] 277
## - Number of database entries among all versions: [1] 291613
Use Cases
Check for valid miRNA name
Valid input values
We have given a set of mature miRNA names miRNAs and would like to check if
the names are actual miRNA names that
are or were listed in any miRBase version. Our miRNAs have the following
values:
The following set of miRNA names contains valid as well as invalid names.
# "RNU-6" and "bpcv1-miR-B23" are not valid
miRNAs = c("hsa-miR-422b", "RNU-6", "mmu-miR-872", "gra-miR157b", "bpcv1-miR-B23", "bpcv1-miR-B1");
nc = MiRNANameConverter(); # Create MiRNANameConverter object
checkMiRNAName(nc, miRNAs); # check names
## The following miRNAs are not listed in the miRBase repository:
## RNU-6; bpcv1-miR-B23
## [1] "hsa-miR-422b" "mmu-miR-872" "gra-miR157b" "bpcv1-miR-B1"
This time the function prints information for the features that did not pass
the check and therefore are not included in the return value.
Translate miRNA names and their sequence
Translating miRNA names to different versions is the most required function.
Let us assume we found a paper that shows that the miRNA "hsa-miR-422b" is
significantly differentially expressed under certain conditions. Assume further,
that we did a similar experiment but this miRNA does not show up in our analysis.
Instead we got "hsa-miR-378a-3p" from miRBase version 21. We see, that the
previous paper was released a couple of years ago so there might be a chance
that their miRNA could now run under a different name. We apply the
translateMiRNAName function with hsa-miR-422b as miRNA parameter and no
version. With no given version the function returns the miRBase version 21
by default.
The result shows that these two miRNAs are actually the same. This is because
"hsa-miR-422b" is last listed in miRBase version 9.2. In version 10.0 it was
named "hsa-miR-378" which in the current version 21.0 runs under the name
"hsa-miR-378a-3p".
Another example with more diverse input names is shown below, with the
respective console output and the entry in the attribute description.
## Following miRNA will be neglected (not listed in miRBase):
## bpcv1-miR-B23
## Following miRNA is not listed in the current miRBase version 22.0.
## hsa-miR-128b
The console output shows us that one of the input values is not a miRNA
("bpcv1-miR-B23") and another is not listed in miRBase version 21
("hsa-miR-128b").
The information, whether a miRNA is OK or not, is stored in form of
an attribute of the return value of the function. This data.frame object
provides information about every single input value and can be accessed via
the attr command followed by 'description'.
attr(result, 'description');
## input.miRNA
## bpcv1-miR-B23 bpcv1-miR-B23
## ebv-miR-BART5 ebv-miR-BART5
## hsa-miR-128b hsa-miR-128b
## hsa-miR-213 hsa-miR-213
## mmu-miR-302b* mmu-miR-302b*
## mmu-miR-872 mmu-miR-872
## information
## bpcv1-miR-B23 This name is not listed in any miRBase version.
## ebv-miR-BART5 OK
## hsa-miR-128b This miRNA is not listed in the current miRBase version 22.0.
## hsa-miR-213 OK
## mmu-miR-302b* OK
## mmu-miR-872 OK
Attribute sequences
Sometimes it can be useful to confirm the sequence of miRNAs for selected
miRBase versions. In such a case all we have to do is checking out the
sequence attribute of our translation result.
Due to the fact that we called the translateMiRNAName function with the
parameter sequenceFormat = 1 the attribute only contains the sequence for
each version respectively. If we would like to have miRNA name and sequence
combined in one table we can call the translateMiRNAName function with
sequenceFormat = 2.
## Following miRNA will be neglected (not listed in miRBase):
## bpcv1-miR-B23
## Following miRNA is not listed in the current miRBase version 22.0.
## hsa-miR-128b
Retrieve all miRNAs from different miRBase versions
In cases where one has a dataframe with expression values and miRNA names from
a particular miRBase version it can be easier to just ‘join’ a second dataframe
with valid miRNA names, such as from v17 to v22.
In the case where miRNAs are assigned to multiple accessions, records will be neglected.
Assess most likely miRBase version
Sometimes it is useful to know the miRBase version that a given set of miRNA
names is from. In this case one can use the assessVersion function to receive
the most likely miRBase version. The following example makes use of the
provided example-miRNAs-dataset.
nc = MiRNANameConverter(); # Create MiRNANameConverter object
assessVersion(nc, example.miRNAs); # Assess most likely miRBase version
## Input: 355 unique miRNA names
## The following miRNAs are not listed in the miRBase repository:
## RNU48; RNU44; RNU6B; hsa-miR-517; 4343438
## miRNAs that could not be found in identified max version 9.0:
## hsa-miR-213; hsa-miR-425; hsa-miR-493
## -> 347 out of 350 valid miRNAs assigned to max version 9.0.
## version frequency
## 1 9.0 347
## 2 8.2 347
## 3 8.1 347
## 4 9.2 346
## 5 9.1 346
## 6 10.0 276
## 7 10.1 272
## 8 14.0 271
## 9 13.0 271
## 10 12.0 271
## 11 11.0 271
## 12 15.0 270
## 13 16.0 267
## 14 8.0 267
## 15 17.0 266
## 16 7.1 264
## 17 6.0 180
## 18 18.0 133
## 19 19.0 127
## 20 20.0 93
## 21 21.0 92
## 22 22.0 86
The console output shows that from the 384 input names
there were 355 unique values. Five of these
values are not listed in any miRBase version and were neglected. The return
value is a data.frame object with the two columns version and frequency.
It is ordered by frequency and version. It shows that 347 out of 350 valid
input miRNAs could be assigned to miRBase version 9.0. This is the highest
score and therefore the most likely miRBase version of the input mature
miRNA names.
Other functions
Save translation results
Sometimes it is useful to save a variable to a file. Taking the translation
result from above we can do so by running the following command with default
settings:
saveResults(nc, result);
Three files will be saved, the miRNA name translation result, the description
and sequence. By default the files are tab-separated files without the parameter
quote set to FALSE. Other options can be applied and will be passed on to
the utils::write.table function.
Additional information
Database information
The data used in the miRNAmeConverter package is obtained from the
miRBaseVersions.db annotation package [@mirbaseversionscite].
Build:
miRNAmeConverter
When working with a set of miRNAs, useful information includes
The miRNAmeConverter R package has been developed for handling naming challenges of mature miRNAs.
In addition we have developed a web interface that enables one to use the
translateMiRNANamefunction via web interface and is based on shiny (miRNAmeConverter-web).Introduction
The miRNAmeConverter package delivers results in a fast and transparent way. The main functions
The core function, translating miRNA names to different versions, is especially useful when dealing with miRNA tools other than miRBase. To retrieve targets from miRTarBase, for example, the miRNA name from version 20 is required, whereas the website miRecords only accepts version 17. The miRNAmeConverter can manage large sets of miRNA names and hence can be easily implemented into workflows.
The data set included in the package (miRNAs) is a collection of human miRNA names. It consists of valid miRNA names (some duplicates), incorrect names and features used as controls in experiments, such as the RNU44 as a house keeping gene for HT-qPCR assay plates from Applied Biosystems.
To load the package and gain access to the functions and sample dataset of the miRNAmeConverter package just run the following command:
Citing miRNAmeConverter
To give the authors professional credit for their work, please try to cite the publication when you use the miRNAmeConverter:
miRNA name input values
According to the nomenclature used in the miRBase repository
hsa-mir-29ais a stem-loop sequence name. If we substitute the ‘r’ by a capital ‘R’ it codes for the mature 3’ miRNAhsa-miR-29a(orhsa-miR-29a-5pin the current version). ThemiRNAsinput value for the functions has to be in form of acharactervector. Algorithms of the package are not case sensitive. This has the effect, that for example in the casehsa-mir-29aandhsa-miR-29aas input values both will be considered as valid mature miRNA names.The MiRNANameConverter class
The MiRNANameConverter class is coded in S4 style. All functions offered by the miRNAmeConverter package are methods of that class. All methods can be displayed by
The slot names (attributes) of the class can be displayed by
An instance of the
MiRNANameConverterclass can be created by calling theMiRNANameConverterfunction:Use Cases
Check for valid miRNA name
Valid input values
We have given a set of mature miRNA names
miRNAsand would like to check if the names are actual miRNA names that are or were listed in any miRBase version. OurmiRNAshave the following values:Our first step is to create an instance of the
MiRNANameConverterclass by calling the constructor and saving it to the variablenc.Now we check if the names are valid names listed in any of the provided miRBase versions:
Mixed input values
The following set of miRNA names contains valid as well as invalid names.
This time the function prints information for the features that did not pass the check and therefore are not included in the return value.
Translate miRNA names and their sequence
Translating miRNA names to different versions is the most required function. Let us assume we found a paper that shows that the miRNA
"hsa-miR-422b"is significantly differentially expressed under certain conditions. Assume further, that we did a similar experiment but this miRNA does not show up in our analysis. Instead we got"hsa-miR-378a-3p"from miRBase version 21. We see, that the previous paper was released a couple of years ago so there might be a chance that their miRNA could now run under a different name. We apply thetranslateMiRNANamefunction withhsa-miR-422bas miRNA parameter and no version. With no given version the function returns the miRBase version 21 by default.The result shows that these two miRNAs are actually the same. This is because
"hsa-miR-422b"is last listed in miRBase version 9.2. In version 10.0 it was named"hsa-miR-378"which in the current version 21.0 runs under the name"hsa-miR-378a-3p".Another example with more diverse input names is shown below, with the respective console output and the entry in the attribute
description.The console output shows us that one of the input values is not a miRNA (
"bpcv1-miR-B23") and another is not listed in miRBase version 21 ("hsa-miR-128b").Attribute
descriptionThe information, whether a miRNA is OK or not, is stored in form of an attribute of the return value of the function. This
data.frameobject provides information about every single input value and can be accessed via theattrcommand followed by'description'.Attribute
sequencesSometimes it can be useful to confirm the sequence of miRNAs for selected miRBase versions. In such a case all we have to do is checking out the
sequenceattribute of our translation result.Due to the fact that we called the
translateMiRNANamefunction with the parametersequenceFormat = 1the attribute only contains the sequence for each version respectively. If we would like to have miRNA name and sequence combined in one table we can call thetranslateMiRNANamefunction withsequenceFormat = 2.Retrieve all miRNAs from different miRBase versions
In cases where one has a dataframe with expression values and miRNA names from a particular miRBase version it can be easier to just ‘join’ a second dataframe with valid miRNA names, such as from v17 to v22.
In the case where miRNAs are assigned to multiple accessions, records will be neglected.
Assess most likely miRBase version
Sometimes it is useful to know the miRBase version that a given set of miRNA names is from. In this case one can use the
assessVersionfunction to receive the most likely miRBase version. The following example makes use of the providedexample-miRNAs-dataset.The console output shows that from the 384 input names there were 355 unique values. Five of these values are not listed in any miRBase version and were neglected. The return value is a data.frame object with the two columns
versionandfrequency. It is ordered by frequency and version. It shows that 347 out of 350 valid input miRNAs could be assigned to miRBase version 9.0. This is the highest score and therefore the most likely miRBase version of the input mature miRNA names.Other functions
Save translation results
Sometimes it is useful to save a variable to a file. Taking the translation
resultfrom above we can do so by running the following command with default settings:Three files will be saved, the miRNA name translation result, the description and sequence. By default the files are tab-separated files without the parameter
quoteset toFALSE. Other options can be applied and will be passed on to theutils::write.tablefunction.Additional information
Database information
The data used in the miRNAmeConverter package is obtained from the
miRBaseVersions.dbannotation package [@mirbaseversionscite].References {-}