-
-
Native Android visualization and local Python crystallography run together on the phone. The source and exported candidate stay separate.
-
Disordered bromine site: the X-ray model places the same atom at two alternative positions with 74.2% and 25.8% occupancy.
-
Offline mobile architecture: Kotlin and OpenGL ES render the crystal, while Chaquopy runs the Python tools on the device.
Edit crystals anywhere
A collaborator sends you a crystal structure just after you leave the lab. With Atomaestro for Android, you can open it on your phone, inspect it in 3D, make a targeted edit, and send back a new file for review. Once the app and CIF are on the phone, the workflow runs offline. No account required.
One atom, two possible positions
In our demo CIF, a bromine atom has two alternative positions in the X-ray model. Atomaestro maps occupancy to opacity so you can see the 74.2% and 25.8% positions in context. Use Operate to generate candidates and compare them from the same viewpoint. Candidate 001 keeps the higher-occupancy source position; 004 keeps the lower one. The demo exports 004 as a separate CIF and reopens it at 136 sites, leaving the original file untouched. It's a candidate for a colleague to review, not a recommendation to run a simulation.
Frankenstein: native Android meets local Python
Kotlin handles the file picker, touch controls, and preview state. OpenGL ES 3.0 draws the interactive crystal. Chaquopy runs the Python tools from Atomaestro and MolCrysKit on the same device, with no server in the loop. The Python libraries predate the event. The native Android app, its Python integration, and the mobile inspect–preview–export workflow are the Kiroween build.
The tricky part was keeping the original file, the preview, and the file chosen for export distinct. Switching candidates shouldn't reset the comparison or silently commit a result. And if a user discards a pending solver result, it shouldn't appear later attached to the wrong file.
How we used Kiro
One workflow, two ways to work. Kiro can be used interactively in an IDE or called from a terminal as a specialist agent. For this build, an orchestration agent coordinated Kiro CLI for focused Android work. Kiro CLI implemented the initial CIF picker and rotatable viewer; the repository instructions describe that division of work. We checked in an Android-specific agent configuration so Android tasks can be handed off with a focused role, plus product steering that separates Display, Operate, and Analysis.
A spec for the part that could go wrong. The CIF disorder spec makes the handoff explicit: generating candidates doesn't select one; preview changes the active view, not the source; export requires an explicit selection and creates a separate output. Kotlin regression tests exercise this state contract with a test backend. The phone demo shows the separate, real file handoff: export, reopen, and verify the result.
Try it on your phone
- Download the APK and the separate demo CIF from the v1.0.5 release. Install on Android 7.0+ (OpenGL ES 3.0; arm64-v8a or x86_64).
- Tap Open CIF, choose the demo file, then use Operate → Enumerate → Generate candidates with the defaults. Compare 001 and 004.
- Select 004, tap Export selected CIF, save under a new filename, and reopen the result. Analysis is read-only and shows facts for the active structure.
Demo CIF reconstructed from published coordinates: Lv, Wang & Zhou, Acta Cryst. E 68, o1852 (2012), DOI 10.1107/S1600536812022507. The video distinguishes Android phone footage from explanatory diagrams. Narration uses an authorized AI-synthesized voice.