ProSHADE  0.6.5 (NOV 2018)
Protein Shape Descriptors and Symmetry Detection
All Classes Namespaces Files Functions Variables Pages
overlayMaps.py
1 
4 
5 
7 import sys;
8 import os;
9 
10 cwd = os.getcwd ( );
11 proshadePath = cwd + "/../install/python3";
12 
13 sys.path.append ( proshadePath );
14 import proshade3 as proshade;
15 
16 
18 setUp = proshade.ProSHADE_settings ();
19 
20 # ... Settings regarding resolutions
21 setUp.mapResolution = 1.0;
22 
23 # ... Settings regarding space around the structure in lattice
24 setUp.extraSpace = -777.7; # this is a magic number, which will make the ProSHADE overlay mode use the appropriate extra space for computing maps and their centering, but it will then remove this extra space, so that the user will not see it. Change at your own risk, you have been warned.
25 
26 # ... Settings regarding the task
27 setUp.taskToPerform = proshade.OverlayMap;
28 
29 # ... Settings regarding rotation module, these should to be set this way!
30 setUp.clearMapData = False;
31 setUp.useCOM = False;
32 setUp.rotChangeDefault = True;
33 setUp.overlayDefaults = True;
34 setUp.maskBlurFactor = 500.0;
35 setUp.maskBlurFactorGiven = False;
36 setUp.maxRotError = 0;
37 
38 # ... Settings regarding the map saving mode
39 setUp.axisOrder = str ( "xyz" );
40 
41 # ... Settings regarding the standard output amount
42 setUp.verbose = 2;
43 setUp.htmlReport = False;
44 
45 # Get command line info
46 if len(sys.argv) < 3 or len(sys.argv) > 4:
47  print ( "Usage: python overlayMaps.py [filename1] [filename2] [filename3] to overlay [filename1] to [filename2] and save the resulting map in [filename3], where [filename3] is optional." );
48  quit ( -1 );
49 else:
50  hlpPyStrVec = proshade.StringList ( 2 );
51  hlpPyStrVec[ 0 ] = str ( sys.argv[ 1 ] );
52  hlpPyStrVec[ 1 ] = str ( sys.argv[ 2 ] );
53  setUp.structFiles = hlpPyStrVec;
54  if len(sys.argv) == 4:
55  setUp.clearMapFile = str ( sys.argv[ 3 ] );
56 
57 
59 runProshade = proshade.ProSHADE ( setUp );
60 
61 
63 print ( "ProSHADE module version: " + runProshade.getProSHADEVersion() );
64 print ( "" );
65 
66 
68 quit ( );