Trent scripts

Revision as of 16:07, 18 June 2015 by Frodo (talk | contribs) (asdf)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is how to use Trent's scripts for preparing to dock.

Usage: dir name filename number typr
dir: The full path of the directory where docking will be performed, subdirectorys will be created and contain databases.
name: The idenifying name of subdirectorys (these are created in the "dir" directory).
filename: the file that contains the full paths where dbs are located,
  this you can download from zinc15.
number: number of subdiretorys to create, this devides the databases into ~ equal docking chunks to be submited.
type: size, count, or both
     size will make dirs equal chunks in terms of size,
     "count" option will put equal numbers of database files in the number directory spesified,
     the option "both" will try and satisfy both size and count options.

Here are examples of how to run it:

>> pwd
>> python /nfs/home/tbalius/zzz.github/DOCK/docking/setup/ ./ vs_frag /nfs/work/tbalius/database_ph4/frags.txt 500  count
## this will make 500 subdirectories.  with approximately the same number of databases.
>> python /nfs/home/tbalius/zzz.github/DOCK/docking/setup/ ./ vs_frag /nfs/work/tbalius/database_ph4/frags.txt 500 size

this will give more or less the behavior now, It will limit the size of the database contain in each chunk to the maximum sized chunk. (however, biggest databases are submitted first, before they were submitted last.)

>> python /nfs/home/tbalius/zzz.github/DOCK/docking/setup/ ./ vs_frag /nfs/work/tbalius/database_ph4/frags.txt 500 both

this will make > 500 subdirectory. with approximately the same number of databases, and will also limit the size of the database contain in each chunk.

Please test it and let me know if it works for you.