XtalLife
Quick Start
- Back to launcher overview
- See screenshot and diagram ideas
- Open the calculator with
qp2/bin/xtallife. - Review the default beam, wavelength, crystal, and dose-limit values before trusting the result.
- Choose an
experiment goalpreset first, because it can automatically change dose-limit and anomalous settings. - Adjust source, sample, and experimental setup parameters.
- Watch the computed dose rate, rotisserie factor, maximum images, and wedge size update as you edit values.
Overview
xtallife is a GUI calculator for expected crystal lifetime and damage-limited image count.
Launcher target:
qp2/bin/xtallife->python -m qp2.radiation_decay.xtallife
Window title:
Holton's Expected Crystal Lifetime Calculator
Use this tool when:
- you want a lightweight lifetime calculator instead of the more optimization-heavy
dose_planner - you want to estimate dose rate, lifetime, and images-per-wedge from beam and sample geometry
- you want experiment-goal presets such as cryo, room temperature, MAD/SAD, or S-SAD
Main Layout
The window is organized into three large grouped sections.
Xray Source Parameters
Main inputs and outputs include:
full fluxattenuation factortransmittance- horizontal and vertical beam size
wavelengthk_dosedose rate
Use this section for:
- entering beamline source conditions
- checking the calculated dose-rate consequences of your flux, transmission, and wavelength choices
Sample Parameters
Main controls include:
experiment goal- resolution
- dose limit
- crystal dimensions
- anomalous-related controls when relevant
Use this section for:
- selecting the scientific goal of the experiment
- defining crystal size and damage tolerance
- letting the goal preset drive dose-limit behavior when appropriate
Experimental Setup
Main controls include:
- exposure time
- inverse beam
- number of wavelengths
- translation and wedge-style behavior
- warning handling
Use this section for:
- estimating how collection strategy affects usable images
- checking wedge size and crystal utilization
Experiment Goal Presets
The experiment goal combo is one of the most important controls.
Examples include:
high resolution (cryo)MAD/SAD phasingS-SAD phasingroom temperatureSe-MetHg-CysCys-CysBr-RNACl-ligandphotosystem IIputidaredoxinbacteriorhodopsinFe in myoglobinCustom ...
What to expect:
- changing the preset can automatically modify dose-limit behavior
- anomalous-focused presets can enable different defaults such as inverse beam or related settings
- room-temperature style presets can force a much smaller allowable dose than cryogenic presets
Common Workflows
Fast cryo lifetime estimate
- Open
xtallife. - Leave
experiment goalathigh resolution (cryo)or choose an equivalent preset. - Confirm flux, attenuation, wavelength, and beam size.
- Enter crystal dimensions and exposure time.
- Review dose rate, max images, and wedge size.
MAD or SAD planning pass
- Open
xtallife. - Choose
MAD/SAD phasingor another anomalous preset. - Review the dose limit after the preset change.
- Adjust exposure, inverse beam, and number of wavelengths.
- Review the new maximum-image and wedge estimates.
Room-temperature check
- Open
xtallife. - Choose
room temperature. - Review the much lower dose tolerance.
- Adjust exposure and geometry until the image count looks realistic.
Computed Outputs
Important calculated values include:
k_dosedose raterotisserie factor- maximum number of images at the dose limit
- images per wedge
Practical note:
- these values update from the current form state, so the calculator is most useful as an interactive what-if tool
Diagram
flowchart LR
A[Source inputs] --> D[Dose rate]
B[Sample goal and size] --> E[Dose limit and crystal usage]
C[Exposure and setup] --> F[Wedge and image counts]
D --> G[Lifetime estimate]
E --> G
F --> G
Suggested Screenshots
Best screenshot candidates for this page:
- the full main window showing the three grouped sections
- the
experiment goaldropdown expanded so users can see the preset list
If you add just one image, the full-window screenshot is the most useful.
Practical Notes
- default values are pre-populated at startup, so always review them before using the result operationally
k_doseis derived from wavelength- some presets automatically adjust the dose limit
- if warnings are enabled, QP2 can warn that the wedge size is too small and may automatically adjust exposure time
Caveats
xtallifeis a GUI tool and requires a GUI-capable environment.- It is an interactive calculator, not a batch-processing or export pipeline.
- Preset changes can overwrite dose-limit assumptions unexpectedly if you are not watching the form.
- Some user actions can trigger automatic behavior changes, including exposure-time adjustment after warnings.