Skip to content

Commit

Permalink
starting to include typing
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisbrookner committed Oct 13, 2023
1 parent ed47e8e commit 93bb5f5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
32 changes: 16 additions & 16 deletions src/matchmaps/_compute_realspace_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,24 +28,24 @@


def compute_realspace_difference_map(
pdboff,
mtzoff,
mtzon,
Foff,
SigFoff,
Fon,
SigFon,
ligands=None,
dmin=None,
spacing=0.5,
on_as_stationary=False,
pdboff : Path,
mtzoff : Path,
mtzon : Path,
Foff : str,
SigFoff : str,
Fon : str,
SigFon : str,
ligands : list = None,
dmin : int = None,
spacing = 0.5,
on_as_stationary : bool = False,
input_dir=Path("."),
output_dir=Path("."),
verbose=False,
rbr_selections=None,
eff=None,
keep_temp_files=None,
radius=5,
rbr_selections : list[str] = None,
eff : str = None,
keep_temp_files : str = None,
radius : int = 5,
):
"""
Compute a real-space difference map from mtzs.
Expand Down Expand Up @@ -89,7 +89,7 @@ def compute_realspace_difference_map(
Name of a file containing a template .eff parameter file for phenix.refine.
If omitted, the sensible built-in .eff template is used. If you need to change something,
I recommend copying the template from the source code and editing that.
keep_temp_files : bool, optional
keep_temp_files : str, optional
If not None, the name of a subdirectory of the output_dir into which intermediate matchmaps files are moved upon program completion.
radius : float, optional
Maximum distance away from protein model to include voxels. Only applies to the "unmasked" difference map output.
Expand Down
5 changes: 3 additions & 2 deletions src/matchmaps/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -854,11 +854,12 @@ def _quicknorm(array):
return (array - array.mean()) / array.std()

def _validate_inputs(
input_dir,
output_dir,
input_dir : Path,
output_dir : Path,
ligands,
*files,
):

# use pathlib to validate input files and directories
output_dir = Path(output_dir)
output_dir.mkdir(parents=True, exist_ok=True)
Expand Down

0 comments on commit 93bb5f5

Please sign in to comment.