Skip to content

Commit

Permalink
SKL Outline for Phenix EMMA Task
Browse files Browse the repository at this point in the history
  • Loading branch information
gadorlhiac committed May 13, 2024
1 parent 8a3e8fb commit 1891033
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
45 changes: 45 additions & 0 deletions lute/io/models/sfx_solve.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,3 +348,48 @@ def validate_instructions_file(cls, in_file: str, values: Dict[str, Any]) -> str
prefix: str = shelxc_cmd.split()[1]
return f"{prefix}_fa"
return in_file


class RunPhenixEMMA(ThirdPartyParameters):
"""Phenix's Euclidian Model Matching.
Superimposes two structure solutions to derive a consensus.
More information is availble at:
https://phenix-online.org/documentation/reference/emma.html
"""

executable: str = Field(
"/sdf/group/lcls/ds/tools/phenix/phenix-1.16-3549/build/bin/phenix.emma",
description="Phenix EMMA program for model comparison.",
flag_type="",
)
unit_cell: Optional[str] = Field(
description=(
"Unit cell parameters listed as a comma-separated list.\n"
"Listed as: a,b,c,al,be,ga"
),
flag_type="--",
)
space_group: Optional[str] = Field(
description="Space group symbol, e.g. P212121.",
flag_type="--",
)
symmetry_file: Optional[str] = Field(
description="External file with symmetry information.",
rename_param="symmetry",
flag_type="--",
)
tolerance: Optional[float] = Field(
description="Match tolerance for comparison.", flag_type="--"
)
diffraction_index_equivalent: Optional[bool] = Field(
description="Use only if models are diffraction-index equivalent.",
flag_type="--",
)
reference_coords: str = Field(
"", description="Reference coordinates to compare with.", flag_type=""
)
other_coords: str = Field(
"", description="Other coordinates to compare with.", flag_type=""
)
5 changes: 5 additions & 0 deletions lute/managed_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,8 @@
SHELXDEditor: Executor = Executor("EditSHELXDInstructions")
SHELXDRunner: Executor = Executor("RunSHELXD")
SHELXDRunner.shell_source("/sdf/group/lcls/ds/tools/ccp4-8.0/bin/ccp4.setup-sh")

PhenixEMMARunner: Executor = Executor("RunPhenixEMMA")
PhenixEMMARunner.shell_source(
"/sdf/group/lcls/ds/tools/phenix/phenix-1.16-3549/phenix_env.sh"
)

0 comments on commit 1891033

Please sign in to comment.