mog.map
Map of known mogrifications. A default map is available with this
package by data(mog.map), but any map may be used. This should be
a dataframe with two columns: original and mogrified, containing
the correct and incorrect symbols, respectively.
regex
Regular expression, recognized by the base::grep function which
is called with ignore.case=TRUE, to identify mogrified symbols.
It is not necessary for all matches to have a corresponding entry
in mog.map$mogrified; values in x which are matched by this regex
but are not found in mog.map$mogrified simply will not be
corrected. This regex is based that provided by Zeeberg et al.,
Mistaken Identifiers: Gene name errors can be introduced
inadvertently when using Excel in bioinformatics. BMC
Bioinformatics 2004, 5:80.