Skip to content

Commit

Permalink
updates to v0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Palmer authored and Jon Palmer committed Jun 15, 2016
1 parent 8ff6abb commit 021da94
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions util/getEggNog.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

if [ -z "$1" ]; then
echo "Usage: getEggNog.sh fuNOG directory"
exit
fi


EGGNOG=$1
wget -c --tries=0 --read-timeout=20 http://eggnogdb.embl.de/download/eggnog_4.5/data/$EGGNOG/$EGGNOG.hmm.tar.gz
wget -c --tries=0 --read-timeout=20 http://eggnogdb.embl.de/download/eggnog_4.5/data/$EGGNOG/$EGGNOG.annotations.tsv.gz
gunzip $EGGNOG.annotations.tsv.gz
tar -zxf $EGGNOG.hmm.tar.gz
find $EGGNOG\_hmm/ -maxdepth 1 -type f -name '*.hmm' -exec cat '{}' \; > $EGGNOG\_4.5.hmm
hmmpress $EGGNOG\_4.5.hmm
rm $EGGNOG.hmm.tar.gz
rm -R $EGGNOG\_hmm/
for i in $EGGNOG\*; do
mv $i $2/
done
echo "Done, $EGGNOG DB is now ready to use"

0 comments on commit 021da94

Please sign in to comment.