Skip to content

Commit

Permalink
Bad bug in IMOD tiltseries alignment wrapper in case of MPI: tables n…
Browse files Browse the repository at this point in the history
…eed sorting on tiltangle again for writing to output star files
  • Loading branch information
scheres committed Sep 19, 2024
1 parent 81bd960 commit 22c6ee1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/align_tiltseries_runner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ void AlignTiltseriesRunner::executeIMOD(long idx_tomo, int rank)


// Make sure metadata table is sorted on rlnTomoNominalStageTiltAngle (it should be, but anyways...)
tomogramSet.tomogramTables[idx_tomo].sort(EMDL_TOMO_NOMINAL_TILT_STAGE_ANGLE);
tomogramSet.tomogramTables[idx_tomo].newSort(EMDL_TOMO_NOMINAL_TILT_STAGE_ANGLE);

generateMRCStackAndRawTiltFile(idx_tomo, false);

Expand Down Expand Up @@ -574,6 +574,9 @@ bool AlignTiltseriesRunner::readIMODResults(long idx_tomo, std::string &error_me
FileName fn_edf = fn_dir + tomoname + ".edf";
FileName fn_align = fn_dir + "align.log";

// In case of MPI, the tomogramTable may not yet have been sorted on the tilt angle. Do it again now
tomogramSet.tomogramTables[idx_tomo].newSort(EMDL_TOMO_NOMINAL_TILT_STAGE_ANGLE);

int fc = tomogramSet.tomogramTables[idx_tomo].numberOfObjects();
RFLOAT angpix = tomogramSet.getTiltSeriesPixelSize(idx_tomo);

Expand Down

0 comments on commit 22c6ee1

Please sign in to comment.