Hi Muyan,
I am finally returning to this. Thank you for your suggestions. I am not sure if defocus refinement would make a big difference. I am processing data collected with VPP and -0.5 defocus. The intial defocus estimations seemed reasonable.
I ran your suggested command (different run now):
Command: e2spt_subtlt_local.py --ref spt_21/threed_01.hdf --path spt_21 --iter 3 --maxres 9 --parallel thread:6 --refine_defocus --aliptcls3d spt_21/aliptcls3d_00.lst --aliptcls2d spt_21/aliptcls2d_01.lst --smooth 100 --smoothN 15 --goldcontinue --debug
Output: /home/grunst/.conda/envs/mikeyenv/envs/eman2/lib/python3.11/site-packages/numpy/core/getlimits.py:500: UserWarning: The value of the smallest subnormal for <class 'numpy.float64'> type is zero.
setattr(self, word, getattr(machar, word).flat[0])
/home/grunst/.conda/envs/mikeyenv/envs/eman2/lib/python3.11/site-packages/numpy/core/getlimits.py:89: UserWarning: The value of the smallest subnormal for <class 'numpy.float64'> type is zero.
return self._float_to_str(self.smallest_subnormal)
/home/grunst/.conda/envs/mikeyenv/envs/eman2/lib/python3.11/site-packages/numpy/core/getlimits.py:500: UserWarning: The value of the smallest subnormal for <class 'numpy.float32'> type is zero.
setattr(self, word, getattr(machar, word).flat[0])
/home/grunst/.conda/envs/mikeyenv/envs/eman2/lib/python3.11/site-packages/numpy/core/getlimits.py:89: UserWarning: The value of the smallest subnormal for <class 'numpy.float32'> type is zero.
return self._float_to_str(self.smallest_subnormal)
24 jobs on 6 CPUs
0
loading metadata from spt_21/particle_info_2d.lst, spt_21/particle_info_3d.lst...
max res: 9.00, max box size 120
0 - 0.1450000000000003 : -0.10958458622663779 -> -0.12542641617163322
Transform({'tx':-0.85,'ty':-0.37,'alpha':0.000,'mirror':0,'scale':1.0000,'type':'2d'})
Transform({'az':-50.330,'alt':139.965,'phi':70.144,'tx':-0.58,'ty':8.24,'tz':2.80,'mirror':0,'scale':1.0000,'type':'eman'})
25
6 - -0.01999999999999985 : -0.1517898496885824 -> -0.15760333633507476
Transform({'tx':-4.08,'ty':1.09,'alpha':0.000,'mirror':0,'scale':1.0000,'type':'2d'})
Transform({'az':-43.539,'alt':128.799,'phi':75.051,'tx':-4.40,'ty':10.11,'tz':2.49,'mirror':0,'scale':1.0000,'type':'eman'})
50
12 - -0.004999999999999838 : -0.1859816575947368 -> -0.19149269113886036
Transform({'tx':-0.48,'ty':1.87,'alpha':0.000,'mirror':0,'scale':1.0000,'type':'2d'})
Transform({'az':-39.040,'alt':117.392,'phi':77.674,'tx':-0.82,'ty':11.10,'tz':2.12,'mirror':0,'scale':1.0000,'type':'eman'})
75
18 - -0.0799999999999999 : -0.20834129548356073 -> -0.21934622524374092
Transform({'tx':-1.48,'ty':1.06,'alpha':0.000,'mirror':0,'scale':1.0000,'type':'2d'})
Transform({'az':-35.375,'alt':105.990,'phi':79.069,'tx':-2.79,'ty':10.42,'tz':1.66,'mirror':0,'scale':1.0000,'type':'eman'})
100
It looks like this was working, but no output files.
I also ran:
Command:
e2spt_refine_new.py --ptcls=spt_21/aliptcls3d_00.lst --ref=spt_21/threed_01.hdf --startres=9 --goldcontinue --sym=c1 --iters=d --keep=0.90 --tophat=local --localrefine --loadali2d=spt_20/aliptcls2d_01.lst --maxres=0.0 --minres=0.0 --parallel=thread:6 --threads=6 --loadali3d --mask=spt_19/relionmask/relionmask.hdf --ppid=-2
Upon looking at the newly generated aliptcls2d_01.lst file, I see
there are no particles. The run had progressed to 100% but seems to be failing at
the e2make3d.py step (Error running task: 3). You can see I also tried
running with only 6 threads in case that would help.
Output (sorry it's long)
e2spt_refine_new.py --ptcls=spt_21/aliptcls3d_00.lst --ref=spt_21/threed_01.hdf --startres=9 --goldcontinue --sym=c1 --iters=d --keep=0.90 --tophat=local --localrefine --loadali2d=spt_20/aliptcls2d_01.lst --maxres=0.0 --minres=0.0 --parallel=thread:6 --threads=6 --loadali3d --mask=spt_19/relionmask/relionmask.hdf --ppid=-2
Writing in spt_22...
Gathering metadata...
14024/14024
Preparing references...
e2proc3d.py spt_21/threed_01_even.hdf spt_22/threed_00_even.hdf
e2proc3d.py spt_21/threed_01_odd.hdf spt_22/threed_00_odd.hdf
e2proc3d.py spt_22/threed_00_even.hdf spt_22/threed_00.hdf --addfile spt_22/threed_00_odd.hdf --mult 0.5
e2proclst.py spt_21/aliptcls3d_00.lst --create spt_22/aliptcls3d_00.lst
Processing 14024 images in spt_21/aliptcls3d_00.lst
e2proclst.py spt_20/aliptcls2d_01.lst --create spt_22/aliptcls2d_00.lst
Processing 854367 images in spt_20/aliptcls2d_01.lst
######## iter 1 ##########
### Defocus refinement....
e2spt_subtlt_local.py --ref spt_22/threed_00.hdf --path spt_22 --iter 1 --maxres 9.00 --parallel thread:6 --refine_defocus --aliptcls3d spt_22/aliptcls3d_00.lst --aliptcls2d spt_22/aliptcls2d_00.lst --smooth 100 --smoothN 15 --goldcontinue
/home/grunst/.conda/envs/mikeyenv/envs/eman2/lib/python3.11/site-packages/numpy/core/getlimits.py:500: UserWarning: The value of the smallest subnormal for <class 'numpy.float64'> type is zero.
setattr(self, word, getattr(machar, word).flat[0])
/home/grunst/.conda/envs/mikeyenv/envs/eman2/lib/python3.11/site-packages/numpy/core/getlimits.py:89: UserWarning: The value of the smallest subnormal for <class 'numpy.float64'> type is zero.
return self._float_to_str(self.smallest_subnormal)
/home/grunst/.conda/envs/mikeyenv/envs/eman2/lib/python3.11/site-packages/numpy/core/getlimits.py:500: UserWarning: The value of the smallest subnormal for <class 'numpy.float32'> type is zero.
setattr(self, word, getattr(machar, word).flat[0])
/home/grunst/.conda/envs/mikeyenv/envs/eman2/lib/python3.11/site-packages/numpy/core/getlimits.py:89: UserWarning: The value of the smallest subnormal for <class 'numpy.float32'> type is zero.
return self._float_to_str(self.smallest_subnormal)
854367 jobs on 6 CPUs
Error running task : 3
e2spa_make3d.py --input spt_22/aliptcls2d_01.lst --output spt_22/threed_01_even.hdf --keep 0.90 --clsid even --outsize 128 --sym c1 --parallel thread:6
/home/grunst/.conda/envs/mikeyenv/envs/eman2/lib/python3.11/site-packages/numpy/core/getlimits.py:500: UserWarning: The value of the smallest subnormal for <class 'numpy.float64'> type is zero.
setattr(self, word, getattr(machar, word).flat[0])
/home/grunst/.conda/envs/mikeyenv/envs/eman2/lib/python3.11/site-packages/numpy/core/getlimits.py:89: UserWarning: The value of the smallest subnormal for <class 'numpy.float64'> type is zero.
return self._float_to_str(self.smallest_subnormal)
/home/grunst/.conda/envs/mikeyenv/envs/eman2/lib/python3.11/site-packages/numpy/core/getlimits.py:500: UserWarning: The value of the smallest subnormal for <class 'numpy.float32'> type is zero.
setattr(self, word, getattr(machar, word).flat[0])
/home/grunst/.conda/envs/mikeyenv/envs/eman2/lib/python3.11/site-packages/numpy/core/getlimits.py:89: UserWarning: The value of the smallest subnormal for <class 'numpy.float32'> type is zero.
return self._float_to_str(self.smallest_subnormal)
Traceback (most recent call last):
File "/home/grunst/.conda/envs/mikeyenv/envs/eman2/bin/e2spa_make3d.py", line 449, in <module>
main()
File "/home/grunst/.conda/envs/mikeyenv/envs/eman2/bin/e2spa_make3d.py", line 63, in main
tmp=EMData(options.input,0,True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/grunst/.conda/envs/mikeyenv/envs/eman2/lib/python3.11/site-packages/EMAN2.py", line 2888, in db_emd_init
self.read_image(*parms)
File "/home/grunst/.conda/envs/mikeyenv/envs/eman2/lib/python3.11/site-packages/EMAN2.py", line 2935, in db_read_image
return LSXFile(fsp).read_into_image(self,*parms)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/grunst/.conda/envs/mikeyenv/envs/eman2/lib/python3.11/site-packages/EMAN2.py", line 2646, in read_into_image
n,fsp,jsondict=self.read(N)
^^^^^^^^^^^^
File "/home/grunst/.conda/envs/mikeyenv/envs/eman2/lib/python3.11/site-packages/EMAN2.py", line 2598, in read
if n>=self.n : raise IndexError("Attempt to read record {} from #LSX {} with {} records".format(n,self.path,self.n))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
IndexError: Attempt to read record 0 from #LSX spt_22/aliptcls2d_01.lst with 0 records
e2proc3d.py spt_22/threed_01_even.hdf spt_22/threed_raw_even.hdf --compressbits 12
Traceback (most recent call last):
File "/home/grunst/.conda/envs/mikeyenv/envs/eman2/bin/e2proc3d.py", line 853, in <module>
main()
File "/home/grunst/.conda/envs/mikeyenv/envs/eman2/bin/e2proc3d.py", line 297, in main
else : nimg = EMUtil.get_image_count(infile)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/grunst/.conda/envs/mikeyenv/envs/eman2/lib/python3.11/site-packages/EMAN2.py", line 3248, in db_get_image_count
return EMUtil.get_image_count_c(fsp)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf6 in position 1: invalid start byte
e2spa_make3d.py --input spt_22/aliptcls2d_01.lst --output spt_22/threed_01_odd.hdf --keep 0.90 --clsid odd --outsize 128 --sym c1 --parallel thread:6
/home/grunst/.conda/envs/mikeyenv/envs/eman2/lib/python3.11/site-packages/numpy/core/getlimits.py:500: UserWarning: The value of the smallest subnormal for <class 'numpy.float64'> type is zero.
setattr(self, word, getattr(machar, word).flat[0])
/home/grunst/.conda/envs/mikeyenv/envs/eman2/lib/python3.11/site-packages/numpy/core/getlimits.py:89: UserWarning: The value of the smallest subnormal for <class 'numpy.float64'> type is zero.
return self._float_to_str(self.smallest_subnormal)
/home/grunst/.conda/envs/mikeyenv/envs/eman2/lib/python3.11/site-packages/numpy/core/getlimits.py:500: UserWarning: The value of the smallest subnormal for <class 'numpy.float32'> type is zero.
setattr(self, word, getattr(machar, word).flat[0])
/home/grunst/.conda/envs/mikeyenv/envs/eman2/lib/python3.11/site-packages/numpy/core/getlimits.py:89: UserWarning: The value of the smallest subnormal for <class 'numpy.float32'> type is zero.
return self._float_to_str(self.smallest_subnormal)
Traceback (most recent call last):
File "/home/grunst/.conda/envs/mikeyenv/envs/eman2/bin/e2spa_make3d.py", line 449, in <module>
main()
File "/home/grunst/.conda/envs/mikeyenv/envs/eman2/bin/e2spa_make3d.py", line 63, in main
tmp=EMData(options.input,0,True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/grunst/.conda/envs/mikeyenv/envs/eman2/lib/python3.11/site-packages/EMAN2.py", line 2888, in db_emd_init
self.read_image(*parms)
File "/home/grunst/.conda/envs/mikeyenv/envs/eman2/lib/python3.11/site-packages/EMAN2.py", line 2935, in db_read_image
return LSXFile(fsp).read_into_image(self,*parms)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/grunst/.conda/envs/mikeyenv/envs/eman2/lib/python3.11/site-packages/EMAN2.py", line 2646, in read_into_image
n,fsp,jsondict=self.read(N)
^^^^^^^^^^^^
File "/home/grunst/.conda/envs/mikeyenv/envs/eman2/lib/python3.11/site-packages/EMAN2.py", line 2598, in read
if n>=self.n : raise IndexError("Attempt to read record {} from #LSX {} with {} records".format(n,self.path,self.n))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
IndexError: Attempt to read record 0 from #LSX spt_22/aliptcls2d_01.lst with 0 records
e2proc3d.py spt_22/threed_01_odd.hdf spt_22/threed_raw_odd.hdf --compressbits 12
Traceback (most recent call last):
File "/home/grunst/.conda/envs/mikeyenv/envs/eman2/bin/e2proc3d.py", line 853, in <module>
main()
File "/home/grunst/.conda/envs/mikeyenv/envs/eman2/bin/e2proc3d.py", line 297, in main
else : nimg = EMUtil.get_image_count(infile)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/grunst/.conda/envs/mikeyenv/envs/eman2/lib/python3.11/site-packages/EMAN2.py", line 3248, in db_get_image_count
return EMUtil.get_image_count_c(fsp)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd7 in position 0: invalid continuation byte
e2refine_postprocess.py --even spt_22/threed_01_even.hdf --tophat local --threads 6 --restarget 9.00 --align --sym c1 --mask spt_19/relionmask/relionmask.hdf
Use iteration number 1.
Traceback (most recent call last):
File "/home/grunst/.conda/envs/mikeyenv/envs/eman2/bin/e2refine_postprocess.py", line 576, in <module>
main()
File "/home/grunst/.conda/envs/mikeyenv/envs/eman2/bin/e2refine_postprocess.py", line 116, in main
hdr=EMData(evenfile,0,1)
^^^^^^^^^^^^^^^^^^^^
File "/home/grunst/.conda/envs/mikeyenv/envs/eman2/lib/python3.11/site-packages/EMAN2.py", line 2888, in db_emd_init
self.read_image(*parms)
File "/home/grunst/.conda/envs/mikeyenv/envs/eman2/lib/python3.11/site-packages/EMAN2.py", line 2940, in db_read_image
fsp, idxs = parse_infile_arg(fsp)
^^^^^^^^^^^^^^^^^^^^^
File "/home/grunst/.conda/envs/mikeyenv/envs/eman2/lib/python3.11/site-packages/EMAN2.py", line 1095, in parse_infile_arg
raise Exception(f"'{fname}' is not an existing regular file!")
Exception: 'spt_22/threed_01_even.hdf' is not an existing regular file!
Traceback (most recent call last):
File "/home/grunst/.conda/envs/mikeyenv/envs/eman2/bin/e2spt_refine_new.py", line 421, in <module>
main()
File "/home/grunst/.conda/envs/mikeyenv/envs/eman2/bin/e2spt_refine_new.py", line 327, in main
r=calc_resolution(f"{path}/fsc_masked_{itr:02d}.txt")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/grunst/.conda/envs/mikeyenv/envs/eman2/bin/e2spt_refine_new.py", line 407, in calc_resolution
fsc=np.loadtxt(fscfile)
^^^^^^^^^^^^^^^^^^^
File "/home/grunst/.conda/envs/mikeyenv/envs/eman2/lib/python3.11/site-packages/numpy/lib/npyio.py", line 1338, in loadtxt
arr = _read(fname, dtype=dtype, comment=comment, delimiter=delimiter,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/grunst/.conda/envs/mikeyenv/envs/eman2/lib/python3.11/site-packages/numpy/lib/npyio.py", line 975, in _read
fh = np.lib._datasource.open(fname, 'rt', encoding=encoding)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/grunst/.conda/envs/mikeyenv/envs/eman2/lib/python3.11/site-packages/numpy/lib/_datasource.py", line 193, in open
return ds.open(path, mode, encoding=encoding, newline=newline)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/grunst/.conda/envs/mikeyenv/envs/eman2/lib/python3.11/site-packages/numpy/lib/_datasource.py", line 533, in open
raise FileNotFoundError(f"{path} not found.")
FileNotFoundError: spt_22/fsc_masked_01.txt not found.
e2version.py output:
EMAN 2.99.55 ( GITHUB: 2024-05-15 13:18 - commit: 2aa2b781e )
Your EMAN2 is running on: Linux-6.8.0-52-generic-x86_64-with-glibc2.35 6.8.0-52-generic
Your Python version is: 3.11.9
Thank you for the help and suggestions!
-Mikey