phgenomics-singularity/stacks:v2.0beta9

$ singularity pull shub://phgenomics-singularity/stacks:v2.0beta9

Singularity Recipe

Bootstrap: docker
From: ubuntu:trusty-20170817

%help
A Singularity image for Stacks v2.0Beta6

%labels
Maintainer Anders Goncalves da Silva
Build 1.0
Stacks v2.0Beta9 (with SparseHash)

%post

  STACKS_VERSION=2.0Beta9
  
  sudo locale-gen en_US.UTF-8
  sudo update-locale
  
  sudo apt-get --yes update
  sudo apt-get --yes install build-essential autoconf automake wget git zlib1g-dev libbz2-dev libncurses5-dev curl unzip
  sudo apt-get --yes install libdbd-mysql-perl

  sudo apt-get --yes install software-properties-common
  sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test
  sudo apt-get --yes update
  sudo apt-get --yes install g++-4.9

  cd /tmp
  
  echo "Installing Stacks"
  
  STACKS_URL="http://catchenlab.life.illinois.edu/stacks/source/stacks-${STACKS_VERSION}.tar.gz"
  STACKS_ZIP=stacks.tar.gz
  wget -O ${STACKS_ZIP} "${STACKS_URL}"
  tar xf ${STACKS_ZIP}
  cd stacks-${STACKS_VERSION}
  CC=gcc-4.9 CXX=g++-4.9 ./configure --enable-sparsehash
  make -j4
  sudo make install
  sudo mkdir /tests
  sudo mv tests/* /tests
  
  echo "Sorting some env variables..."
  sudo echo 'LANGUAGE="en_US:en"' >> $SINGULARITY_ENVIRONMENT
  sudo echo 'LC_ALL="en_US.UTF-8"' >> $SINGULARITY_ENVIRONMENT
  sudo echo 'LC_CTYPE="UTF-8"' >> $SINGULARITY_ENVIRONMENT
  sudo echo 'LANG="en_US.UTF-8"' >>  $SINGULARITY_ENVIRONMENT
  
  echo "Done"
  
%runscript
  echo "Welcome to STACKS 2.0Beta9" >&2
  exec "$@"

%test
  echo "Testing STACKS"
  # for testfile in $(ls /tests/*.t);
  # do
  #   bash ${testfile};
  # done

Collection


View on Datalad

Metrics

key value
id /containers/phgenomics-singularity-stacks-v2.0beta9
collection name phgenomics-singularity/stacks
branch master
tag v2.0beta9
commit 25b2aa0e7369e75bdbfc7613009d55f9579f4d03
version (container hash) 888db789c69f1f0b767ee0d870a1bedd
build date 2018-04-26T16:28:56.606Z
size (MB) 883
size (bytes) 231194655
SIF Download URL (please use pull with shub://)
Datalad URL View on Datalad
Singularity Recipe Singularity Recipe on Datalad
We cannot guarantee that all containers will still exist on GitHub.