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
56112523
Commit
56112523
authored
7 years ago
by
Rafal Gumienny
Browse files
Options
Downloads
Patches
Plain Diff
docs: SCHWED-3097 More documentation
parent
765e63a3
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
singularity/README.rst
+23
-58
23 additions, 58 deletions
singularity/README.rst
singularity/Singularity.1.7.1
+10
-0
10 additions, 0 deletions
singularity/Singularity.1.7.1
with
33 additions
and
58 deletions
singularity/README.rst
+
23
−
58
View file @
56112523
OST Singularity
OST Singularity
===============
===============
Build Singularity image
Build
ing
Singularity image
-----------------------
-----------------------
---
In order to build OST Singularity image:
In order to build OST Singularity image:
...
@@ -21,77 +21,42 @@ that the image name is `ost.img`.
...
@@ -21,77 +21,42 @@ that the image name is `ost.img`.
Available apps
Available apps
--------------
--------------
OST
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
The OST app exposes OpenStructure binary and can be used to run interactive shell
To see the help for each individual app run:
and scripts.
To invoke OST shell run:
.. code-block:: bash
.. code-block:: bash
singularity run --app OST ost.img
In order to run OST script do:
.. code-block:: bash
singularity run --app OST ost.img <SCRIPT NAME> [SCRIPT OPTIONS]
.. warning::
If script requires some external files eg. PDBs, they have to be located in the
singularity help --app <APP NAME> <PATH TO OST IMAGE>
path accessible via mounted volumes. By default Singularity mounts $HOME and
goes to CWD. Thus this sould work as expected out of the box.
One can find a exemplary script (`test_docker.py`) in the <OST ROOT>/docker
directory. To run it do:
.. code-block::
cd <OST ROOT>/singularity
singularity run --app OST ost.img ../docker/test_docker.py
lDDT
Eg.:
====
This app runs the Local Distance Test. To see more details run:
.. code-block:: bash
.. code-block::
singularity help --app OST ost.img
cd <OST ROOT>/singularity
singularity run --app lDDT ost.img
Molck
Facilitating the usage
====
----------------------
This app runs the Local Distance Test. To see more details run:
For each of these apps it is useful to create an alias if they will be
frequently used. Eg. to create an alias for IPython app one can run:
.. code-block::
.. code-block::
cd <OST ROOT>/singularity
alias ost_ipython="singularity run --app IPython <PATH TO OST IMAGE>"
singularity run --app Molck ost.img
Notebook
========
Probably the best way to play with OpenStructure is to run it wihtin the Jupyter
Then (in the same terminal window) to invoke IPython app one can just type:
notebook. In order to so run:
.. code-block::
.. code-block::
cd <OST ROOT>/singularity
ost_ipython
singularity run --app Notebook ost.img
Copy the URL to the browser and launch the notebook with OST kernel. This will
load all necessary OST components just like in the OST shell. We also enabled
the nglview widget to interactively view molecular structures and trajectories.
For more details on how to use nglview see `the documentation
<http://nglviewer.org/nglview/latest/>`_.
.. warning::
As the Singularity mounts $HOME by default Jupyter and Ipython config files
To make the alias permanent put it into your `.bashrc` file or whatever file you
are moved to separate directories. Proper environmental variables are also set.
use to store the aliases.
In addition, Jupyter is run in a separate virtualenv to not interact with possibly
\ No newline at end of file
installed host version.
This diff is collapsed.
Click to expand it.
singularity/Singularity.1.7.1
+
10
−
0
View file @
56112523
...
@@ -378,6 +378,16 @@ Useful options when running on remote server:
...
@@ -378,6 +378,16 @@ Useful options when running on remote server:
Default: 8888
Default: 8888
The port the notebook server will listen on.
The port the notebook server will listen on.
Copy the URL to the browser and launch the notebook with OST kernel. This will
load all necessary OST components just like in the OST shell. We also enabled
the nglview widget to interactively view molecular structures and trajectories.
For more details on how to use nglview see http://nglviewer.org/nglview/latest/.
As the Singularity mounts $HOME by default Jupyter and Ipython config files
are moved to separate directories. Proper environmental variables are also set.
In addition, Jupyter is run in a separate virtualenv to not interact with possibly
installed host version.
To list of all available options:
To list of all available options:
singularity run --app Notebook <IMAGE> --help
singularity run --app Notebook <IMAGE> --help
...
...
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