File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -352,9 +352,14 @@ def cif2pdb(input_cif_path,final_pdb_path):
352352 chain_ids = block_list .index ("_atom_site.label_asym_id" )
353353 atom_type_ids = block_list .index ("_atom_site.label_atom_id" )
354354 res_name_ids = block_list .index ("_atom_site.label_comp_id" )
355- x_ids = block_list .index ("_atom_site.Cartn_x" )
356- y_ids = block_list .index ("_atom_site.Cartn_y" )
357- z_ids = block_list .index ("_atom_site.Cartn_z" )
355+ try :
356+ x_ids = block_list .index ("_atom_site.Cartn_x" )
357+ y_ids = block_list .index ("_atom_site.Cartn_y" )
358+ z_ids = block_list .index ("_atom_site.Cartn_z" )
359+ except :
360+ x_ids = block_list .index ("_atom_site.cartn_x" )
361+ y_ids = block_list .index ("_atom_site.cartn_y" )
362+ z_ids = block_list .index ("_atom_site.cartn_z" )
358363 try :
359364 occu_ids = block_list .index ['_atom_site.occupancy' ]
360365 except :
You can’t perform that action at this time.
0 commit comments