Try GNverifier online.
Takes a scientific name or a list of scientific names and verifies them against a variety of biodiversity Data Sources. Includes an advanced search feature.
- Citing
- Features
- Installation
- [Using Homebrew on Mac OS X, Linux, and Linux on Windows (WSL2)](#using-homebrew-on-mac-os-x-linux-and-linux-on-windows-wsl2)
- MS Windows
- Linux and Mac
- Compile from source
- Usage
- Copyright
If you want to cite GNverifier, use DOI generated by Zenodo:
- Small and fast app to verify scientific names against many biodiversity databases. The app is a client to a verifier API.
- It provides 6 different match levels:
- Exact: complete match with a canonical form or a full name-string from a data source.
- Fuzzy: if exact match did not happen, it tries to match name-strings assuming spelling errors.
- Partial: strips middle or last epithets from bi- or multi-nomial names and tries to match what is left.
- PartialFuzzy: the same as Partial but assuming spelling mistakes.
- FacetedSearch: marks advanced-search queries.
- Taxonomic resolution. If a database contains taxonomic information, it returns the currently accepted name for the provided name-string.
- Best match is returned according to the match score. Data sources with some manual curation have priority over auto-curated and uncurated datasets. For example Catalogue of Life or WoRMS are considered curated, GBIF auto-curated, uBio not curated.
- Fine-tunng the match score by matching authors, years, ranks etc.
- It is possible to map any name-strings checklist to any of registered Data Sources.
- If a Data Source provides a classification for a name, it will be returned in the output.
- The app works for checking just one name-string, or multiple ones written in a file.
- Advanced search uses simple but powerful query language to find abbreviated names, search by author, year etc.
- Supports feeding data via pipes of an operating system. This feature allows to chain the program together with other tools.
GNverifierincludes a web-based graphical user interface identical to its "official" web-service.
Using Homebrew on Mac OS X, Linux, and Linux on Windows (WSL2)
Homebrew is a popular package manager for Open Source software originally developed for Mac OS X. Now it is also available on Linux, and can easily be used on Windows 10, if Windows Subsystem for Linux (WSL) is installed.
To use GNverifier with Homebrew:
-
Install Homebrew
-
Open terminal and run the following commands:
brew tap gnames/gn
brew install gnverifierDownload the latest release from github, unzip.
One possible way would be to create a default folder for executables and place
GNverifier there.
Use Windows+R keys
combination and type "cmd". In the appeared terminal window type:
mkdir C:\Users\your_username\bin
copy path_to\gnverifier.exe C:\Users\your_username\binAdd C:\Users\your_username\bin directory to your PATH
environment variable.
Another, simpler way, would be to use cd C:\Users\your_username\bin command
in cmd terminal window. The GNverifier program then will be automatically
found by Windows operating system when you run its commands from that
directory.
You can also read a more detailed guide for Windows users in a PDF document.
Download the latest release from github, untar, and install binary somewhere in your path.
tar xvf gnverifier-linux-0.1.0.tar.xz
# or tar xvf gnverifier-mac-0.1.0.tar.gz
sudo mv gnverifier /usr/local/binInstall Go according to installation instructions
go get github.com/gnames/gnverifier/gnverifierGNverifier takes one name-string or a text file with one name-string per
line as an argument, sends a query with these data to remote gnames
server to match the name-strigs against many different biodiversity
databases and returns results to STDOUT either in JSON, CSV or TSV format.
The app can alto take a query string like g:M. sp:galloprovincialis au:Olivier to perform advanced searching, if the full scientific name is
undetermined.
gnverifier -p 8080After running this command, you should be able to access web-based user
interface via a browser at http://localhost:8080
gnverifier "Monohamus galloprovincialis"gnverifier /path/to/names.txtThe app assumes that a file contains a simple list of names, one per line.
It is also possible to feed data via STDIN:
cat /path/to/names.txt | gnverifierAdvanced search allows to use a simple but powerful query language to find names by abbreviated genus, a year or a range of years. See detailed description in Advanced Search Query Language section.
gnverifier "g:B. sp:bubo au:Linn. y:1700-"According to POSIX standard flags and options can be given either before or after name-string or file name.
gnverifier -h
# or
gnverifier --help
# or
gnverifiergnverifier -V
# or
gnverifier --versionStarts GNverifier as a web service using entered port
gnverifier -p 8080This command will run user-interface accessible by a browser
at http://localhost:8080
Sometimes data sources have more than one match to a name. To see all matches instead of the best one per source use --all_matches flag.
WARNING: for some names the result will be excessively large.
gnverifier -s '1,12' -M file.txtThis flag is ignored by advanced search.
If your names are co not have uninomials or genera capitalized according to
rules on nomenclature, you can still verify them using this option. If
capitalize flag is set, the first character of every name-string will be
capitalized (when appropriate). This flag is ignores by advanced search.
gnverifier -c "bubo bubo"
# or
gnverifier --capitalize "bubo bubo"Allows to pick a format for output. Supported formats are
- compact: one-liner JSON.
- pretty: prettified JSON with new lines and tabs for easier reading.
- tsv: returns tab-separated values representation.
- csv: (DEFAULT) returns comma-separated values representation.
# short form for compact JSON format
gnverifier -f compact file.txt
# or long form for "pretty" JSON format
gnverifier --format="pretty" file.csv
# tsv format
gnverifier -f tsv file.csvNote that a separate JSON "document" is returned for each separate record, instead of returning one big JSON document for all records. For large lists it significantly speeds up parsin of the JSON on the user side.
If the list of names if very large, it is possible to tell GNverifier to run requests in parallel. In this example GNverifier will run 8 processes simultaneously. The order of returned names will be somewhat randomized.
gnverifier -j 8 file.txt
# or
gnverifier --jobs=8 file.tsvSometimes it is important to return names in exactly same order. For such
cases set jobs flag to 1.
gnverifier -j 1 file.txtThis option is ignored by advanced search.
Sometimes a users wants to map a list of names to a DataSource. They
are not interested if name matched anywhere else. In such case you can use
the only_preferred flag.
gnverifier -o -s '12' file.txt
# or
gnverifier --only_preferred --sources='1,12' file.tsvIn case of advanced search use all:t together with this flag.
Removes log messages from the output. Note that results of verification go
to STDOUT, while log messages go to STDERR. So instead of using -q flag
STDERR can be redirected to /dev/null:
gnverifier "Puma concolor" -q >verif-results.csv
#or
gnverifier "Puma concolor 2>/dev/null >verif-results.csv
By default GNverifier returns only one "best" result of a match. If a user
has a particular interest in a data set, s/he can set it with this option, and
all matches that exist for this source will be returned as well. You need to
provide a data source id for a dataset. Ids can be found at the following
URL. Some of them are provided in the GNverifier help
output as well.
Data from such sources will be returned in preferred_results section of JSON output, or with CSV/TSV rows that start with "PreferredMatch" string.
gnverifier file.csv -s "1,11,172"
# or
gnverifier file.tsv --sources="12"
# or
cat file.txt | gnverifier -s '1,12'If all matched sources need to be returned, set the flag to "0".
WARNING: the result might be excessively large.
gnverifier "Bubo bubo" -s 0
# potentially even more results get returned by adding --all_matches flag
gnverifier "Bubo bubo" -s 0 -MThe sources option would overwrite ds: settings in case of advanced search.
If you find yourself using the same flags over and over again, it makes sense
to edit configuration file instead. It is located at
$HOME/.config/gnverifier.yaml. After that you do not need to use command line
options and flags.
gnverifier file.txtExample: g:M. sp:gallop. au:Oliv. y:1750-1799 or n:M. gallop. Oliv. 1750-1799
Query language allows searching for scientific names using name components like genus name, specific epithet, infraspecific epithet, author, year. It includes following operators:
g:
: Genus name, can be abbreviated (for example g:Bubo, g:B.).
sp:
: specific epithet, can be abbreviated (for example sp:galloprovincialis,
sp:gallop.).
isp:
: Infraspecific epithet, can be abbreviated (for example isp:auspicalis,
isp:ausp.).
asp:
: Either specific, or infraspecific epithet (for example asp:bubo).
au:
: One of the authors of a name, can be abbreviated (for example au:Linn.,
au:Linnaeus).
y:
: Year. Can be one year, or a year range (for example y:1888, y:1800-1802,
y:1756-, y:-1880)
ds:
: Limit result to one or more data-sources. Note that command line sources
option, if given, will overwrite this setting (ds:1,2,172).
tx:
: Parent taxon. Limits results to names that contain a particular clade in
their classification. If ds: is given, uses the classification of the
first data-source in the setting. If ds: is not given, uses managerial
classification of the Catalogue of Life (tx:Hemiptera, tx:Animalia,
tx:Magnoliopsida).
all:
: If true, [gnverifier] will show all results, not only the best ones.
The setting can be true or false (all:t, all:f). This setting
will become true if sources command line option is set to 0.
n:
: A "name" setting, that allows to combine several query components together
for convenience. Note that it is not a 'real' scientific name, but a shortcut
to enter several settings at once loosely following rules of nomenclature
(n:B. bubo Linn. 1758). For example, in contrast with GNparser results, it
is possible to have abbreviated specific epithets or range in years: n:Mono. gall. Oliv. 1750-1800.
The query language is in Beta stage, and might change to some degree, to
improve its functionality.
Often there are errors in species eptithets gender. Because of that search will try to detect names in any gender that correspond to the epithet.
The search requires to have either sp:, isp: or asp: setting,
or provide their analogs in n: setting.
gnverifier "n:Pom. saltator tx:Animalia y:1750-"
gnverifier "g:Plantago asp:major au:Linn."
gnverifier "g:Cara. isp:daurica ds:1,12"
Authors: Dmitry Mozzherin
Copyright © 2020-2021 Dmitry Mozzherin. See LICENSE for further details.