Edirect es un conjunto de herrramientas proporcionadas por NCBI para hacer mas fácil la descarga de secuenciasy todo tipo de indormación desde NCBI. Una de las que más uso es efetch, un wrapper que permite descargas secuencias usando el GenBank number o cualquier tipo de código que identifique una seccuencia.
Download and install EDirect following instructions from this link https://www.ncbi.nlm.nih.gov/books/NBK179288/
Then, install the following packages
sudo apt-get install libhtml-parser-perl
sudo apt-get install libwww-perl
Finally, try the following command
efetch -db nuccore -id JN157804 -format fasta
efetch -db nuccore -id JN157804 -format fasta -seq_start 1 -seq_stop 10
Para seleccionar la base de datos correcta ver tabla1 del siguiente link https://www.ncbi.nlm.nih.gov/books/n/helpeutils/chapter2/