Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
hex [2017/02/22 13:47] – [Batch mode] adminhex [2017/02/22 14:43] (Version actuelle) – admin
Ligne 38: Ligne 38:
 This mode is used to run ''hex'' without gui enabled. We are using SGE to execute hex in multicore nodes in batch mode. This mode is used to run ''hex'' without gui enabled. We are using SGE to execute hex in multicore nodes in batch mode.
  
-Here is the list of available options for command line interface:     
 <code bash> <code bash>
-ex [-options] [pdbfile(s)]+hex [-options] [pdbfile(s)] 
 +</code>
  
-where options may be a combination of: +Say we want to run docking of two structures ''a.pdb'' and ''b.pdb''. We will use a macro file ''dock_ab.mac'' containing these parameters:
-  +
  
--v#           (where # is a version number/string - e.g. 4f, 5a) +<file bash dock_ab.mac> 
--ncpu n       (where n is the number of CPUs to use) +DOCKING_RECEPTOR_SAMPLES  492 
--ngpu n       (where n is the number of GPUs to use) +DOCKING_LIGAND_SAMPLES    492 
--nice n       (runs at lower priority: n a "nice" value) +DOCKING_ALPHA_SAMPLES     128
--cuda         (request program with CUDA support; the default) +
--nocuda       (request program with no CUDA support) +
--kill         (try to kill any stuck Hex jobs) +
--g            (run within a debugger such as gdb) +
--debug        (print debugging messages; another -debug adds more) +
--noexec       (don't put a batch run in the background) +
--gui          (force GUI mode even when stdin is not a terminal) +
--stereo       (request a stereographic window) +
--s            (same as -stereo) +
--nostereo     (request a non-stereographic window) +
--nos          (same as -nostereo) +
--messages     (write messages to a separate window - the default) +
--nomessages   (write messages to standard output, not separate window) +
--stdout       (same as -nomessages) +
--log logfile  (or -l, write log of entire session to file) +
--l   logfile  (same as -log) +
--pdb pdbfiles (load up to 3 PDB files to be displayed) +
--browse       (same as -pdb, but forces interactive mode for browser) +
--noligand     (treat two PDB files as receptor + complex) +
--2            (short form of -noligand: superposes two molecules) +
--pos          (position ligand near receptor - the default) +
--nopos        (don't mess with ligand coordinates) +
--e macfile(s) (execute up to 3 macro files)+
  
 +RECEPTOR_RANGE_ANGLE       30
 +LIGAND_RANGE_ANGLE         30
 +TWIST_RANGE_ANGLE         360
 +
 +R12_RANGE                  21
 +R12_STEP                 0.75
 +GRID_SIZE                0.6
 +LIGAND_RANGE_ANGLE         30
 +RECEPTOR_RANGE_ANGLE       30
 +
 +DOCKING_MAIN_SCAN          16
 +DOCKING_MAIN_SEARCH        25
 +
 +
 +ACTIVATE_DOCKING
 +</file>
 +
 +We run ''hex'' using 2 processors for example:
 +
 +<code bash >
 +$ hex -nogui -ncpu 2 a.pdb  b.pdb -e dock_ab.mac -l docking_ab.log
 </code> </code>
 +
 +
 +
 +<note important>**BUT** Since ''Hex'' binary are compiled for ''Ubuntu'' like distribution we will use a container (singularity) to run hex.
 +Typically, we run hex inside ''singularity'' like this (example taken from hex website):
 +</note>
 +
 +
 +<code bash>
 +$ singularity exec $SING_SPOOL/ubuntu-16.img hex -nogui -ncpu 2 a.pdb b.pdb -e dock_ab.mac -l docking_ab.log
 +</code>
 +
 +The final SGE script, to run the command above using 16 cores is :
 +<file bash script.sge>
 +#!/bin/bash
 +#$ -N Docking
 +#$ -q all.q
 +#$ -pe openmp 16 ## we request 16 cores
 +
 +## We load singularity module
 +module load tools/singularity
 +
 +## run hex inside singularity
 +singularity exec $SING_SPOOL/ubuntu-16.img hex -nogui -ncpu $NSLOTS a.pdb b.pdb -e dock_ab.mac -l docking_ab.log
 +
 +</file>
 +
 +Finally submit the job to SGE:
 +<code bash>
 +$ qsub script.sge
 +</code> 
  
  • hex.1487771266.txt.gz
  • Dernière modification : 2017/02/22 13:47
  • de admin