SHARP User Manual previous next
Appendix 2

How to use SHARP under UNIX

Copyright © 2001-2005 by Clemens Vonrhein
and the Buster Development Group.
All rights reserved.


If you're not happy running the various programs through the graphical user interface Sushi (although highly recommended), here are some basic tips on how to run the various steps under UNIX. You might have to change some of the recipes to accommodate your particular setup/environment.

Note : we highly recommend running the various programs through the interface - at least to get started and to make sure the whole installation is correct. Furthermore, if you run the programs outside the interface, various links will be setup differently, and you might not be able to view some results through the external viewers provided with Sushi.


Contents


Introduction

The most important thing to do first, is to know the value of $BDG_home. This is the directory under which SHARP, autoSHARP, Sushi and accompanying programs are installed. You might want to ask your SHARP site administrator for that.

You also need to know the architecture you're running on. Currently, the following architectures are available:

NameDescription
irixn32IRIX (6.2 and later)
alphaDigitial Unix / Tru64 Unix (Compaq/HP)
linuxIntel/Linux

We will assume, that you want to keep all files and results within the sharpfiles directory structure. This way it is still possible to view and maintain results through the interface. However, you can also run the various programs in any directory. As an example, lets assume your project is called "Lysozyme-MAD-X31" and you're starting with the first run.

The following examples are all given as Bourne shell (sh): they should also be correct for shells like bash or ksh. You can easily change them to csh or tcsh syntax.


Running SHARP

  1. Preparation :

    You need to get a few files/links into place. This is done by creating a directory Lysozyme-MAD-X31.1 (e.g. in ~/sharpfile/logfiles). Inside this new directory, create the following files/links:

  2. Running it :

    Use the following small script as an example and run it within the newly created Lysozyme-MAD-X31.1directory:
    #!/bin/sh
    
    # set BDG_home:
      BDG_home=/where/ever/sharp
    
    # define SHARP binary:
      EXE=$BDG_home/bin/alpha_exe/sharp
    
    # these should be there:
     SYMOP=$BDG_home/database/symop
    ATOMSF=$BDG_home/database/atomsf
    
    export BDG_home SYMOP ATOMSF
    
    $EXE > LIST.html 2> STDERR
    


Running autoSHARP

  1. Preparation :

    You need to prepare a directory and an input file. This is done by creating a directory Lysozyme-MAD-X31.1 (e.g. in ~/sharpfile/logfiles). Inside this new directory, create the following file:

    Make sure that all files referenced in this .autoSHARP file are located in the current directory. See the list of supported files.

  2. Running it :

    Use the following small script as an example and run it within the newly created Lysozyme-MAD-X31.1directory:
    #!/bin/sh
    
    # set BDG_home:
      BDG_home=/where/ever/sharp
    
    # command (this should be there):
      CMD=$BDG_home/bin/sharp/detect.sh
    
    export BDG_home
    
    $CMD > LISTautoSHARP.html 2>&1
    


Running solvent flattening

  1. Preparation :

    You need to prepare a directory and an input file. This is done by creating a subdirectory solo_50.0pc within your Lysozyme-MAD-X31.1 directory (which is in ~/sharpfile/logfiles). Additionally, create the following file:

  2. Running it :

    Use the following small script as an example and run it within the Lysozyme-MAD-X31.1 directory:
    #!/bin/sh
    
    BDG_home=/where/ever/sharp
    CMD=$BDG_home/bin/sharp/solomon.sh
    
    export BDG_home
    
    $CMD > solo_50.0pc.log.html 2>&1
    


Running automatic building

  1. Preparation :

    You need to prepare a directory and an input file. This is done by creating a subdirectory wARP_50.0pc within your Lysozyme-MAD-X31.1 directory (which is in ~/sharpfile/logfiles). Inside this new directory, create the following files:

  2. Running it :

    Use the following small script as an example and run it within the Lysozyme-MAD-X31.1/wARP_50.0pc directory:
    #!/bin/sh
    
    BDG_X="sharp"
    BDG_home=/where/ever/sharp
    CMD=$BDG_home/bin/sharp/arpwarp.sh
    
    export BDG_home
    . $BDG_home/.bdgrc
    $CMD > ../wARP_50.0pc.log.html 2>&1
    


Last modification: 02.11.05