Hi! Thanks for suggestions.
So I have run a few tests on a small subset and a full set of micrographs, and:
-
Cryosparc could read and perform Patch CTF on the small subset of 40 micrographs that were moved from SSD to NAS and linked using ln -s
-
Cryosparc could not read the full set of 11k micrographs that were moved from SSD to NAS and symlinked using ln -s. I had to couple the ln -s with xargs to link all 11k files at once. The symlinks are in the correct folder and lead to the correct pathway of targets.
It gives this error when I run Patch CTF:
Error occurred while processing J3/motioncorrected/micrograph1.mrc
Traceback (most recent call last):
File “/home/user/cryosparc/cryosparc_worker/cryosparc_compute/blobio/mrc.py”, line 188, in read_mrc
data = read_mrc_data(file_obj, header, start_page, end_page, out)
File “/home/user/cryosparc/cryosparc_worker/cryosparc_compute/blobio/mrc.py”, line 104, in read_mrc_data
data = n.fromfile(file_obj, dtype=dtype, count= num_pages * ny * nx).reshape(num_pages, ny, nx)
ValueError: cannot reshape array of size 23569152 into shape (1,4092,5760)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “/home/user/cryosparc/cryosparc_worker/cryosparc_compute/jobs/pipeline.py”, line 59, in exec
return self.process(item)
File “cryosparc_master/cryosparc_compute/jobs/ctf_estimation/run.py”, line 101, in cryosparc_master.cryosparc_compute.jobs.ctf_estimation.run.run.ctfworker.process
File “cryosparc_master/cryosparc_compute/jobs/ctf_estimation/run.py”, line 104, in cryosparc_master.cryosparc_compute.jobs.ctf_estimation.run.run.ctfworker.process
File “/home/user/cryosparc/cryosparc_worker/cryosparc_compute/blobio/mrc.py”, line 190, in read_mrc
raise ValueError(f’Could not read mrc data from {fname}') from e
ValueError: Could not read mrc data from /mnt/SSD/cryosparc-projects/cryoem-project/J3/motioncorrected/micrograph1.mrc
Marking J3/motioncorrected/micrograph1.mrc as incomplete and continuing…
When the micrographs were moved back to their original location on SSD, patch CTF run as normal.
- When I run “Check for Corrupt Micrographs” it says: Failed to read exposure.
At this point I’m not sure whether the solution is more on the side of Linux or cryosparc.