ProSHADE  0.6.5 (NOV 2018)
Protein Shape Descriptors and Symmetry Detection
All Classes Namespaces Files Functions Variables Pages
buildDatabase.py
1 
4 
5 
7 import sys;
8 import os;
9 
10 cwd = os.getcwd ( );
11 proshadePath = cwd + "/../install/python";
12 
13 sys.path.append ( proshadePath );
14 import proshade;
15 
16 
18 setUp = proshade.ProSHADE_settings ();
19 
20 
22 setUp.mapResolution = 8.0;
23 setUp.bandwidth = 0;
24 setUp.glIntegOrder = 0;
25 setUp.theta = 0;
26 setUp.phi = 0;
27 
28 # ... Settings regarding B factors
29 setUp.bFactorValue = 80.0;
30 setUp.bFactorChange = 0.0;
31 
32 # ... Setting regarding maps and removing noise
33 setUp.noIQRsFromMap = 4.0;
34 
35 # ... Settings regarding concentric shells
36 setUp.shellSpacing = 0.0;
37 setUp.manualShells = 0;
38 
39 # ... Settings regarding phase
40 setUp.usePhase = True;
41 
42 # ... Settings regarding map with phases
43 setUp.useCOM = True;
44 setUp.firstLineCOM = False;
45 
46 # ... Settings regarding space around the structure in lattice
47 setUp.extraSpace = 8.0;
48 
49 # ... Settings regarding bands to be ignored
50 setUp.ignoreLsAddValuePy ( 0 );
51 
52 # ... Settings regarding the task
53 setUp.taskToPerform = proshade.BuildDB;
54 
55 # ... Settings regarding where and if to save the clear map
56 setUp.clearMapData = True;
57 
58 # ... Settings regarding loudness
59 setUp.verbose = -1;
60 setUp.htmlReport = False;
61 
62 # ... Settings regarding the database
63 setUp.databaseName = "";
64 
65 
66 if len( sys.argv ) < 3:
67  sys.stdout.write ( "Usage: python buildDatabase.py [dbName] [filename1] [filename2] ... [filenameX] build the database in [dbName] using files [filename1] to [filenameX]. Minimum of two files.\n\n" );
68  quit ( -1 );
69 else:
70  setUp.databaseName = str ( sys.argv[1] ) ;
71  for it in range ( 2, len(sys.argv) ):
72  setUp.appendStructure ( str(sys.argv[it]) );
73 
74 
76 runProshade = proshade.ProSHADE ( setUp );
77 
78 
80 print ( "ProSHADE module version: " + runProshade.getProSHADEVersion() );
81 print ( "" );
82 
83 
85 quit ( );