Skip to content

Commit

Permalink
Store mmCIF asym ID in RMF, if new enough
Browse files Browse the repository at this point in the history
  • Loading branch information
benmwebb committed Dec 4, 2024
1 parent 5080cdb commit 49f026e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions modules/rmf/src/internal/atom_links_static.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ void HierarchyLoadStatic::setup_particle(RMF::NodeConstHandle nh,
#if RMF_VERSION >= 100600
imp_chain.set_sequence_offset(chain.get_sequence_offset());
imp_chain.set_uniprot_accession(chain.get_uniprot_accession());
#endif
#if RMF_VERSION >= 100700
imp_chain.set_label_asym_id(chain.get_label_asym_id());
#endif
}
if (typed_factory_.get_is_static(nh)) {
Expand Down Expand Up @@ -225,6 +228,9 @@ void HierarchyLoadStatic::link_particle(RMF::NodeConstHandle nh,
#if RMF_VERSION >= 100600
imp_chain.set_sequence_offset(chain.get_sequence_offset());
imp_chain.set_uniprot_accession(chain.get_uniprot_accession());
#endif
#if RMF_VERSION >= 100700
imp_chain.set_label_asym_id(chain.get_label_asym_id());
#endif
}
IMP_CHECK_CODE
Expand Down Expand Up @@ -328,6 +334,9 @@ void HierarchySaveStatic::setup_node(Model *m, ParticleIndex p,
#if RMF_VERSION >= 100600
chain.set_sequence_offset(d.get_sequence_offset());
chain.set_uniprot_accession(d.get_uniprot_accession());
#endif
#if RMF_VERSION >= 100700
chain.set_label_asym_id(d.get_label_asym_id());
#endif
}
if (atom::Diffusion::get_is_setup(m, p)) {
Expand Down

0 comments on commit 49f026e

Please sign in to comment.