User Tools

Site Tools


cryosparc

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
cryosparc [2021/08/11 13:46] – created bonnefoncryosparc [2024/08/07 15:51] (current) Luc Bonnefond
Line 1: Line 1:
 +====== using cryoSPARC ======
 +
 +===== modify the particles.star file from Warp =====
 +
 +The particles.star files generated by Warp during the on-the-fly processing link each particle to its tif movie. To import the particles in cryoSPARC and keep the link with the motion corrected micrographs, the star file must be edited.
 +
 +To edit the particles.star file in **vi** type: <code>vi allparticles_BoxNet2Mask_*.star</code> or <code>vi goodparticles_BoxNet2Mask_*.star</code>
 +
 +Change the location of movies to the motion corrected ones:
 +<code>
 +:
 +%s/ <first_characters_of_movie_files>/ average\/<first_characters_of_movie_files>
 +</code>
 +
 +Change the file type of the motion corrected micrographs:
 +<code>
 +:
 +%s/tif/mrc
 +</code>
 +
 +Save the changes and close **vi**:
 +<code>
 +:
 +wq!
 +</code>
 +
 +You can now import the particles in **cryoSPARC** using the **Import Particle Stack** job and parameters:
 +  * Micrograph data path: <quote>average/<first_characters_of_movie_files>*.mrc</quote>
 +  * Particle meta path: <quote>goodparticles_BoxNet2Mask_*.star</quote>
 +  * Particle data path: <quote>particles/</quote>
 +  * Check : <quote>Remove leading UID in input micrograph file name</quote>
 +
 +
 +----
 +===== Reduce the size of a particle stack subset =====
 +
 +To reduce the size of the space required on the SSD cache if you are working with a subset of the full extracted particles stack (after selecting a subset of particles with <quote>2D classification</quote> job for example)
 +  * Run a <quote>Downsample Particles</quote> job on the subset (output of <quote>select 2D</quote> job in my previous example) without specifying any downsampling. 
 +The output can be used for further processing and will be smaller and thus faster to load on the scratch. Otherwise the full stask will be loaded in the scratch event thoush only part of it will be used. 
 +
 +----
 +===== Generate a defect file for cryoSPARC =====
 +
 +
 +Gain/defect files coming from Glacios must be flipped along Y axis when imported in cryoSPARC.
 +
 Gain file is by default named CountRef...mrc (with a pixel size of 1) Gain file is by default named CountRef...mrc (with a pixel size of 1)
  
Line 20: Line 66:
 The pixel size will messed-up and has to be fixed to get back to a value of 1 The pixel size will messed-up and has to be fixed to get back to a value of 1
   alterheader -fixpixel Gain_subimage...mrc   alterheader -fixpixel Gain_subimage...mrc
-Now the Gain_substracted...mrc file has a zero value for defective pixels instead of 1).+Now the Gain_substracted...mrc file has a zero value for defective pixels instead of 1
 + 
 +Remark: the defect file generated by the Glacios now (2021-10-27is a map mode 2 and has a pixel spacing of 0.9372, but the images have a pixel spacing of 0.901. It might be better to change the last command by 
 +  alterheader -del 0.901,0.901,0.901 Gain_subimage...mrc  
 +   
 +   
 + 
 + 
 +<code>subimage CountRef_9AR3_00001_Oct27_15.55.18_X+0Y+0-1.mrc defects_40S_ScVdelta_03939_Oct27_11.34.51.mrc CountRef_9AR3_00001_Oct27_15.55.18_X+0Y+0-1_subimage.mrc 
 + 
 + RO image file on unit   2 : defects_40S_ScVdelta_03939_Oct27_11.34.51.mrc     Size=      13906 K 
 + 
 + Number of columns, rows, sections .....    3838    3710       1 
 + Map mode ..............................    2   (32-bit real) 
 + Start cols, rows, sects, grid x,y,z ...    0            3838   3710      1 
 + Pixel spacing (Angstroms)..............  0.9372     0.9372     0.9372 
 + Cell angles ...........................   90.000   90.000   90.000 
 + Fast, medium, slow axes ...............    X    Y    Z 
 + Origin on x,y,z .......................    0.000       0.000       0.000 
 + Minimum density .......................  0.85517E-01 
 + Maximum density .......................   4.5518 
 + Mean density ..........................   1.0010 
 + tilt angles (original,current) ........   0.0   0.0   0.0   0.0   0.0   0.0 
 + Space group,# extra bytes,idtype,lens .        0        0        0        0 
 + 
 +     1 Titles : 
 +Digital Micrograph(TM), GMS v 3.32 
 + 
 + 
 + Number of columns, rows, sections .....    3838    3710       1 
 + Map mode ..............................    0   (byte) 
 + Start cols, rows, sects, grid x,y,z ...    0            3838   3710     40 
 + Pixel spacing (Angstroms)..............  0.9010     0.9010     0.9010 
 + Cell angles ...........................   90.000   90.000   90.000 
 + Fast, medium, slow axes ...............    X    Y    Z 
 + Origin on x,y,z .......................    0.000       0.000       0.000 
 + Minimum density .......................   0.0000 
 + Maximum density .......................   1.0000 
 + Mean density ..........................  0.70932E-05 
 + tilt angles (original,current) ........   0.0   0.0   0.0   0.0   0.0   0.0 
 + Space group,# extra bytes,idtype,lens .        0        0        0        0 
 + 
 +     4 Titles : 
 +SerialEMCCD: Dose frac. image, scaled by 1.00  r/f 0 
 +  CountRef_9AR3_00001_Oct27_15.55.18_X+0Y+0-1.dm4 
 +  defects_40S_ScVdelta_03939_Oct27_11.34.51.txt 
 +clip defectmap: Map of defective pixels in image        28-Oct-21  11:40:50 
 + 
 + 
 + NEW image file on unit   3 : CountRef_9AR3_00001_Oct27_15.55.18_X+0Y+0-1_subimage.mrc 
 + Section      Min            Max            Mean           S.D. 
 +    0         0.0000         4.5518         1.0010         0.0327 
 +     
 + alterheader -fixpixel CountRef_9AR3_00001_Oct27_15.55.18_X+0Y+0-1_subimage.mrc 
 + 
 + OLD image file on unit   2 : CountRef_9AR3_00001_Oct27_15.55.18_X+0Y+0-1_subimage.mrc     Size=      55622 K 
 + 
 + Number of columns, rows, sections .....    3838    3710       1 
 + Map mode ..............................    2   (32-bit real) 
 + Start cols, rows, sects, grid x,y,z ...    0            3838   3710      1 
 + Pixel spacing (Angstroms)..............  0.9372     0.9372     0.9372 
 + Cell angles ...........................   90.000   90.000   90.000 
 + Fast, medium, slow axes ...............    X    Y    Z 
 + Origin on x,y,z .......................    0.000       0.000       0.000 
 + Minimum density .......................   0.0000 
 + Maximum density .......................   4.5518 
 + Mean density ..........................   1.0010 
 + tilt angles (original,current) ........   0.0   0.0   0.0   0.0   0.0   0.0 
 + Space group,# extra bytes,idtype,lens .        0        0        0        0 
 + 
 +     2 Titles : 
 +Digital Micrograph(TM), GMS v 3.32 
 +SUBIMAGE: Subtract section B from section A.            28-Oct-21  11:42:19 
 + 
 + Changing sample and cell sizes to match image size, 
 + which will make pixel spacing be 1.0 1.0 1.0. 
 + 
 + RO image file on unit   3 : CountRef_9AR3_00001_Oct27_15.55.18_X+0Y+0-1_subimage.mrc     Size=      55622 K 
 + 
 + Number of columns, rows, sections .....    3838    3710       1 
 + Map mode ..............................    2   (32-bit real) 
 + Start cols, rows, sects, grid x,y,z ...    0            3838   3710      1 
 + Pixel spacing (Angstroms)..............   1.000      1.000      1.000 
 + Cell angles ...........................   90.000   90.000   90.000 
 + Fast, medium, slow axes ...............    X    Y    Z 
 + Origin on x,y,z .......................    0.000       0.000       0.000 
 + Minimum density .......................   0.0000 
 + Maximum density .......................   4.5518 
 + Mean density ..........................   1.0010 
 + tilt angles (original,current) ........   0.0   0.0   0.0   0.0   0.0   0.0 
 + Space group,# extra bytes,idtype,lens .        0        0        0        0 
 + 
 +     2 Titles : 
 +Digital Micrograph(TM), GMS v 3.32 
 +SUBIMAGE: Subtract section B from section A.            28-Oct-21  11:42:19 
 + 
 + 
 +alterheader -del 0.901,0.901,0.901 CountRef_9AR3_00001_Oct27_15.55.18_X+0Y+0-1_subimage.mrc 
 + 
 + OLD image file on unit   2 : CountRef_9AR3_00001_Oct27_15.55.18_X+0Y+0-1_subimage.mrc     Size=      55622 K 
 + 
 + Number of columns, rows, sections .....    3838    3710       1 
 + Map mode ..............................    2   (32-bit real) 
 + Start cols, rows, sects, grid x,y,z ...    0            3838   3710      1 
 + Pixel spacing (Angstroms)..............   1.000      1.000      1.000 
 + Cell angles ...........................   90.000   90.000   90.000 
 + Fast, medium, slow axes ...............    X    Y    Z 
 + Origin on x,y,z .......................    0.000       0.000       0.000 
 + Minimum density .......................   0.0000 
 + Maximum density .......................   4.5518 
 + Mean density ..........................   1.0010 
 + tilt angles (original,current) ........   0.0   0.0   0.0   0.0   0.0   0.0 
 + Space group,# extra bytes,idtype,lens .        0        0        0        0 
 + 
 +     2 Titles : 
 +Digital Micrograph(TM), GMS v 3.32 
 +SUBIMAGE: Subtract section B from section A.            28-Oct-21  11:42:19 
 + 
 + 
 + RO image file on unit   3 : CountRef_9AR3_00001_Oct27_15.55.18_X+0Y+0-1_subimage.mrc     Size=      55622 K 
 + 
 + Number of columns, rows, sections .....    3838    3710       1 
 + Map mode ..............................    2   (32-bit real) 
 + Start cols, rows, sects, grid x,y,z ...    0            3838   3710      1 
 + Pixel spacing (Angstroms)..............  0.9010     0.9010     0.9010 
 + Cell angles ...........................   90.000   90.000   90.000 
 + Fast, medium, slow axes ...............    X    Y    Z 
 + Origin on x,y,z .......................    0.000       0.000       0.000 
 + Minimum density .......................   0.0000 
 + Maximum density .......................   4.5518 
 + Mean density ..........................   1.0010 
 + tilt angles (original,current) ........   0.0   0.0   0.0   0.0   0.0   0.0 
 + Space group,# extra bytes,idtype,lens .        0        0        0        0 
 + 
 +     2 Titles : 
 +Digital Micrograph(TM), GMS v 3.32 
 +SUBIMAGE: Subtract section B from section A           28-Oct-21  11:42:19 
 +</code> 
 +     
  
cryosparc.1628689565.txt.gz · Last modified: (external edit)