powerPlant/squeezemeta-srf:1.0.0-beta

$ singularity pull shub://powerPlant/squeezemeta-srf:1.0.0-beta

Singularity Recipe

Bootstrap: docker
From: centos:7

%labels
Maintainer eric.burgueno@plantandfood.co.nz
Version v1.0.0-beta

%post
## Install prerequisites
yum -y install epel-release
yum -y install ruby perl-Tie-IxHash perl-DBI perl-DBD-mysql perl-XML-LibXML perl-DBD-SQLite perl-Time-Piece python-pip python-matplotlib R wget
python -m pip install scipy dendropy pysam

## Install SqueezeMeta
export VERSION="1.0.0-beta"
cd /opt
wget https://github.com/jtamames/SqueezeMeta/archive/v$VERSION.tar.gz
tar -xzf v$VERSION.tar.gz

## Install R dependencies
Rscript -e 'install.packages("doMC", repos="https://cloud.r-project.org/")'
Rscript -e 'install.packages("ggplot2", repos="https://cloud.r-project.org/")'
Rscript -e 'install.packages("data.table", repos="https://cloud.r-project.org/")'
R CMD INSTALL /opt/SqueezeMeta-$VERSION/bin/DAS_Tool/package/DASTool_1.1.1.tar.gz

## Configure data location (must be bind-mounted)
echo '{"dataRoot": "/media/db", "remoteManifestURL": "https://data.ace.uq.edu.au/public/CheckM_databases/", "manifestType": "CheckM", "localManifestName": ".dmanifest", "remoteManifestName": ".dmanifest"}' > /opt/SqueezeMeta-$VERSION/lib/checkm/DATA_CONFIG

cp -a /opt/SqueezeMeta-$VERSION/scripts/SqueezeMeta_conf_original.pl /opt/SqueezeMeta-$VERSION/scripts/SqueezeMeta_conf.pl
sed -i 's/^\$databasepath\=\"\$installpath/\$databasepath\=\"\/media/' /opt/SqueezeMeta-$VERSION/scripts/SqueezeMeta_conf.pl

## Cleanup
rm -f v$VERSION.tar.gz
yum -y clean all

%runscript
if [ ! -f /media/db/.dmanifest ]; then
  exec /bin/echo -e "This container requires that you bind mount the location of SqueezeMeta data into /media. Please use \"singularity run -B <path_to_squeezemedia_data>:/media $SINGULARITY_NAME\" and try again. You can download the latest version of the data files by running the \"download_databases.pl\" script. See https://github.com/jtamames/SqueezeMeta#3-downloading-or-building-databases for more information."
else
  exec perl /opt/SqueezeMeta-1.0.0-beta/scripts/SqueezeMeta.pl "$@"
fi

%environment
export LANG=C

Collection


View on Datalad

Metrics

key value
id /containers/powerPlant-squeezemeta-srf-1.0.0-beta
collection name powerPlant/squeezemeta-srf
branch master
tag 1.0.0-beta
commit f52357afd803c803d0b50fc064449b4f96c2e56d
version (container hash) 9ff5eb802799d8f95a4af5d6f0db5e21
build date 2019-05-10T10:48:53.593Z
size (MB) 2182
size (bytes) 828219423
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.