Skip to content
Snippets Groups Projects
Commit 04e6e104 authored by Nikos Pappas's avatar Nikos Pappas
Browse files

added host taxon predictor

parent 20d9d9b0
No related branches found
No related tags found
No related merge requests found
# Host Taxon Predictor (HTP)
Available from `library://papanikos_182/default/htp:1.0.2`
## Procedure
1. Build the image with the definition file
```
$ sudo singularity build htp.sif htp.def
```
3. [Optional] Sign the image
```
$ singularity sign htp.sif
```
4. Push it on the cloud
```
$ singulairty push htp.sif library://papanikos_182/default/htp:1.0.2
```
## Usage
```
$ singularity run library://papanikos_182/default/htp:1.0.2 \
viruses_classifier -h
```
Bootstrap: docker
From: continuumio/miniconda3
%labels
Author "Wojciech Gałan"
Maintainer papanikos_182
Version 1.0.2
Source https://github.com/wojciech-galan/viruses_classifier
Publication https://www.nature.com/articles/s41598-019-39847-2
%post
# Update OS
apt update && apt upgrade -y
# Install dependencies
conda config --add channels conda-forge
conda config --add channels default
conda config --add channels bioconda
conda config --add channels r
conda update -y conda
conda create -n htp python=2.7 scipy numpy scikit-learn pip
conda clean --all -y
echo ". /opt/conda/etc/profile.d/conda.sh" >> $SINGULARITY_ENVIRONMENT
echo "conda activate htp" >> $SINGULARITY_ENVIRONMENT
. /opt/conda/etc/profile.d/conda.sh
conda activate htp
pip install git+https://github.com/wojciech-galan/viruses_classifier.git
%help
A container for Host Taxon Predictor v0.1.2
[https://github.com/wojciech-galan/viruses_classifier].
To run htp help:
$ singularity exec library://papanikos_182/default/htp:1.0.2 viruses_classifier --help
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment