-
Notifications
You must be signed in to change notification settings - Fork 0
/
edirect_installing
19 lines (19 loc) · 1023 Bytes
/
edirect_installing
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#There are staright-forward instructions for edirect installation
#edirect installation in ubuntu by my experience is the cleanest approach although you can try cygwin similarly
#the code below is from ncbi Entrez Programming Utilities Help
#copy and paste the code in terminal as and when required
cd ~
/bin/bash
perl -MNet::FTP -e \
'$ftp = new Net::FTP("ftp.ncbi.nlm.nih.gov", Passive => 1);
$ftp->login; $ftp->binary;
$ftp->get("/entrez/entrezdirect/edirect.tar.gz");'
gunzip -c edirect.tar.gz | tar xf -
rm edirect.tar.gz
builtin exit
export PATH=${PATH}:$HOME/edirect >& /dev/null || setenv PATH "${PATH}:$HOME/edirect"
./edirect/setup.sh
#after you run setup.sh which will take a while so grab a coffee and make sure you test the edirect is working
#pubmed search for hypertrichosis output will be tabular format
esearch -db pubmed -query "hypertrichosis"|efetch -format docsum|xtract -pattern DocumentSummary -element Id Title
#any perl missing modules will pop-up dont freak out