ProSHADE  0.6.5 (NOV 2018)
Protein Shape Descriptors and Symmetry Detection
All Classes Namespaces Files Functions Variables Pages
rotateMap.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 # ... Settings regarding resolutions
21 setUp.mapResolution = 1.0;
22 
23 # ... Settings regarding space around the structure in lattice
24 setUp.extraSpace = 0.0;
25 
26 # ... Settings regarding the task
27 setUp.taskToPerform = proshade.RotateMap;
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.maskBlurFactor = 0.0;
34 setUp.maskBlurFactorGiven = False;
35 
36 # ... Settings regarding the map rotation mode
37 setUp.rotAngle = 0.0;
38 setUp.rotXAxis = 0.0;
39 setUp.rotYAxis = 0.0;
40 setUp.rotZAxis = 0.0;
41 
42 # ... Settings regarding the map saving mode
43 setUp.axisOrder = str ( "xyz" );
44 
45 # ... Settings regarding the standard output amount
46 setUp.verbose = -1;
47 setUp.htmlReport = False;
48 
49 # Get command line info
50 if len(sys.argv) != 7:
51  print ( "Usage: python rotateMap.py [filename1] [filename2] [xAxis] [yAxis] [zAxis] [angle] to rotate [filename1] by [angle] along the rotation axis ( [xAxis], [yAxis], [zAxis] ) and save the resulting map in [filename2]." );
52  quit ( -1 );
53 else:
54  setUp.appendStructure ( str( sys.argv[ 1 ] ) );
55  setUp.clearMapFile = str ( sys.argv[ 2 ] );
56  setUp.rotXAxis = float ( sys.argv[ 3 ] );
57  setUp.rotYAxis = float ( sys.argv[ 4 ] );
58  setUp.rotZAxis = float ( sys.argv[ 5 ] );
59  setUp.rotAngle = float ( sys.argv[ 6 ] );
60 
61 
63 runProshade = proshade.ProSHADE ( setUp );
64 
65 
67 print ( "ProSHADE module version: " + runProshade.getProSHADEVersion() );
68 print ( "" );
69 
70 
72 quit ( );