Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
| hex [2017/02/15 09:34] – [How to use it] admin | hex [2017/02/22 14:43] (Version actuelle) – admin | ||
|---|---|---|---|
| Ligne 9: | Ligne 9: | ||
| </ | </ | ||
| - | ====== How to use it ====== | + | ====== How to use it? ====== |
| + | |||
| + | ===== Interactive mode ===== | ||
| < | < | ||
| Hex is used in interactive mode with remote visualization capability with GPU [[visualisation_a_distance]].</ | Hex is used in interactive mode with remote visualization capability with GPU [[visualisation_a_distance]].</ | ||
| + | <note important> | ||
| Before starting using Hex, we need to create a cache directory in **WORK** folder : | Before starting using Hex, we need to create a cache directory in **WORK** folder : | ||
| - in your WORK create a directory named hex_work: mkdir hex_work | - in your WORK create a directory named hex_work: mkdir hex_work | ||
| - | - append your '' | + | - append your '' |
| + | |||
| + | </ | ||
| Here are the steps to follow: | Here are the steps to follow: | ||
| - Request a remote GPU session: 3dession | - Request a remote GPU session: 3dession | ||
| - | - open a VNC session as explained [[here|visualisation_a_distance]] | + | - open a VNC session as explained [[visualisation_a_distance|here]] |
| - in the remote desktop open a terminal and load hex: '' | - in the remote desktop open a terminal and load hex: '' | ||
| - and finally run hex: '' | - and finally run hex: '' | ||
| + | |||
| + | |||
| + | {{: | ||
| + | |||
| + | |||
| + | ===== Batch mode ===== | ||
| + | This mode is used to run '' | ||
| + | |||
| + | <code bash> | ||
| + | hex [-options] [pdbfile(s)] | ||
| + | </ | ||
| + | |||
| + | Say we want to run docking of two structures '' | ||
| + | |||
| + | <file bash dock_ab.mac> | ||
| + | DOCKING_RECEPTOR_SAMPLES | ||
| + | DOCKING_LIGAND_SAMPLES | ||
| + | DOCKING_ALPHA_SAMPLES | ||
| + | |||
| + | RECEPTOR_RANGE_ANGLE | ||
| + | LIGAND_RANGE_ANGLE | ||
| + | TWIST_RANGE_ANGLE | ||
| + | |||
| + | R12_RANGE | ||
| + | R12_STEP | ||
| + | GRID_SIZE | ||
| + | LIGAND_RANGE_ANGLE | ||
| + | RECEPTOR_RANGE_ANGLE | ||
| + | |||
| + | DOCKING_MAIN_SCAN | ||
| + | DOCKING_MAIN_SEARCH | ||
| + | |||
| + | |||
| + | ACTIVATE_DOCKING | ||
| + | </ | ||
| + | |||
| + | We run '' | ||
| + | |||
| + | <code bash > | ||
| + | $ hex -nogui -ncpu 2 a.pdb b.pdb -e dock_ab.mac -l docking_ab.log | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | <note important> | ||
| + | Typically, we run hex inside '' | ||
| + | </ | ||
| + | |||
| + | |||
| + | <code bash> | ||
| + | $ singularity exec $SING_SPOOL/ | ||
| + | </ | ||
| + | |||
| + | 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/ | ||
| + | |||
| + | ## run hex inside singularity | ||
| + | singularity exec $SING_SPOOL/ | ||
| + | |||
| + | </ | ||
| + | |||
| + | Finally submit the job to SGE: | ||
| + | <code bash> | ||
| + | $ qsub script.sge | ||
| + | </ | ||
| + | |||