The “einfo” command is a tool provided by the NCBI’s Entrez Programming Utilities (E-utilities) that allows users to retrieve information about the databases available through the Entrez system. This includes information such as the number of records indexed in each field of a given database, the date of the last update of the database, and the available links from the database to other Entrez databases. When the einfo command is executed, it returns a summary of the database, including its name, description, number of records, and the date of the last update. Additionally, it provides information about the available fields in the database, such as the name, description, and type of each field.
For example, when you execute the command “einfo -d
If you encounter the below error while running the command einfo:
einfo: command not found
you may try installing the below package as per your choice of distribution:
Distribution | Command |
---|---|
Debian | apt-get install ebook-tools-dbg |
Ubuntu | apt-get install ncbi-entrez-direct |
Alpine | apk add openrc |
Arch Linux | pacman -S ebook-tools |
Kali Linux | apt-get install openrc |
Fedora | dnf install ebook-tools |
OS X | brew install ebook-tools |
Raspbian | apt-get install openrc |
einfo Command Examples
1. Print all database names:
# einfo -dbs
2. Print all information of the protein database in XML format:
# einfo -db protein
3. Print all fields of the nuccore database:
# einfo -db nuccore -fields
4. Print all links of the protein database:
# einfo -db protein -links