Skip to content

Commit 24f699f

Browse files
committed
Merge branch 'master'
2 parents 2e7a111 + b0be63a commit 24f699f

36 files changed

+593
-683
lines changed

config/pyp_config.toml

Lines changed: 28 additions & 44 deletions
Large diffs are not rendered by default.

docs/changelog.rst

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,35 @@ Changelog
44

55
**Legend**: :fa:`star,text-success` New feature, :fa:`plus-square,text-primary` Improvement, :fa:`bug,text-danger` Bug fix
66

7+
v0.6.4 (3/24/2024)
8+
******************
9+
10+
:fa:`plus-square,text-primary` Implement mechanism to isolate logs from failed jobs in the Logs tab.
11+
12+
:fa:`plus-square,text-primary` Add support for project names with special characters.
13+
14+
:fa:`plus-square,text-primary` Remove many commonly used parameters from the advanced category.
15+
16+
:fa:`plus-square,text-primary` Add progress bars during export of metadata to .star format.
17+
18+
:fa:`plus-square,text-primary` Allow export of particle coordinates from streaming sessions.
19+
20+
:fa:`plus-square,text-primary` Check that .order files have the same number of entries as images in the tilt-series.
21+
22+
:fa:`bug,text-danger` Fix bugs when reading metadata from *.mdoc files.
23+
24+
:fa:`bug,text-danger` Prevent dragging of multiple connections from block outputs in project view.
25+
26+
:fa:`bug,text-danger` Fix bug when managing GPU resources in standalone mode.
27+
28+
:fa:`bug,text-danger` Fix bug when using grouping of frames during movie processing.
29+
30+
:fa:`bug,text-danger` Fix bug in single-particle pipeline during hot pixel removal.
31+
32+
:fa:`bug,text-danger` Fix bug in Table view that caused content to overlap when resizing columns.
33+
34+
:fa:`bug,text-danger` Always export metadata in .star format to current project directory (user specified location is no longer supported).
35+
736
v0.6.3 (3/01/2024)
837
******************
938

docs/reference/config.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,3 +675,14 @@ Minimal example:
675675

676676
:Examples:
677677
``workflowDirs = ['/storage/workflows']``
678+
679+
|
680+
681+
``minPasswordLength``
682+
~~~~~~~~~~~~~~~~~~~~~
683+
684+
:Type: integer
685+
:Required: no
686+
:Default: 12
687+
:Description:
688+
The minimum length accepted for new passwords.

docs/tutorials/import_export.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,6 @@ This tutorial shows how to import and export single-particle and tomography proj
9393

9494
- Set the location of the ``Input parfile`` you want to export by clicking on the icon :fa:`search,text-primary` and browsing to the corresponding directory
9595

96-
- Set the location of the ``Output folder`` by clicking on the icon :fa:`search,text-primary` and browsing to the directory where you want the data to be saved
97-
9896
* Click :badge:`Save,badge-primary`
9997

10098
* Click :badge:`Run,badge-primary` followed by :badge:`Start Run for 1 block,badge-primary` to launch the export process

docs/tutorials/spa_empiar_10025.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,6 @@ Step 4: Reference-based refinement
229229

230230
- Set ``Last iteration`` to 5
231231

232-
- Check ``Show advanced options``
233-
234232
- Check ``Use alignment priors``
235233

236234
- Click on the **Reconstruction** tab

docs/tutorials/tomo_empiar_10164.rst

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,6 @@ Step 3: Pre-processing
140140

141141
- Set ``Binning factor for reconstruction`` to 8
142142

143-
- Click ``Show advanced options``
144-
145143
- Set ``Thickness of reconstruction (unbinned voxels)`` to 2048
146144

147145
- Click on the **Virion/spike detection** tab
@@ -319,8 +317,6 @@ Step 6: Reference-based refinement
319317

320318
- Set ``Last exposure for refinement`` to 10
321319

322-
- Check ``Show advanced options``
323-
324320
- Set ``Optimizer - Exhaustive search points`` to 50000
325321

326322
- Check ``Refine particle alignments``
@@ -377,8 +373,6 @@ Step 7. Fully constrained refinement
377373

378374
- Check ``Refine tilt-geometry``
379375

380-
- Check ``Show advanced options``
381-
382376
- Set ``Optimizer - Max step length`` to 100
383377

384378
- Set ``Optimizer - Exhaustive search points`` to 0
@@ -678,8 +672,6 @@ Step 15: Refinement after movie frame refinement
678672

679673
.. tabbed:: Constrained refinement
680674

681-
- Check ``Show advanced options``
682-
683675
- Set ``Min number of projections for refinement`` to 2
684676

685677
- Check ``Refine tilt-geometry``

docs/tutorials/tomo_empiar_10304.rst

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,6 @@ Step 3: Pre-processing
122122

123123
- Set ``Thickness of reconstruction (unbinned voxels)`` to 3072
124124

125-
- Click ``Show advanced options``
126-
127125
- Uncheck ``Resize squares to closest multiple of 512``
128126

129127
- Click on the **Resources** tab
@@ -221,8 +219,6 @@ Step 5: Reference-based refinement
221219

222220
- Set ``Last exposure for refinement`` to 25
223221

224-
- Click ``Show advanced options``
225-
226222
- Set ``Optimizer - Exhaustive search points`` to 5000000
227223

228224
- Check ``Refine particle alignments``
@@ -356,8 +352,6 @@ Step 8. Fully constrained refinement
356352

357353
- Set ``Last exposure for refinement`` to 25
358354

359-
- Check ``Show advanced options``
360-
361355
- Set ``Optimizer - Exhaustive search points`` to 0
362356

363357
- Set ``Optimizer - Max step length`` to 100
@@ -517,8 +511,6 @@ Step 12: Region-based refinement after CTF refinement
517511

518512
- Set ``Number of regions`` to 16,16,4
519513

520-
- Check ``Show advanced options``
521-
522514
- Set ``Optimizer - Max step length`` to 20.0
523515

524516
- Check ``Refine tilt-geometry``

nextpyp.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
# It is shown directly to the user in micromon's user interface.
44
# To the extent that is feasible, it should follow Semantic Versioning conventions:
55
# https://semver.org/
6-
version = "0.6.3"
6+
version = "0.6.4"

src/frealign.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@
326326
scaling = model_pixel_size / actual_pixel
327327
logger.warning(f"Rescaling initial model {initial_model} to {scaling} A per pixel")
328328
new_size = int(mparameters["extract_box"])
329-
command = f"{get_imod_path()}/bin/matchvol -size {new_size},{new_size},{new_size} -3dxform {scaling},0,0,0,0,{scaling},0,0,0,0,{scaling},0 {initial_model} {frealign_initial_model}; rm {frealign_initial_model}~"
329+
command = f"{get_imod_path()}/bin/matchvol -size {new_size},{new_size},{new_size} -3dxform {scaling},0,0,0,0,{scaling},0,0,0,0,{scaling},0 '{initial_model}' {frealign_initial_model}; rm {frealign_initial_model}~"
330330
local_run.run_shell_command(command=command,verbose=mparameters["slurm_verbose"])
331331

332332
else:

src/pyp/align/core.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3558,7 +3558,7 @@ def align_stack_super(
35583558
)
35593559

35603560
# launch FREALIGN refinement (skip reconstruction, score evaluation only)
3561-
command = "cd {0}; export MYCORES={1}; echo {2} > `pwd`/mynode; export MYNODES=`pwd`/mynode; {3}/bin/fyp -dataset {4} -iter 2 -maxiter {5} -metric {6} -mode 1 -mask 0,0,0,0,0 -cutoff -1 -rlref {7} -rhref {8} -rrec {9} -fmatch F".format(
3561+
command = "cd '{0}'; export MYCORES={1}; echo {2} > `pwd`/mynode; export MYNODES=`pwd`/mynode; {3}/bin/fyp -dataset {4} -iter 2 -maxiter {5} -metric {6} -mode 1 -mask 0,0,0,0,0 -cutoff -1 -rlref {7} -rhref {8} -rrec {9} -fmatch F".format(
35623562
frealign_path,
35633563
cores_for_frealign,
35643564
socket.gethostname(),
@@ -3812,7 +3812,7 @@ def align_stack_super(
38123812

38133813
# parse parameter file
38143814

3815-
command = "cd {0}; export MYCORES={1}; echo {2} > `pwd`/mynode; export MYNODES=`pwd`/mynode; {3}/bin/fyp -dataset {4} -iter 2 -maxiter {5} -metric {6} -mode 1 -mask 0,0,0,1,1 -cutoff -1 -rlref {7} -rhref {8} -rrec {9} -fmatch T".format(
3815+
command = "cd '{0}'; export MYCORES={1}; echo {2} > `pwd`/mynode; export MYNODES=`pwd`/mynode; {3}/bin/fyp -dataset {4} -iter 2 -maxiter {5} -metric {6} -mode 1 -mask 0,0,0,1,1 -cutoff -1 -rlref {7} -rhref {8} -rrec {9} -fmatch T".format(
38163816
frealign_path,
38173817
cores_for_frealign,
38183818
socket.gethostname(),
@@ -4675,7 +4675,7 @@ def align_movie_super(parameters, name, suffix, isfirst = False):
46754675
bfactor = float(parameters["movie_bfactor"])
46764676
first_frame = int(parameters["movie_first"]) + 1 # pyp from 0, unblur starts from 1
46774677
last_frame = int(parameters["movie_last"]) + 1 if int(parameters["movie_last"]) != -1 else 0 # pyp's end is -1, unblur's end is 0
4678-
running_average = 1
4678+
running_average = parameters["movie_group"]
46794679
maximum_shifts_in_A = 40.0
46804680
minimum_shifts_in_A = 0.0
46814681
threads = min(6,parameters["slurm_tasks"]) if "spr" in parameters["data_mode"].lower() else 1

0 commit comments

Comments
 (0)