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 14:32] – 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>
 hex [-options] [pdbfile(s)] hex [-options] [pdbfile(s)]
 </code> </code>
  
-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 :+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:
  
 <file bash dock_ab.mac> <file bash dock_ab.mac>
Ligne 67: Ligne 66:
 </file> </file>
  
-We run ''hex'' using 2 processors:+We run ''hex'' using 2 processors for example:
  
 <code bash > <code bash >
Ligne 81: Ligne 80:
  
 <code bash> <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+$ singularity exec $SING_SPOOL/ubuntu-16.img hex -nogui -ncpu 2 a.pdb b.pdb -e dock_ab.mac -l docking_ab.log
 </code> </code>
  
 The final SGE script, to run the command above using 16 cores is : The final SGE script, to run the command above using 16 cores is :
-<code bash>+<file bash script.sge>
 #!/bin/bash #!/bin/bash
 #$ -N Docking #$ -N Docking
 #$ -q all.q #$ -q all.q
-#$ - pe openmp 16 ## we request 16 cores+#$ -pe openmp 16 ## we request 16 cores
  
 ## We load singularity module ## We load singularity module
Ligne 95: Ligne 94:
  
 ## run hex inside singularity ## run hex inside singularity
-singularity exec SING_SPOOL/ubuntu-16.img hex -nogui -ncpu 16 a.pdb b.pdb -e dock_ab.mac -l docking_ab.log+singularity exec $SING_SPOOL/ubuntu-16.img hex -nogui -ncpu $NSLOTS a.pdb b.pdb -e dock_ab.mac -l docking_ab.log
  
-</code>+</file>
  
 Finally submit the job to SGE: Finally submit the job to SGE:
  • hex.1487773937.txt.gz
  • Dernière modification : 2017/02/22 14:32
  • de admin