@@ -1209,11 +1209,11 @@ def _maybe_add_missing_scheme_tables(
12091209 inplace = False ,
12101210 )
12111211 update ['_pdbx_poly_seq_scheme.asym_id' ] = res_asym_ids
1212+ update ['_pdbx_poly_seq_scheme.pdb_strand_id' ] = res_strand_ids
12121213 update ['_pdbx_poly_seq_scheme.pdb_seq_num' ] = auth_seq_ids [res_mask ]
12131214 update ['_pdbx_poly_seq_scheme.pdb_ins_code' ] = pdb_ins_codes [res_mask ]
12141215 update ['_pdbx_poly_seq_scheme.seq_id' ] = label_seq_ids [res_mask ]
12151216 update ['_pdbx_poly_seq_scheme.mon_id' ] = label_comp_ids [res_mask ]
1216- update ['_pdbx_poly_seq_scheme.pdb_strand_id' ] = res_strand_ids
12171217
12181218 required_nonpoly_scheme_cols = (
12191219 '_pdbx_nonpoly_scheme.mon_id' ,
@@ -1612,10 +1612,11 @@ def _ligand_residue_ids(chain_ids: np.ndarray) -> np.ndarray:
16121612 except KeyError as e :
16131613 raise ValueError (
16141614 'Lookup for the following atom from the _atom_site table failed: '
1615- f'(atom_id, auth_seq_id, res_name, ins_code)={ e } . This is '
1616- 'likely due to a known issue with some multi-model mmCIFs that only '
1617- 'match the first model in _atom_site table to the _pdbx_poly_scheme, '
1618- '_pdbx_nonpoly_scheme, or _pdbx_branch_scheme tables.'
1615+ f'(label_asym_id, auth_seq_id, res_name, ins_code)={ e } . This typically '
1616+ 'indicates that the _pdbx_poly_seq_scheme, _pdbx_nonpoly_scheme, or '
1617+ '_pdbx_branch_scheme tables do not have data for all residues present '
1618+ 'in the _atom_site table. It could also be due to a known issue with '
1619+ 'a small number of multi-model mmCIFs.'
16191620 ) from e
16201621
16211622 # The residue ID will be shared for all atoms within that residue.
0 commit comments