Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/dlstbx/services/trigger.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ class MultiplexReprocessingParameters(pydantic.BaseModel):
dcid: int = pydantic.Field(gt=0)
wavelength: Optional[float] = pydantic.Field(default=None, gt=0)
spacegroup: Optional[str] = None
small_molecule: Optional[bool] = None
automatic: Optional[bool] = False
comment: Optional[str] = None
wavelength_tolerance: float = pydantic.Field(default=1e-4, ge=0)
Expand Down Expand Up @@ -2311,6 +2312,7 @@ def trigger_multiplex_reprocessing(
- dcid: the dataCollectionId for the given data collection
- wavelength: wavelength of data collection
- spacegroup: space group for processing
- small_molecule: whether or not the data should be processed using small molecule space groups / shelx output files
- wavelength_tolerance: tolerance for selecting datasets with same wavelength
- comment: a comment to be stored in the ProcessingJob.comment field
- automatic: boolean value passed to ProcessingJob.automatic field
Expand Down Expand Up @@ -2388,6 +2390,7 @@ def trigger_multiplex_reprocessing(
"cchalf_filtering_method",
"image_group_size",
"sd_cutoff",
"small_molecule",
)

for param_name, param_value in parameters:
Expand Down
9 changes: 9 additions & 0 deletions src/dlstbx/wrapper/xia2_multiplex.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,9 +295,15 @@ def is_final_result(final_file: pathlib.Path) -> bool:
".sca": None,
".bib": "log",
".phil": "log",
".hkl": None,
".ins": None,
".cif": None,
}
keep = {
"scaled.mtz": "result",
"scaled.ins": "result",
"scaled.hkl": "result",
"scaled.cif": "result",
"scaled_unmerged.mtz": "result",
"scaled.expt": "result",
"scaled.refl": "result",
Expand Down Expand Up @@ -484,6 +490,9 @@ def is_final_result(final_file: pathlib.Path) -> bool:
"scaled.mtz",
"xia2.multiplex.html",
"xia2.multiplex.log",
"scaled.hkl",
"scaled.ins",
"scaled.cif",
)
)
else 2
Expand Down
10 changes: 10 additions & 0 deletions src/dlstbx/wrapper/xia2_multiplex_filtering.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ def construct_commandline(self, params, multiplex_directory):
"spacegroup",
"anomalous",
"absorption_level",
"small_molecule", # This will be taken from the parent phil
}
translation = {
"d_min": "resolution.d_min",
Expand Down Expand Up @@ -256,9 +257,15 @@ def is_final_result(final_file: pathlib.Path) -> bool:
".mtz": None,
".html": "log",
".sca": None,
".ins": None,
".hkl": None,
".cif": None,
}
keep = {
"filtered.mtz": "result",
"filtered.ins": "result",
"filtered.hkl": "result",
"filtered.cif": "result",
"filtered_unmerged.mtz": "result",
"filtered.expt": "result",
"filtered.refl": "result",
Expand Down Expand Up @@ -392,6 +399,9 @@ def is_final_result(final_file: pathlib.Path) -> bool:
"filtered.mtz",
"xia2.multiplex_filtering.html",
"xia2.multiplex_filtering.log",
"filtered.ins",
"filtered.hkl",
"filtered.cif",
)
)
else 2
Expand Down
Loading