Hi,
I’m trying 3D Flex on one of my dataset, a ribosome with extra floppy parts.
I managed to run all the steps until Flex Reconstruc, that fails at iteration 0 with the following message:
[2022-12-21 8:57:44.94]
[CPU: 5.81 GB]
====== Load particle data =======
[2022-12-21 8:57:44.94]
[CPU: 5.81 GB]
Reading in all particle data...
[2022-12-21 8:57:44.94]
[CPU: 5.81 GB]
Reading file 44 of 44 (J361/J361_particles_fullres_batch_00043.mrc)
[2022-12-21 9:00:16.29]
[CPU: 273.80 GB]
Reading in all particle CTF data...
[2022-12-21 9:00:16.29]
[CPU: 273.80 GB]
Reading file 44 of 44 (J361/J361_particles_fullres_batch_00043_ctf.mrc)
[2022-12-21 9:01:58.77]
[CPU: 401.74 GB]
Parameter "Force re-do GS split" was off. Using input split..
[2022-12-21 9:01:58.78]
[CPU: 401.74 GB]
Split A contains 109500 particles
[2022-12-21 9:01:58.78]
[CPU: 401.74 GB]
Split B contains 109500 particles
[2022-12-21 9:01:58.78]
[CPU: 401.74 GB]
Setting up particle poses..
[2022-12-21 9:01:58.80]
[CPU: 401.74 GB]
====== High resolution flexible refinement =======
[2022-12-21 9:01:58.81]
[CPU: 401.74 GB]
Max num L-BFGS iterations was set to 20
[2022-12-21 9:01:58.81]
[CPU: 401.74 GB]
Starting L-BFGS.
[2022-12-21 9:01:58.81]
[CPU: 401.74 GB]
Reconstructing half-map A
[2022-12-21 9:01:58.81]
[CPU: 401.74 GB]
Iteration 0 : 109000 / 109500 particles
[2022-12-21 9:17:20.42]
[CPU: 426.01 GB]
ValueError: 0-th dimension must be fixed to 95433884 but got 4390401180
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "cryosparc_master/cryosparc_compute/run.py", line 93, in cryosparc_compute.run.main
File "/scicore/home/engel0006/GROUP/pool-engel/soft/cryosparc/cryosparc_worker/cryosparc_compute/jobs/flex_refine/run_highres.py", line 150, in run
flexmod.do_hr_refinement_flex(numiter=params['flex_bfgs_num_iters'])
File "cryosparc_master/cryosparc_compute/jobs/flex_refine/flexmod.py", line 1640, in cryosparc_compute.jobs.flex_refine.flexmod.do_hr_refinement_flex
File "/scicore/home/engel0006/GROUP/pool-engel/soft/cryosparc/cryosparc_worker/deps/anaconda/envs/cryosparc_worker_env/lib/python3.8/site-packages/scipy/optimize/_lbfgsb_py.py", line 199, in fmin_l_bfgs_b
res = _minimize_lbfgsb(fun, x0, args=args, jac=jac, bounds=bounds,
File "/scicore/home/engel0006/GROUP/pool-engel/soft/cryosparc/cryosparc_worker/deps/anaconda/envs/cryosparc_worker_env/lib/python3.8/site-packages/scipy/optimize/_lbfgsb_py.py", line 353, in _minimize_lbfgsb
_lbfgsb.setulb(m, x, low_bnd, upper_bnd, nbd, f, g, factr,
ValueError: failed in converting 10th argument `wa' of _lbfgsb.setulb to C/Fortran array
I don’t think this error was already posted elsewhere.
I’m on V4.1.1 (updated yesterday).
I see that it’s using a lot of CPU memory, could that be the source of the problem? Reading the error, it doesn’t look like it is though.
Thanks for the help.
EDIT: Actually, it looks like something similar was happening there https://discuss.cryosparc.com/t/3d-flex-reconstruction-stalls-at-large-box-sizes/10072, but the error message isn’t the same.
Edit2: We run NVIDIA A40s with 48 Go of memory, and 2To of RAM