You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Avogadrolibs: 1.98.1 in the nightly built AppImage for Linux, packaged 2024-02-08 22:14, md5sum is d6b0578d68f58a067ff0de74362b2aee Avogadro2.AppImage.zip
Qt: 5.15.2
Desktop version:
OS: Linux Debian 13/trixie, branch testing
Describe the bug
A structure model read by Avogadro as .cif file about a molecular compound initially displays well with atoms connected by reasonable bonds. Once one aims for a depiction which fills the unit cell, the original molecule is oddly truncated, and the new molecule(s) is/are displayed partially, with isolated atoms only.
Because this does not happen to models of inorganic structures (e.g., sodium chloride), I speculate bonds assigned while initially reading the .cif file might contribute to the issue.
To Reproduce
Observed with .cif files 4039026.cif by the crystallographic open database (COD)
as display types, ensure Crystal Lattice, Ball and Stick are activated
read either of the files by Ctrl + O / File -> Open
to complete the cell, Crystal -> Space Group -> Fill Unit Cell
See error
Expected behavior
The preferred result would i) retain the molecule initially displayed complete, ii) apply the symmetry operators in the .cif reports, iii) display fully the then generated new molecules whose centroids fit into the unit cell. This is the default for instance in CCDC's Mercury visualizer (other options available there are e.g., to display molecules with any or all atoms in the unit cell; but each option has pros and cons)
Thanks for opening your first issue here! Please try to include example files and screenshots if possible. If you're looking for support, please post on our forum: https://discuss.avogadro.cc/
The "trick" is that it's keeping bonds even when they should span the unit cell boundaries.
I think the behavior of CCDC Mercury is to "fill" the unit cell, but include atoms that span the boundary if they're part of the same molecule, correct?
When you have a chance, could you check the latest nightly build? I made some progress towards this - the recent #1898 will now only "wrap" new atoms when filling the unit cell, which should preserve the existing atom and bonds.
It will take some time to work through better heuristics like CCDC Mercury.
Avogadro version:
md5sum
isd6b0578d68f58a067ff0de74362b2aee Avogadro2.AppImage.zip
Desktop version:
Describe the bug
A structure model read by Avogadro as .cif file about a molecular compound initially displays well with atoms connected by reasonable bonds. Once one aims for a depiction which fills the unit cell, the original molecule is oddly truncated, and the new molecule(s) is/are displayed partially, with isolated atoms only.
Because this does not happen to models of inorganic structures (e.g., sodium chloride), I speculate bonds assigned while initially reading the .cif file might contribute to the issue.
To Reproduce
Observed with .cif files
4039026.cif
by the crystallographic open database (COD)Crystal Lattice
,Ball and Stick
are activatedCtrl
+O
/ File -> OpenExpected behavior
The preferred result would i) retain the molecule initially displayed complete, ii) apply the symmetry operators in the .cif reports, iii) display fully the then generated new molecules whose centroids fit into the unit cell. This is the default for instance in CCDC's Mercury visualizer (other options available there are e.g., to display molecules with any or all atoms in the unit cell; but each option has pros and cons)
Screenshots
Additional context
2024-02-09_model_report.zip
The text was updated successfully, but these errors were encountered: