SHARP User Manual previous next
Appendix 2

How to use SHARP under UNIX

Copyright    © 2001-2006 by Global Phasing Limited
 
  All rights reserved.
 
  This software is proprietary to and embodies the confidential technology of Global Phasing Limited (GPhL). Possession, use, duplication or dissemination of the software is authorised only pursuant to a valid written licence from GPhL.
 
Documentation    (2001-2006)  Clemens Vonrhein
 
Contact sharp-develop@GlobalPhasing.com


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
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/linux_exe/sharp
    
    export BDG_home
    
    $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 sub-directory 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 sub-directory 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: 30.07.2013