Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
openstructure
Commits
765e63a3
Commit
765e63a3
authored
7 years ago
by
Rafal Gumienny
Browse files
Options
Downloads
Patches
Plain Diff
docs: SCHWED-3097 More help in singularity image
parent
1b1874c6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
singularity/Singularity.1.7.1
+119
-3
119 additions, 3 deletions
singularity/Singularity.1.7.1
with
119 additions
and
3 deletions
singularity/Singularity.1.7.1
+
119
−
3
View file @
765e63a3
...
@@ -200,6 +200,7 @@ EOF
...
@@ -200,6 +200,7 @@ EOF
jupyter nbextension enable nglview --py --sys-prefix
jupyter nbextension enable nglview --py --sys-prefix
# GO HOME AND CLEANUP
# GO HOME AND CLEANUP
#####################
apt-get purge -y cmake \
apt-get purge -y cmake \
wget \
wget \
git \
git \
...
@@ -212,7 +213,6 @@ apt-get clean
...
@@ -212,7 +213,6 @@ apt-get clean
apt-get autoremove -y
apt-get autoremove -y
cd $SRC_FOLDER && rm -rf $SRC_FOLDER/*
cd $SRC_FOLDER && rm -rf $SRC_FOLDER/*
#########
cd /home
cd /home
...
@@ -221,6 +221,7 @@ cd /home
...
@@ -221,6 +221,7 @@ cd /home
# ENVIRONMENT
# ENVIRONMENT
##############################################################################
##############################################################################
export OST_ROOT="/usr/local"
export OST_ROOT="/usr/local"
export OPENSTRUCTURE_VERSION="1.7.1"
export PYTHONPATH="/usr/local/lib64/python2.7/site-packages:${PYTHONPATH}"
export PYTHONPATH="/usr/local/lib64/python2.7/site-packages:${PYTHONPATH}"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib64"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib64"
export QT_X11_NO_MITSHM=1
export QT_X11_NO_MITSHM=1
...
@@ -242,18 +243,85 @@ $OST_ROOT/bin/chemdict_tool "$@"
...
@@ -242,18 +243,85 @@ $OST_ROOT/bin/chemdict_tool "$@"
##############################################################################
##############################################################################
$OST_ROOT/bin/lddt "$@"
$OST_ROOT/bin/lddt "$@"
%apphelp lDDT
The Local Distance Difference Test.
Usage:
singularity run --app lDDT <IMAGE> [options] <mod1> [mod1 [mod2]] <re1>[,ref2,ref3]
Options:
-s selection performed on ref
-c use Calphas only
-f perform structural checks and filter input data
-t fault tolerant parsing
-p <file> use specified parmeter file. Mandatory
-v <level> verbosity level (0=results only,1=problems reported, 2=full report)
-b <value> tolerance in stddevs for bonds
-a <value> tolerance in stddevs for angles
-r <value> distance inclusion radius
-i <value> sequence separation
-e print version
-x ignore residue name consistency checks
%apprun Molck
%apprun Molck
##############################################################################
##############################################################################
# MOLCK APP
# MOLCK APP
##############################################################################
##############################################################################
$OST_ROOT/bin/molck "$@"
$OST_ROOT/bin/molck "$@"
%apphelp Molck
This is molck - the molecule checker
Usage:
singularity run --app Molck <IMAGE> [options] file1.pdb [file2.pdb [...]]
Options:
--complib=path location of the compound library file. If not provided, the
following locations are searched in this order:
1. Working directory, 2. OpenStructure standard library location (if the
executable is part of a standard OpenStructure installation)
--rm=<a>,<b> remove atoms and residues matching some criteria
zeroocc - Remove atoms with zero occupancy
hyd - Remove hydrogen atoms
oxt - Remove terminal oxygens
nonstd - Remove all residues not one of the 20 standard amino acids
unk - Remove unknown and atoms not following the nomenclature
--fix-ele clean up element column
--stdout write cleaned file(s) to stdout
--out=filename write cleaned file(s) to disk. % characters in the filename are
replaced with the basename of the input file without extension.
Default: %-molcked.pdb
--color=auto|on|off
whether output should be colored
--map-nonstd maps modified residues back to the parent amino acid, for example
MSE -> MET, SEP -> SER.
%apprun OST
%apprun OST
##############################################################################
##############################################################################
# OST APP
# OST APP
##############################################################################
##############################################################################
$OST_ROOT/bin/ost "$@"
$OST_ROOT/bin/ost "$@"
%apphelp OST
The OST app exposes OpenStructure binary and can be used to run interactive shell
and scripts.
Usage:
singularity run --app OST <IMAGE> [ost options] [script to execute] [script parameters]
Options:
-i, --interactive start interpreter interactively (must be first
parameter, ignored otherwise)
-h, --help show this help message and exit
-v VLEVEL, --verbosity_level=VLEVEL
sets the verbosity level [default: 2]
If script requires some external files eg. PDBs, they have to be located in the
path accessible via mounted volumes. By default Singularity mounts $HOME and
goes to CWD. Thus this sould work as expected out of the box.
%appenv IPython
%appenv IPython
##############################################################################
##############################################################################
# NOTEBOOK ENV
# NOTEBOOK ENV
...
@@ -267,6 +335,17 @@ export DNG_INITDIR=${DNG_ROOT}/lib64/python2.7/site-packages/ost
...
@@ -267,6 +335,17 @@ export DNG_INITDIR=${DNG_ROOT}/lib64/python2.7/site-packages/ost
##############################################################################
##############################################################################
. $VIRTUALENV_DIR/bin/activate && ipython -i $DNG_INITDIR/ost_startup.py "$@"
. $VIRTUALENV_DIR/bin/activate && ipython -i $DNG_INITDIR/ost_startup.py "$@"
%apphelp IPython
OST-powered iPython shell.
Usage:
singularity run --app IPython <IMAGE> [options]
Detailed help:
singularity run --app IPython <IMAGE> --help
%appenv Notebook
%appenv Notebook
##############################################################################
##############################################################################
# NOTEBOOK ENV
# NOTEBOOK ENV
...
@@ -281,6 +360,29 @@ export XDG_RUNTIME_DIR=""
...
@@ -281,6 +360,29 @@ export XDG_RUNTIME_DIR=""
##############################################################################
##############################################################################
. $VIRTUALENV_DIR/bin/activate && jupyter notebook --NotebookApp.iopub_data_rate_limit=10000000 --no-browser "$@"
. $VIRTUALENV_DIR/bin/activate && jupyter notebook --NotebookApp.iopub_data_rate_limit=10000000 --no-browser "$@"
%apphelp Notebook
A Jupyter notebook palyground with OST and nglview.
Usage:
singularity run --app Notebook <IMAGE> [options]
The Jupyter notebook is run by default with `--NotebookApp.iopub_data_rate_limit=10000000`
and `--no-browser` options.
Useful options when running on remote server:
--ip=<Unicode> (NotebookApp.ip)
Default: 'localhost'
The IP address the notebook server will listen on.
--port=<Integer> (NotebookApp.port)
Default: 8888
The port the notebook server will listen on.
To list of all available options:
singularity run --app Notebook <IMAGE> --help
%runscript
%runscript
##############################################################################
##############################################################################
# RUNSCRIPT
# RUNSCRIPT
...
@@ -294,12 +396,26 @@ This container includes the following apps:
...
@@ -294,12 +396,26 @@ This container includes the following apps:
* Notebook - A Jupyter notebook palyground with OST and nglview
* Notebook - A Jupyter notebook palyground with OST and nglview
* lDDT - The Local Distance Difference Test
* lDDT - The Local Distance Difference Test
* Molck - Molecular checker
* Molck - Molecular checker
* ChemdictTool - Creating or update a compound library
To see the help for each individual app run:
To see the help for each individual app run:
$ singularity run --app APP <IMAGE NAME>
singularity help --app <APP NAME> <IMAGE NAME>
EOF
%help
Singularity container for OST $OPENSTRUCTURE_VERSION.
EOF
This container includes the following apps:
* OST - OpenStructure binary
* IPython - OST-powered iPython shell
* Notebook - A Jupyter notebook palyground with OST and nglview
* lDDT - The Local Distance Difference Test
* Molck - Molecular checker
* ChemdictTool - Creating or update a compound library
To see the help for each individual app run:
singularity help --app <APP NAME> <IMAGE NAME>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment