Importing the particles by only specifying the “particle meta path” works for me however, I’m wondering if there is a method to import particles from RELION3 that allows one to link imported particles to their original motion&ctf corrected micrographs in RELION such that one could perform local motion correction in cryoSPARC?
It is possible to do this, though a bit trickier than just the standard particle import.
You must first import the micrographs (this can be before or after CTF estimation). Then import the particles, connecting the imported micrographs as the “Source Micrographs”. Then set the “Length of Mic. path suffix to cut” and “Length of part. path suffix to cut” (you may have to run the job and have it fail a couple times to get it right) so that the particles and micrographs can be corresponded (the matching is based on the remaining path string from the particle and micrograph after the suffix is cut from each). The output of this import job will contain particles that are linked to the imported micrographs/movies, so you can do local motion correction in cryoSPARC.
I am having trouble importing the coordinate files. I keep on getting ‘OtherError: could not convert string to float: [mrc] [command-req-error]’ whenever I try to enter anything into “Length of Mic. path suffix to cut” and “Length of part. path suffix to cut”.
Perhaps I am doing something wrong?
When I continue regardless of the error I find that after the job runs but in parameters the values I place in are no longer there a(nd nothing comes out of local motion).
I finally figured this out, and wanted to clarify on here for anyone encountering this problem in the future.
here’s how to import particle coordinates only, then map them to your micrographs within cryosparc.
either import your micrographs or do your alignments within cryosparc.
import particle stack (leave the mrc field blank) and click “ignore raw data”. At the top, drag and drop from cryosparc the micrographs that you will be linking those particles to.
Open up your particles.star file on your computer and look at the micrograph filenames for each particle. Take note here the suffix of each.
Do the same as above except now with your micrographs: either the ones that have been aligned in cryosparc or the ones that you have aligned and imported elsewhere.
Figure out how many characters need to be removed from the end of each in order for them to match perfectly. This includes the file extension and any punctuation each counting as one character.
The above two integers need to be inputted when you are importing your particle positions under the fields " mic path suffix to cut" (for the aligned images) and “particle path suffix to cut” (for the paths within your particles.star file).
for example your particles contains entries such as “…micrograph01_A.mrc” and the cryosparc aligned images outputs files such as “…micrograph01_rigid_aligned.mrc” then the integers to put in the above fields are 6 for “particles path suffix to cut” and 18 for “mic path suffix to cut”.
hi again, I ended up getting the coordinates imported, then realized that my original picks were from 2x binned images (collected in super-res), while the image alignment in cryosparc apparently cannot do binning? So my idea to fix it was simply edit my input particles star file so that the X and Y coordinates are twice their value (using awk and simple 2*$1). Now the coordinates make sense on an unbinned super-res image. However when I try importing as described above (with everything working fine before) I get the error below. Actually I guess I also need to multiply the relion origin x/y. Hmm.
anyways, here’s the error:
Attributeerror: ‘float’ object has no attribute ‘rFind’.
Example of a particle before and after my modification (where columns 1 & 2 are X/Y coords). Main difference is the number of decimals.
I’ve been having issues importing particles from relion into cryosparc. I am trying import a particle set extracted in relion into cryosparc, linking these particles to imported micrographs that were motion corrected in relion.
Essentially what is happening is cryosparc is inverting the imported micrographs so when I import the particles, whatever is taken from the micrographs is junk.
Can anyone help with this? why are micrographs inverted between cryosparc and relion?
cryoSPARC reads TIFF images in their native byte order on disk (positive x fast axis, positive y slow axis) whereas other programs including Relion read the y-axis in the opposite order. This means that if you import movies (rather than micrographs which would be in MRC format and don’t have this issue), cryoSPARC and Relion would read them flipped relative to eachother.
If you are trying to extract particles from pre-motion-corrected micrographs, you should be able to do so by importing the particles .star file (with particle locations) and importing the micrographs (in MRC format) rather than the TIFF movies. Then there should not be any discrepancy.
Hey, I am having a similar problem. My extracted particles were from binned motion corrected movies and GCTF corrected, but I performed motioncor2 in relion with the super-resolution movies. When I import the particle.star and run 3D-refinement, the map looks very strange. Are the x/y coordinates the only values you had to edit? What about the CTF values? Also, could you share with me the commands (sed, awk, etc.) that you used to edit the numbers? Thanks!
@kherbine If you are importing particles the coordinates don’t matter.
FYI though cryoSPARC correctly imports coordinates with respect to the Relion/Motioncor2/WARP micrographs. If you would import movies to cryoSPARC and run Patch Motion, and then want to extract particles in cryoSPARC from these movies, using imported coordinates, then you will need to check “flip micrograph in Y” in the extract particles job.