You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since we moved the command line input parsing to the main function, arg_dict is not needed. Removing arg_dict and replacing uses of it with args.variable_name.
Copy file name to clipboardExpand all lines: CodeEntropy/main_mcc.py
+72-97Lines changed: 72 additions & 97 deletions
Original file line number
Diff line number
Diff line change
@@ -31,36 +31,36 @@ def main():
31
31
*.csv = results from different calculateion,
32
32
*.pkl - Pickled reduced universe for further analysis,
33
33
*.out - detailed output such as matrix and spectra""")
34
-
35
-
34
+
35
+
36
36
parser.add_argument('-f', '--top_traj_file',
37
37
required=True,
38
38
dest="filePath",
39
39
action='store',
40
40
nargs='+',
41
41
help="Path to Structure/topology file (AMBER PRMTOP, GROMACS TPR which contains topology and dihedral information) followed by Trajectory file(s) (AMBER NETCDF or GROMACS TRR) you will need to output the coordinates and forces to the same file. Required.")
42
-
parser.add_argument('-l', '--selectString',
42
+
parser.add_argument('-l', '--selectString',
43
43
action='store',
44
-
dest="selectionString",
44
+
dest="selection_string",
45
45
type=str,
46
46
default='all',
47
47
help='Selection string for CodeEntropy such as protein or resid, refer to MDAnalysis.select_atoms for more information.')
48
-
parser.add_argument('-b', '--begin',
49
-
action="store",
50
-
dest="start",
51
-
help="Start analysing the trajectory from this frame index. Defaults to 0",
52
-
default=0,
48
+
parser.add_argument('-b', '--begin',
49
+
action="store",
50
+
dest="start",
51
+
help="Start analysing the trajectory from this frame index. Defaults to 0",
52
+
default=0,
53
53
type=int)
54
-
parser.add_argument('-e', '--end',
55
-
action="store",
56
-
dest="end",
57
-
help="Stop analysing the trajectory at this frame index. Defaults to -1 (end of trajectory file)",
54
+
parser.add_argument('-e', '--end',
55
+
action="store",
56
+
dest="end",
57
+
help="Stop analysing the trajectory at this frame index. Defaults to -1 (end of trajectory file)",
58
58
default=-1,
59
59
type=int)
60
-
parser.add_argument('-d', '--step',
61
-
action="store",
62
-
dest="step",
63
-
help="interval between two consecutive frames to be read index. Defaults to 1",
60
+
parser.add_argument('-d', '--step',
61
+
action="store",
62
+
dest="step",
63
+
help="interval between two consecutive frames to be read index. Defaults to 1",
64
64
default=1,
65
65
type=int)
66
66
parser.add_argument("-n","--bin_width",
@@ -69,69 +69,69 @@ def main():
69
69
default=30,
70
70
type=int,
71
71
help="Bin width in degrees for making the histogram of the dihedral angles for the conformational entropy. Default: 30")
72
-
parser.add_argument('-k', '--tempra',
73
-
action="store",
74
-
dest="temp",
75
-
help="Temperature for entropy calculation (K). Default to 298.0 K",
76
-
default=298.0,
72
+
parser.add_argument('-k', '--tempra',
73
+
action="store",
74
+
dest="temp",
75
+
help="Temperature for entropy calculation (K). Default to 298.0 K",
76
+
default=298.0,
77
77
type=float)
78
78
parser.add_argument("-v","--verbose",
79
79
action="store",
80
80
dest="verbose",
81
81
default=False,
82
82
type=bool,
83
83
help="True/False flag for noisy or quiet output. Default: False")
84
-
parser.add_argument('-t', '--thread',
85
-
action="store",
86
-
dest="thread",
87
-
help="How many multiprocess to use. Default 1 for single core execution.",
88
-
default=1,
84
+
parser.add_argument('-t', '--thread',
85
+
action="store",
86
+
dest="thread",
87
+
help="How many multiprocess to use. Default 1 for single core execution.",
88
+
default=1,
89
89
type=int)
90
90
parser.add_argument("-o","--out",
91
91
action="store",
92
-
dest="outFile",
92
+
dest="outfile",
93
93
default="outfile.out",
94
94
help="Name of the file where the output will be written. Default: outfile.out")
95
95
parser.add_argument("-r","--resout",
96
96
action="store",
97
-
dest="resOutFile",
97
+
dest="resfile",
98
98
default="res_outfile.out",
99
99
help="Name of the file where the residue entropy output will be written. Default: res_outfile.out")
100
100
parser.add_argument("-m", "--mout",
101
101
action="store",
102
-
dest="moutFile",
102
+
dest="moutfile",
103
103
default=None,
104
104
help="Name of the file where certain matrices will be written (default: None).")
105
105
106
-
parser.add_argument('-c', '--cutShell',
106
+
parser.add_argument('-c', '--cutShell',
107
107
action='store',
108
108
dest="cutShell",
109
-
default=None,
109
+
default=None,
110
110
type=float,
111
111
help='include cutoff shell analysis, add cutoff distance in angstrom Default None will ust the RAD Algorithm')
112
-
parser.add_argument('-p', '--pureAtomNum',
112
+
parser.add_argument('-p', '--pureAtomNum',
113
113
action='store',
114
-
dest="puteAtomNum",
115
-
default=1,
114
+
dest="puteAtomNum",
115
+
default=1,
116
116
type=int,
117
117
help='Reference molecule resid for system of pure liquid. Default to 1')
118
-
parser.add_argument('-x', '--excludedResnames',
118
+
parser.add_argument('-x', '--excludedResnames',
119
119
dest="excludedResnames",
120
-
action='store',
120
+
action='store',
121
121
nargs='+',
122
-
default=None,
122
+
default=None,
123
123
help='exclude a list of molecule names from nearest non-like analysis. Default: None. Multiples are gathered into list.')
124
124
parser.add_argument('-w', '--water',
125
125
dest="waterResnames",
126
-
action='store',
126
+
action='store',
127
127
default='WAT',
128
-
nargs='+',
128
+
nargs='+',
129
129
help='resname for water molecules. Default: WAT. Multiples are gathered into list.')
130
130
parser.add_argument('-s', '--solvent',
131
-
dest="solventResnames",
132
-
action='store',
131
+
dest="solventResnames",
132
+
action='store',
133
133
nargs='+',
134
-
default=None,
134
+
default=None,
135
135
help='include resname of solvent molecules (case-sensitive) Default: None. Multiples are gathered into list.')
136
136
parser.add_argument("--solContact",
137
137
action="store_true",
@@ -144,55 +144,30 @@ def main():
144
144
print('Command line arguments are ill-defined, please check the arguments')
0 commit comments