Comments (5)
First, we'd have to store the coordinates somewhere. Currently, they are not in ChemComp::Atom. How do you store them in your program?
There is also a question of how to name these columns.
_chem_comp_atom.x
is used in, for example, Refmac monomer library. In CCD and in PDBx/mmCIF spec x coordinates are named: _chem_comp_atom.model_Cartn_x
and _chem_comp_atom.pdbx_model_Cartn_x_ideal
.
from gemmi.
I build a gemmi::Structure
from our internal backbone and use
std::unique_ptr<gemmi::ChemComp>&& cc = gemmi::make_chemcomp_with_restraints((*it_residues));
to begin populating a gemmi::ChemComp
for the atoms, bonds and angles. *it_residues
is a gemmi::Residue
. Then use internal properties to fill torsion, planar and chiral data structures into the same ChemComp. And they write out to stream
gemmi::cif::Block new_block((*it_residues).name);
gemmi::add_chemcomp_to_block(*cc.get(), new_block);
gemmi::cif::write_cif_block_to_stream(buf, new_block, gemmi::cif::Style::Simple);
Would it fit other people's needs and gemmi design if the make_chemcomp_with_restraints
moved a copy of the residue's coordinates to new properties for them in ChemComp::Atom
?
I tested _chem_comp_atom.x
, _chem_comp_atom.model_Cartn_x
and _chem_comp_atom.pdbx_model_Cartn_x_ideal
labels in cifs which are successfully read by pymol and moe
from gemmi.
It makes sense. I'll add copying coordinates in make_chemcomp_with_restraints
and add_chemcomp_to_block
.
This or next week.
from gemmi.
Oh that will be fine! I got plenty of other things to do so a few weeks is good timing. Thank you
from gemmi.
Related Issues (20)
- water, protons, OH, OD, H3O, D3O, and D8U HOT 1
- CCP4 maps: grid size is not compatible with space group HOT 7
- gemmi cif2mtz and wavelength issue? HOT 10
- orthorhombic maps lose periodic boundary conditions in P1 HOT 4
- incorrect assembly formed by gemmi compared to RCSB HOT 1
- Pip install doesn't work HOT 2
- Update cif.Style.Pdbx to write aligned columns and formatted pairs values HOT 5
- Provide type information for Python HOT 3
- cif Block, erase certain columns HOT 2
- Gemmi failing to process large? entry 5j7v HOT 6
- Example for parsing a cif file from RCSB to a protein file and a ligand file HOT 5
- The possible transformation matrices connecting a pair of enantiomorphic space groups in a given dimension. HOT 1
- How to build the C++ library separately, and the Python library separately? HOT 4
- [FEATURE REQUEST] make gemmi.cif.Block object picklable HOT 4
- Since v0.6.0 cannot "import gemmi" HOT 7
- Feature request for cif2mtz HOT 6
- Building a document from a chain in C++ HOT 2
- Normalize in sf2map isn't normalizing? HOT 3
- write Chemical Component to cif file HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gemmi.