Hi everyone,
I am using Csparc v4.4.0. I want to extract the particles from Csparc to Relion and build a new 2D class average. I have used the following command to convert the exported “cs” file to “star” file.
I have followed the following steps:
-
mkdir -p J35/extract
-
cd J35/extract
-
ln -s /path/to/cryosparc/P01/J35/extract/*.mrc -t .
-
*rename .mrc .mrcs .mrc
-
python csparc2star.py --inverty /home/bioschool/phd/blz218474/scratch/FHV_46C/Micrograph/CS-fhv46/J35/extracted_particles.cs /home/bioschool/phd/blz218474/scratch/FHV_46C/Micrograph/CS-fhv46/J35/J35_passthrough_particles.cs from_csparc_J35.star
-
sed -i ‘s/particles.mrc/particles.mrcs/g’ from_csparc_J35.star
A few lines from the star file
data_optics
loop_
_rlnVoltage #1
_rlnImagePixelSize #2
_rlnSphericalAberration #3
_rlnAmplitudeContrast #4
_rlnOpticsGroup #5
_rlnImageSize #6
_rlnImageDimensionality #7
_rlnOpticsGroupName #8
300.000000 1.380000 2.600000 0.100000 1 384 2 opticsGroup1
data_particles
loop_
_rlnImageName #1
_rlnMicrographName #2
_rlnCoordinateX #3
_rlnCoordinateY #4
_rlnDefocusU #5
_rlnDefocusV #6
_rlnDefocusAngle #7
_rlnPhaseShift #8
_rlnCtfBfactor #9
_rlnOpticsGroup #10
000001@J35/extract/000007318550799742358_FoilHole_5311948_Data_5312779_5312781_20240206_201149_fractions_patch_aligned_doseweighted_particles.mrcss J2/motioncorrected/000007318550799742358_FoilHole_5311948_Data_5312779_5312781_20240206_201149_fractions_patch_aligned_doseweighted.mrc 4165 1151 2790.947998 2529.266846 -41.203949 0.000000 0.000000 1
000002@J35/extract/000007318550799742358_FoilHole_5311948_Data_5312779_5312781_20240206_201149_fractions_patch_aligned_doseweighted_particles.mrcss J2/motioncorrected/000007318550799742358_FoilHole_5311948_Data_5312779_5312781_20240206_201149_fractions_patch_aligned_doseweighted.mrc 5065 370 2827.624023 2565.943115 -41.203949 0.000000 0.000000 1
However, I am confused about the following steps:
sed -i 's/J2/motioncorrected/MotionCorr/job003/Micrographs/g ’ from_csparc_J35.star
Do I have to create an empty directory MotionCorr/job003/Mirographs in my J35 directory? If I do that still the doseweighted.mrc files are not “mrscs”.
000001@J35/extract/000007318550799742358_FoilHole_5311948_Data_5312779_5312781_20240206_201149_fractions_patch_aligned_doseweighted_particles.mrcss MotionCorr/job003/Micrographs/000007318550799742358_FoilHole_5311948_Data_5312779_5312781_20240206_201149_fractions_patch_aligned_doseweighted.mrc 4165 1151 2790.947998 2529.266846 -41.203949 0.000000 0.000000 1
and it throws an error in Relion.
Cannot read file J35/extract/014441083777823066663_FoilHole_5308013_Data_5312763_5312765_20240207_010209_fractions_patch_aligned_doseweighted_particles.mrcs It does not exist
Could you please advise on the best way forward and point out any areas where I may be making mistakes?
Regards
Subhomoi