Skip to content
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

define nproc in _one_ place #66

Merged
merged 3 commits into from
Nov 18, 2024
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
8 changes: 4 additions & 4 deletions docs/tutorials/download_data.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This script can be used to download all data sets used for
# this manuscript. The first few variables here can be toggled
# to determine which data sets to download. Note that the
# simulated DHFR data is NOT available publicly for download
# This script can be used to download all data sets used for
# this manuscript. The first few variables here can be toggled
# to determine which data sets to download. Note that the
# simulated DHFR data is NOT available publicly for download
# and must be requested from the authors.

HEWL_DATA=true # 84 GB on SBGrid
Expand Down
4 changes: 2 additions & 2 deletions docs/tutorials/tutorial_README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ these tutorials are stored on SBGrid, and can be downloaded using the following
cd 1117 ; shasum -c files.sha

These tutorials are tested most recently with version 3.17.0 of DIALS.
To reproduce a python environment for analyzing these data, you can
install DIALS (see `DIALS`_) and use the YAML file specified
To reproduce a python environment for analyzing these data, you can
install DIALS (see `DIALS`_) and use the YAML file specified
:download:`here <manuscript_env.yaml>`.

All referenced scripts can be downloaded :download:`here for PDZ2 <pdz2/pdz2_scripts.tar.gz>` and :download:`here for HEWL <hewl/hewl_scripts.tar.gz>`.
Expand Down
13 changes: 6 additions & 7 deletions examples/pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#SBATCH --time=1:00:00

FILE_INPUT_TEMPLATE="PATH/TO/DATA/e080_###.mccd"
NPROC=8

# Import data
# You may need to change some of these values to match your data set
Expand All @@ -23,7 +24,7 @@ dials.import geometry.scan.oscillation=0,1 \

# Get a monochromatic geometry model
laue.find_spots imported.expt \
spotfinder.mp.nproc=8 \
spotfinder.mp.nproc=$NPROC \
spotfinder.threshold.dispersion.gain=0.35 \
spotfinder.filter.max_separation=10 \
lookup.mask="pixels.mask"
Expand All @@ -39,34 +40,32 @@ laue.index imported.expt strong.refl \
laue.sequence_to_stills monochromatic.*

# Polychromatic pipeline
N=12 # Max multiprocessing
laue.optimize_indexing stills.* \
output.experiments="optimized.expt" \
output.reflections="optimized.refl" \
output.log="laue.optimize_indexing.log" \
wavelengths.lam_min=0.95 \
wavelengths.lam_max=1.15 \
reciprocal_grid.d_min=1.4 \
nproc=$N
nproc=$NPROC

N=8 # Max multiprocessing
laue.refine optimized.* \
output.experiments="poly_refined.expt" \
output.reflections="poly_refined.refl" \
output.log="laue.poly_refined.log" \
nproc=$N
nproc=$NPROC

laue.predict poly_refined.* \
output.reflections="predicted.refl" \
output.log="laue.predict.log" \
wavelengths.lam_min=0.95 \
wavelengths.lam_max=1.15 \
reciprocal_grid.d_min=1.4 \
nproc=$N
nproc=$NPROC

laue.integrate poly_refined.expt predicted.refl \
output.filename="integrated.mtz" \
output.log="laue.integrate.log" \
nproc=$N
nproc=$NPROC

# This is where laue_dials ends. The output file integrated.mtz can be merged in careless and refined in phenix to get a model