Project

General

Profile

Actions

Bug #3438

closed

noise subtraction in ctfdisplay normalization error

Added by Anchi Cheng about 9 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Urgent
Category:
-
Target version:
-
Start date:
08/26/2015
Due date:
% Done:

0%

Estimated time:
Affected Version:
Appion/Leginon 3.2
Show in known bugs:
No
Workaround:

Description

Running on the same image attached #3436 (200 kV, Cs=2 mm, apix=1.47 A)

I tried these parameters as well as the faster --numstep=50. Got the same problem below.

ctfestimate.py --runname=ctffindrun6 --rundir=/emg/data00/appion/acheng/15aug25g/ctf/ctffindrun6 --limit=1 --commit --preset=en-a --projectid=5 --session=15aug25g --no-rejects --no-wait --continue --ampcarbon=0.15 --ampice=0.07 --fieldsize=512 --medium=carbon --bin=2 --resmin=30 --resmax=4 --defstep=1000 --numstep=50 --dast=500 --expid=605 --jobtype=ctfestimate

Final params: def1: 9.95e-07 | def2: 1.01e-06 | angle: 15.7 | defratio 1.01
 ... Defocus Astig Percent Diff 0.58 -- 9.948e-07, 1.007e-06
Computing power spectra in 1024x1024 blocks...................................
 ... Computing median of power spectra series
 ... Compute PSD with fieldsize 1024 and 35 images complete in 9.4 sec
 ... Preform a rotational average and remove spikes...
PART 1: SETUP PARAMETERS AND ELLIPTICAL AVERAGE
 ... Number of available peaks is 100
 ... Determine and subtract noise model
PART 2: BACKGROUND NOISE SUBTRACTION
 ... starting peak extension
Peak Extension Complete in 0.76 msec
Traceback (most recent call last):
  File "/home/acheng/myami/appion/bin/ctfestimate.py", line 449, in <module>
    imgLoop.run()
  File "/home/acheng/myami/appion/appionlib/appionLoop2.py", line 93, in run
    self.loopCommitToDatabase(imgdata)
  File "/home/acheng/myami/appion/appionlib/appionLoop2.py", line 143, in loopCommitToDatabase
    return self.commitToDatabase(imgdata)
  File "/home/acheng/myami/appion/bin/ctfestimate.py", line 349, in commitToDatabase
    ctfinsert.validateAndInsertCTFData(imgdata, self.ctfvalues, self.ctfrun, self.params['rundir'])
  File "/home/acheng/myami/appion/appionlib/apCtf/ctfinsert.py", line 45, in validateAndInsertCTFData
    ctfvalues = runCTFdisplayTools(imgdata, ctfvalues, opimagedir, fftpath, fftfreq)
  File "/home/acheng/myami/appion/appionlib/apCtf/ctfinsert.py", line 83, in runCTFdisplayTools
    ctfdisplaydict = ctfdisplay.makeCtfImages(imgdata, ctfvalues, fftpath, fftfreq)
  File "/home/acheng/myami/appion/appionlib/apCtf/ctfdisplay.py", line 1267, in makeCtfImages
    ctfdisplaydict = a.CTFpowerspec(imgdata, ctfdata, fftpath, fftfreq, twod=twod)
  File "/home/acheng/myami/appion/appionlib/apCtf/ctfdisplay.py", line 1149, in CTFpowerspec
    normpowerspec = self.normalizeCtf(powerspec, twod=twod)
  File "/home/acheng/myami/appion/appionlib/apCtf/ctfdisplay.py", line 244, in normalizeCtf
    scale /= scale.max()
ValueError: zero-size array to ufunc.reduce without identity

ctf estimation is used all the time. If the new change in the background fitting is causing this much trouble, should we revert and make it more as an option for now ?


Files

beforeUpdate.png (413 KB) beforeUpdate.png Gabriel Lander, 08/31/2015 06:13 PM
afterUpdate.png (573 KB) afterUpdate.png Gabriel Lander, 08/31/2015 06:13 PM

Related issues 3 (3 open0 closed)

Related to Appion - Bug #3494: difficult image for new ctfdisplay.py to do noise subtractionIn TestNeil Voss08/31/2015

Actions
Related to Appion - Bug #3495: CTF matplotlib font path ErrorNewDmitry Lyumkis08/31/2015

Actions
Related to Appion - Feature #3950: Create CTF test dataset within DockerAssignedNeil Voss02/15/2016

Actions
Actions

Also available in: Atom PDF