@@ -194,7 +194,7 @@ def ss_let(r):
194194
195195def match (session , chain_pairing , match_items , matrix , alg , gap_open , gap_extend , * , cutoff_distance = None ,
196196 show_alignment = defaults ['show_alignment' ], align = align , domain_residues = (None , None ), bring = None ,
197- verbose = defaults ['verbose_logging' ], always_raise_errors = False , report_matrix = False ,
197+ verbose = defaults ['verbose_logging' ], always_raise_errors = False , report_matrix = False , rmsd = False ,
198198 log_parameters = defaults ['log_parameters' ],
199199 ** align_kw ):
200200 """Superimpose structures based on sequence alignment
@@ -554,7 +554,7 @@ def match(session, chain_pairing, match_items, matrix, alg, gap_open, gap_extend
554554 s1 .name , s1 .structure .id_string , s2 .name ,
555555 s2 .structure .id_string , score ), log = (verbose is not None ))
556556 skip = set ()
557- if show_alignment :
557+ if show_alignment or rmsd :
558558 for s in [s1 ,s2 ]:
559559 if hasattr (s , '_dm_rebuild_info' ):
560560 residues = s .residues
@@ -578,7 +578,7 @@ def match(session, chain_pairing, match_items, matrix, alg, gap_open, gap_extend
578578 s .bulk_set (residues , characters )
579579 with show_context ():
580580 alignment = session .alignments .new_alignment ([s1 ,s2 ], None , auto_associate = None ,
581- name = "MatchMaker alignment" )
581+ name = "MatchMaker alignment" , viewer = show_alignment )
582582 alignment .auto_associate = True
583583 for hdr in alignment .headers :
584584 hdr .shown = hdr .ident == "rmsd"
@@ -690,7 +690,7 @@ def cmd_match(session, match_atoms, to=None, pairing=defaults["chain_pairing"],
690690 hgap = defaults ["helix_open" ], sgap = defaults ["strand_open" ], ogap = defaults ["other_open" ],
691691 cutoff_distance = defaults ["iter_cutoff" ], gap_extend = defaults ["gap_extend" ],
692692 show_alignment = defaults ['show_alignment' ], compute_s_s = defaults ["compute_ss" ],
693- keep_computed_s_s = defaults ['overwrite_ss' ], report_matrix = False ,
693+ keep_computed_s_s = defaults ['overwrite_ss' ], report_matrix = False , rmsd = False ,
694694 log_parameters = defaults ['log_parameters' ],
695695 mat_h_h = default_ss_matrix [('H' , 'H' )],
696696 mat_s_s = default_ss_matrix [('S' , 'S' )],
@@ -775,7 +775,7 @@ def cmd_match(session, match_atoms, to=None, pairing=defaults["chain_pairing"],
775775 ss_matrix [('H' , 'O' )] = ss_matrix [('O' , 'H' )] = float (mat_h_o )
776776 ss_matrix [('S' , 'O' )] = ss_matrix [('O' , 'S' )] = float (mat_s_o )
777777 ret_vals = match (session , pairing , match_items , matrix , alg , gap_open , gap_extend ,
778- ss_fraction = ss_fraction , ss_matrix = ss_matrix ,
778+ ss_fraction = ss_fraction , ss_matrix = ss_matrix , rmsd = rmsd ,
779779 cutoff_distance = cutoff_distance , show_alignment = show_alignment , bring = bring ,
780780 domain_residues = (ref_atoms .residues .unique (), match_atoms .residues .unique ()),
781781 gap_open_helix = hgap , gap_open_strand = sgap , gap_open_other = ogap , report_matrix = report_matrix ,
@@ -856,7 +856,7 @@ def register_command(logger):
856856 ('bring' , TopModelsArg ), ('show_alignment' , BoolArg ), ('compute_s_s' , BoolArg ),
857857 ('mat_h_h' , FloatArg ), ('mat_s_s' , FloatArg ), ('mat_o_o' , FloatArg ), ('mat_h_s' , FloatArg ),
858858 ('mat_h_o' , FloatArg ), ('mat_s_o' , FloatArg ), ('keep_computed_s_s' , BoolArg ),
859- ('report_matrix' , BoolArg ), ('log_parameters' , BoolArg )],
859+ ('report_matrix' , BoolArg ), ('rmsd' , BoolArg ), ( ' log_parameters' , BoolArg )],
860860 synopsis = 'Align atomic structures using sequence alignment'
861861 )
862862 register ('matchmaker' , desc , cmd_match , logger = logger )
0 commit comments