@@ -132,7 +132,7 @@ def io(
132
132
@click .option ("--compare_distances" , "-cd" , is_flag = True , help = "Plots distance metrics together." )
133
133
@click .option ("--plot_rmsd" , "-rmsd" , is_flag = True , help = "Plots the RMSD from CPPTraj." )
134
134
@click .option ("--cluster_frames" , "-cf" , is_flag = True , help = "Gets frames for largest CPPTraj cluster." )
135
- @click .help_option ('--help' , '-h' , is_flag = True , help = 'Exiting pyQMMM .' )
135
+ @click .help_option ('--help' , '-h' , is_flag = True , help = 'Exiting pyqmmm .' )
136
136
def md (
137
137
gbsa_submit ,
138
138
gbsa_analysis ,
@@ -215,7 +215,10 @@ def md(
215
215
import pyqmmm .md .rmsd_clusters_colorcoder
216
216
yaxis_title = "RMSD (Å)"
217
217
cluster_count = int (input ("How many cluster would you like plotted? " ))
218
- pyqmmm .md .rmsd_clusters_colorcoder .rmsd_clusters_colorcoder (yaxis_title , cluster_count , layout = 'wide' )
218
+ layout = input ("Enter layout (e.g., 'square', '5,4', or press enter for default): " ).strip () or "wide"
219
+ legend_input = input ("Show legend? (y/n): " ).strip ().lower ()
220
+ show_legend = legend_input != 'n'
221
+ pyqmmm .md .rmsd_clusters_colorcoder .rmsd_clusters_colorcoder (yaxis_title , cluster_count , layout , show_legend )
219
222
220
223
elif restraint_plot :
221
224
click .echo ("Generate single KDE plot with hyscore measurements:" )
@@ -239,70 +242,8 @@ def md(
239
242
pyqmmm .md .dssp_plotter .combine_dssp_files ()
240
243
241
244
elif rmsf :
242
- click .echo ("Calculates the RMSF:" )
243
- click .echo ("Loading..." )
244
245
import pyqmmm .md .rmsf_calculator
245
- protein = input ("What is the name of your protein? " )
246
- topology = f"1/{ protein } _dry.prmtop"
247
- reference_file = f"1/{ protein } _dry.pdb"
248
- # trajectories = ["1/1_output/constP_prod.crd",
249
- # "7u/1_output/constP_prod.crd",
250
- # "2/1_output/constP_prod.crd",
251
- # "3/1_output/constP_prod.crd",
252
- # "7/1_output/constP_prod.crd",
253
- # "8u/1_output/constP_prod.crd",
254
- # "13/1_output/constP_prod.crd",
255
- # "15/1_output/constP_prod.crd",
256
- # ]
257
- # trajectories = ["1/1_output/constP_prod.crd",
258
- # "2/1_output/constP_prod.crd",
259
- # "3/1_output/constP_prod.crd",
260
- # "4/1_output/constP_prod.crd",
261
- # "5/1_output/constP_prod.crd",
262
- # "6/1_output/constP_prod.crd",
263
- # "7/1_output/constP_prod.crd",
264
- # "2n/1_output/constP_prod.crd",
265
- # ]
266
- trajectories = ["1/1_output/constP_prod.crd" ,
267
- "2/1_output/constP_prod.crd" ,
268
- "3/1_output/constP_prod.crd" ,
269
- "4/1_output/constP_prod.crd" ,
270
- "5/1_output/constP_prod.crd" ,
271
- "6/1_output/constP_prod.crd" ,
272
- "7/1_output/constP_prod.crd" ,
273
- "4n/1_output/constP_prod.crd" ,
274
- ]
275
- # trajectories = ["2u/1_output/constP_prod.crd",
276
- # "3u/1_output/constP_prod.crd",
277
- # "4u/1_output/constP_prod.crd",
278
- # "5u/1_output/constP_prod.crd",
279
- # "6u/1_output/constP_prod.crd",
280
- # "7u/1_output/constP_prod.crd",
281
- # "9u/1_output/constP_prod.crd",
282
- # "10u/1_output/constP_prod.crd",
283
- # "11u/1_output/constP_prod.crd",
284
- # "12u/1_output/constP_prod.crd",
285
- # "13u/1_output/constP_prod.crd",
286
- # "14u/1_output/constP_prod.crd",
287
- # "15u/1_output/constP_prod.crd",
288
- # "16u/1_output/constP_prod.crd",
289
- # ]
290
- # topology = f"2u/{protein}_dry.prmtop"
291
- # reference_file = f"2u/{protein}_dry.pdb"
292
- # trajectories = ["2u/1_output/constP_prod.crd",
293
- # "3u_same-as-folded-16/1_output/constP_prod.crd",
294
- # "4u/1_output/constP_prod.crd",
295
- # "5u/1_output/constP_prod.crd",
296
- # "6u/1_output/constP_prod.crd",
297
- # "7u_same-as-folded-17/1_output/constP_prod.crd",
298
- # "9u_same-as-folded-18/1_output/constP_prod.crd",
299
- # "10u/1_output/constP_prod.crd",
300
- # "11u_same-as-folded-19/1_output/constP_prod.crd",
301
- # "12u/1_output/constP_prod.crd",
302
- # "13u/1_output/constP_prod.crd",
303
- # "14u/1_output/constP_prod.crd",
304
- # ]
305
- pyqmmm .md .rmsf_calculator .main (topology , trajectories , reference_file )
246
+ pyqmmm .md .rmsf_calculator .main ()
306
247
307
248
elif plot_rmsf :
308
249
import pyqmmm .md .rmsf_plotter
@@ -345,7 +286,7 @@ def md(
345
286
@click .option ("--plot_combine_nebs" , "-pcneb" , is_flag = True , help = "Combines and plots NEBs as a single trajectory." )
346
287
@click .option ("--extract_energies" , "-ee" , is_flag = True , help = "Extract electronic energies" )
347
288
@click .option ("--extract_gibbs" , "-eg" , is_flag = True , help = "Extract Gibbs free energies" )
348
- @click .help_option ('--help' , '-h' , is_flag = True , help = 'Exiting pyQMMM .' )
289
+ @click .help_option ('--help' , '-h' , is_flag = True , help = 'Exiting pyqmmm .' )
349
290
def qm (
350
291
plot_energy ,
351
292
flip_xyz ,
0 commit comments