Mercurial > repos > bebatut > group_humann2_uniref_abundances_to_go
diff download_datasets.sh @ 0:13df6c6647fb draft
planemo upload for repository https://github.com/ASaiM/galaxytools/tree/master/tools/group_humann2_uniref_abundances_to_GO commit 313952cc4a20e8fb82380bfbf5ede26217197719
author | bebatut |
---|---|
date | Mon, 22 Feb 2016 07:11:20 -0500 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/download_datasets.sh Mon Feb 22 07:11:20 2016 -0500 @@ -0,0 +1,30 @@ +#!/bin/bash + +MY_PATH=`dirname "$0"` +data_dir=$MY_PATH"/data/" + +if [ ! -d $data_dir ]; then + mkdir $data_dir +fi + +cd $data_dir + +echo "Download required databases" +echo "===========================" + +if [ ! -f "go.obo" ]; then + echo "Download basic Gene Ontology..." + wget http://geneontology.org/ontology/go.obo +fi +if [ ! -f "goslim_metagenomics.obo" ]; then + echo "Download metagenomic slim Gene Ontology..." + wget http://www.geneontology.org/ontology/subsets/goslim_metagenomics.obo +fi + +if [ ! -f "map_infogo1000_uniref50.txt" ]; then + echo "Download humann2 correspondance between Uniref50 and GO" + wget https://bitbucket.org/biobakery/humann2/raw/d1ac153083d48a5384e3b3d3597b9e36b1a4606e/humann2/data/misc/map_infogo1000_uniref50.txt.gz + gunzip map_infogo1000_uniref50.txt.gz +fi + +echo "" \ No newline at end of file