-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Defining image groupings for serial data #2251
Merged
jbeilstenedmands
merged 28 commits into
dials:main
from
jbeilstenedmands:image_grouping
Feb 20, 2023
Merged
Defining image groupings for serial data #2251
jbeilstenedmands
merged 28 commits into
dials:main
from
jbeilstenedmands:image_grouping
Feb 20, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jbeilstenedmands
force-pushed
the
image_grouping
branch
from
November 3, 2022 14:39
7006051
to
4c70a78
Compare
This reverts commit f930a63.
jbeilstenedmands
force-pushed
the
image_grouping
branch
from
November 4, 2022 14:29
7bd17fe
to
9777e08
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This module implements ways to define groupings of still images by arbitrary metadata, and methods to use that to split experiment and reflection files by those groupings.
For an example use case, consider an
integrated.expt
,integrated.refl
file pair that contains data from a dataset with an image templateexample_####.cbf
, and the experiment is a dose series on a grid of crystals with each crystal receiving 10 exposures in series.The code works by parsing a yaml file of the following example format:
The following code can use such a yaml file to split the files into 10
.expt
,.refl
files containing the data from each dose point, or alternatively to write agroup_id
column into the data files.The fully generalised example is for h5 image files, where on can link to an arbitrary metadata array. Furthermore, data can be grouped by multiple metadata items, with tolerances specified to allow grouping of continuous metadata values such as wavelength:
Finally, a couple of special options are defined which can be helpful for templated data - "repeat={n}" or "block={f}:{l}:{n}", to indicate metadata data occurring on a repeat cycle of every$n$ image being equivalent (e.g. timepoints in a dose series), or equivalent in blocks of $n$ images (e.g. to define the physical crystals in a dose series).
This is not necessarily something that would be directly exposed to the general user of programs, more defining a backend structure of how we can define and use arbitrary groupings in a consistent manner.