Skip to content

Obtained a strange pickle file #20

@cyychong

Description

@cyychong

Hi, I ran pyTME on one of my tomograms and got a pickle file where the peaks match but it has a strange kind of "inverted" look (please see image attached).

Image

I have gotten pyTME to work on my old data before and this time I ran it on a set of tomograms newly reconstructed on IMOD 5.2.2. I noticed that the min and max densities differ from my template + if I fiddle with those to better match it to my template MRC file, then I get the "correct" pickle file. I was wondering if there is way to somehow normalize the tomogram densities on pyTME?

Thanks in advance for any help!

Here is the command I ran:
Running the following command using gpuid:0
match_template.py --target ./tom/20241106_33_ts_004_rec_deconv.mrc --target_mask ./tom/20241106_33_ts_004_rec_deconv_mask-clipped.mrc --template /fast/pytlion/ref_msk/ref_cyl.mrc --template_mask /fast/pytlion/ref_msk/msk_cyl.mrc -a 15 --wedge_axes 0,2 --tilt_angles ./tom/20241106_33_ts_004.tsv --no_centering --use_gpu --memory_scaling 0.85 --temp_directory ./tmp/ --gpu_indices 0 --output 20241106_33_ts_004_rec_deconv.pickle


  •                             pytme v0.2.5                                 *
    

Target

  • Initial Shape: (500, 1440, 1022)
  • Sampling Rate: (6.8, 6.8, 6.8)
  • Final Shape: (500, 1440, 1022)

Target Mask

  • Initial Shape: (500, 1440, 1022)
  • Sampling Rate: (6.8, 6.8, 6.8)
  • Final Shape: (500, 1440, 1022)

Template

  • Initial Shape: (36, 36, 36)
  • Sampling Rate: (6.8, 6.8, 6.8)
  • Final Shape: (36, 36, 36)

Template Mask

  • Inital Shape: (36, 36, 36)
  • Sampling Rate: (6.8, 6.8, 6.8)
  • Final Shape: (36, 36, 36)

Template Matching

  • Angular Sampling: 15.0 [1992 rotations]
  • Center Template: False
  • Scramble Template: False
  • Invert Contrast: False
  • Extend Fourier Grid: False
  • Extend Target Edges: True
  • Interpolation Order: 3
  • Setup Function: <function 'tme.matching_scores.flcSphericalMask_setup'>
  • Scoring Function: <function 'tme.matching_scores.corr_scoring'>

Computation

  • Backend: <class 'tme.backends.cupy_backend.CupyBackend'>
  • Compute Devices: CPU [1], GPU [1]
  • Use Mixed Precision: False
  • Assigned Memory [MB]: 12856.0 [out of 15125.0]
  • Temporary Directory: ./tmp/
  • Target Splits: 0:2, 1:2, 2:2 [N=8]

Filters

  • Smooth Pass: True
  • Pass Format: sampling_rate
  • Wedge Axes: (0, 2)
  • Tilt Angles: ./tom/20241106_33_ts_004.tsv
  • Extend Filter Grid: False

Analyzer

  • Analyzer: <class 'tme.analyzer.MaxScoreOverRotations'>
  • score_threshold: 0
  • number_of_peaks: 1000
  • min_distance: 12
  • use_memmap: False

Distributing 8 splits on 1 job each using 1 core.
Running Template Matching. This might take a while ...


Runtime real: 941.826s user: 941.826s.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions