Skip to content

ivanamihalek/struct

Repository files navigation

This file is part of deconSTRUCT,
protein structure database search and backbone alignment application.
Written by Ivana Mihalek, with contributions from Mile Sikic.
Copyright (C) 2008-2017 Ivana Mihalek.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or,
at your option, any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see<http://www.gnu.org/licenses/>.

Contact: ivana.mihalek@gmail.com.



DEPENDENCIES
------------

depends on lapack, and  assumes the lapack is installed in /usr/lib/ 
(sudo apt-get install liblapack-dev)


INSTALLING
----------

after unpacking in $STRUCT_HOME directory

> cd $STRUCT_HOME/10_objects/
> make
> make clean

the executable called struct should now be in $STRUCT_HOME



USAGE
-----
$STRUCT_HOME/struct -in/-from <pdb/db tgt file> [-c1 <tgt chain>] \
		    [ -to <pdb/db qry file>] [ -c2 <qry chain>] \
		    [-max_out <# of almts to output>] [ -v] [ -gpu] \
		    [-no_bb] [ -p <parameter file>]


  -from/to  input files in db or pdb format (to do the alignment 
          on backbone level, both files should be pdb
  -c1/2   chains for the pdb inputs 1 and 2
  -max_out number of alignments (pdb and allignemnt files) to output
  -no_bb  do not do the alignment on the backbone level
  -v      verbose output
  -gpu    GPU versiont (placeholder; not available yet)
  -p      parameter file



TEST CASES
----------

a) 1-on-1 comparison

> cd $STRUCT_HOME/11_tests/01_2d8bA_1d0nA/
> $STRUCT_HOME/struct -from 2d8bA.pdb  -to 1d0nA.pdb

view the results:
> cat   2d8bA_1d0nA.struct_out
> pymol 1d0nA.pdb 2d8bA.to_1d0nA.*.pdb
[[ if you do not use pymol, you can view these files in your
favorite molecular viewer by finding them under open->file menu ]]


b) making a db file 
[[ db file is a file containing directions and cetnerpoints for
   each tentative, heuristically determined, element of secondary
   structure; it is used for fast searching though a large set 
   of structures, such as PDB itself ]]

> cd $STRUCT_HOME/11_tests/01_2d8bA_1d0nA/
> $STRUCT_HOME/struct -in  1d0nA.pdb

[[ note: it is possible to use the full pdb file here,
provided you have it available in your directory
> $STRUCT_HOME/struct -in 1d0n.pdb -c1 A ]]


view the output:
> cat 1d0nA.db


c) database search

> cd $STRUCT_HOME/11_tests/02_db_search
> $STRUCT_HOME/struct -from small_test.db -to ../01_2d8bA_1d0nA/2d8bA.db

view the output
> cat digest.struct_out

view the output sorted by the direction score
[[ note: the "database" we are searching here is a  
   concatenation of db files, like the one produced in  
   the testcase (b); 
   direction is the only info we have in this case ]]

> awk '$1 != "%" && $1 != "done"' digest.struct_out | sort -grk 5

About

Protein structure comparison and db search.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published