3dem / relion

Image-processing software for cryo-electron microscopy
https://relion.readthedocs.io/en/latest/
GNU General Public License v2.0
444 stars 197 forks source link

relion 5 tomo error #1133

Open DrJesseHansen opened 3 months ago

DrJesseHansen commented 3 months ago

Running on a Linux Deb 12 compute cluster, have tried on various GPU nodes.

Running relion/5 beta-3-commit-6331fe.

For example when I run the command below:

relion_python_tomo_align_tilt_series AreTomo --sample-thickness-nanometers 120 --gpu 0 --gpu 1 --gpu 2 --gpu 3 --tilt-series-star-file CtfFind/job002/micrographs_ctf.star --output-directory AlignTiltSeries/job003/ --pipeline_control AlignTiltSeries/job003/

The error can be reduced to these lines of code:

import starfile filename='/nfs/scistore14/itgrp/schloegl/tests_relion5_jesse/CtfFind/job002/micrographs_ctf.star' star = starfile.read(filename, always_dict=True)
global_df = star['global'].set_index('rlnTomoName', drop=False)

which then fails with:

Traceback (most recent call last): File "", line 1, in KeyError: 'global'

If the code is correct, the data set must be wrong, because star['global'] does not get defined by starfile.read(...). Or the code is wrong.

thank you in advance

best

Jesse

This is a template for reporting bugs. Please fill in as much information as you can.

Describe your problem

Please write a clear description of what the problem is. Data processing questions should be posted to the CCPEM mailing list, not here. DO NOT cross post a same question to multiple issues and/or many mailing lists (CCPEM, 3DEM, etc).

Environment:

Dataset:

Job options:

Error message:

Please cite the full error message as the example below.

A line in the STAR file contains fewer columns than the number of labels. Expected = 3 Found = 2
Error in line: 0 0.0
in: /prog/relion-devel-lmb/src/metadata_table.cpp, line 966
=== Backtrace  ===
/prog/relion-devel-lmb/bin/relion_motion_refine_mpi(_ZN11RelionErrorC1ERKSsS1_l+0x41) [0x42e981]
/prog/relion-devel-lmb/bin/relion_motion_refine_mpi(_ZN13MetaDataTable12readStarLoopERSt14basic_ifstreamIcSt11char_traitsIcEEPSt6vectorI8EMDLabelSaIS6_EESsb+0xedd) [0x4361ad]
/prog/relion-devel-lmb/bin/relion_motion_refine_mpi(_ZN13MetaDataTable8readStarERSt14basic_ifstreamIcSt11char_traitsIcEERKSsPSt6vectorI8EMDLabelSaIS8_EESsb+0x580) [0x436f10]
/prog/relion-devel-lmb/bin/relion_motion_refine_mpi(_ZN10Micrograph4readE8FileNameb+0x5a3) [0x454bb3]
/prog/relion-devel-lmb/bin/relion_motion_refine_mpi(_ZN10MicrographC2E8FileNameS0_d+0x2e3) [0x4568b3]
/prog/relion-devel-lmb/bin/relion_motion_refine_mpi(_ZN17MicrographHandler14isMoviePresentERK13MetaDataTableb+0x180) [0x568280]
/prog/relion-devel-lmb/bin/relion_motion_refine_mpi(_ZN17MicrographHandler17cullMissingMoviesERKSt6vectorI13MetaDataTableSaIS1_EEi+0xe6) [0x568dc6]
/prog/relion-devel-lmb/bin/relion_motion_refine_mpi(_ZN13MotionRefiner4initEv+0x56f) [0x49e1ff]
/prog/relion-devel-lmb/bin/relion_motion_refine_mpi(main+0x31) [0x42a5e1]
/lib64/libc.so.6(__libc_start_main+0xf5) [0x2b7ac026e495]
/prog/relion-devel-lmb/bin/relion_motion_refine_mpi() [0x42b3cf]
==================
EuanPyle commented 3 months ago

Hi, It's a little hard to diagnose the problem, but one thing really stands out: the input file you've used is called micrographs_ctf.star which is what I would expect the star file to be called if you used the SPA pipeline. When you're using the tomo pipeline I'd expect that file to be called: tilt_series_ctf.star. Are you absolutely sure you loaded relion with: relion --tomo? For all steps? Can you please post the note.txt from the import job, and the CTF job?