Skip to content

Commit df59c5c

Browse files
committed
Merge branch 'dev'
2 parents bde92cb + 5cac496 commit df59c5c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎src/formats/cif.cpp‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ static void generate_mmcif_from_atom_and_bond_data(const MoleculeSet &ms, const
168168
"id",
169169
"type_symbol",
170170
"label_atom_id",
171+
"label_alt_id",
171172
"label_comp_id",
172173
"label_seq_id",
173174
"label_asym_id",
@@ -205,7 +206,8 @@ static void generate_mmcif_from_atom_and_bond_data(const MoleculeSet &ms, const
205206
const std::string group_PDB = atom.hetatm() ? "HETATM" : "ATOM";
206207
const std::string id = std::format("{}", atom.index() + 1);
207208
const std::string type_symbol = atom.element().symbol();
208-
const std::string& label_atom_id = id;
209+
const std::string& label_atom_id = type_symbol;
210+
const std::string label_alt_id = ".";
209211
const std::string label_comp_id = atom.residue();
210212
const std::string label_seq_id = std::format("{}", atom.residue_id());
211213
const std::string label_asym_id = atom.chain_id().empty() ? "." : atom.chain_id();
@@ -218,6 +220,7 @@ static void generate_mmcif_from_atom_and_bond_data(const MoleculeSet &ms, const
218220
id,
219221
type_symbol,
220222
label_atom_id,
223+
label_alt_id,
221224
label_comp_id,
222225
label_seq_id,
223226
label_asym_id,

0 commit comments

Comments
 (0)