-
Notifications
You must be signed in to change notification settings - Fork 48
Acquisition simulation project for the ISC course
During the course we will simulate a real acquisition in order to see how Scipion acts while data is continuously arriving (streaming mode).
Since the lack of capablities using Virtual Box, we are not able to launch that simulation. However, we can visit an already processed workflow in order to understand what we will do.
To open the already processed project, launch Scipion from the shortcut and choose the 'Acquisition_Simulation' project.
A Scipion window should be opened showing the project. A Scipion project is made of a tree of individual boxes that we call protocols
. Every protocol performs a single operation such as align movies, estimate CTFs, pick particles...
In this project, we have labeled/colored the protocols by sections. You can change the color mode by Project
>Toogle color mode
or ctrl+t
. Even, you can add/edit labels clicking on Project
>Manage project labels
or right-click
on a protocol and click labels
to attach a label to a protocol.
We can see how the aligned movies looks by clicking on the MotionCor2 - align movies
protocol and then, clicking on the red button Analyze Results
.
Afterwards, the CTF is estimated by two protocols (CTFfind4 and Xmipp) and, then, the Xmipp - CTF consensus
performs a CTF quality evaluation in 3 different ways:
- General criteria: Asserts if the defocus is in a certain range and if the astigmatism and the estimated resolution is below a certain threshold.
- Xmipp criteria: Asserts several quality values assigned by Xmipp
- Consensus criteria: Compares the two CTF estimations and checks their compatibility.
We can view the results of every protocol by clicking on it's box and then, clicking on the red button Analyze Results
. Also, Scipion has implemented a Summary Monitor
protocol that creates a HTML report to follow the acquisition from any web browser.
In this case, two particles picking have been used, the Eman - Sparx auto-pick
and the Xmipp - manual-picking
. And two consensus pickings
have been performed, one with the junction of the two pickings (OR) and other with all those particles that coincides in both pickers (AND).
After extracting the particles, we perform a pruning to clean a bit the particles set following statistic analysis. Note that since the statistical analysis needs a certain among of particles, we include a trigger protocol that waits until a certain number of particles is reach to automatically continue with the workflow.
Since the 2D-classifyers work with a static set of particles, the Xmipp - triger data to classify
ensures that a certain among of particles is ready and then, a closed set of particles is given to fed the classifiers. We have added two independent methods to classify, one from Relion and the other from Xmipp.
The Auto-class selection
takes those averages that seems fine to be used to fed the initial model protocols. Then, the Xmipp - swarm init. vol.
performs a consensus between the Eman - initial vol.
, Xmipp - Recons. significans
and Xmipp - Ransac
to give an initial volume.
Finally, to keep monitoring the incoming particles coming from the new acquired movies, Scipion - streamer
is launching several Relion - 2D classifying
in batches.
In order to simulate a cryo-em acquisition we will run an script that, firstly, it takes movies from a data set, one by one every 30 seconds, to deposit it to a ~/microDepositions
folder and, secondly, it launches a Scipion pre-processing workflow to analyze the acquisition simulation in that folder.
To do that, go to a terminal and run
cd scipion
./scipion python ~/em-facilities/acquisition_workflow_demo.py
This will open a form to set up the preprocessing workflow. Firstly, you must introduce a User Name
and a Sample Name
.
All the parameters in the Pre-processing
section are optional and the default values are fine enough for the demo data set. However you can play setting the parameters in some way. For instance:
- We know that the sample belongs to the
d2
symmetry group, this will be used to estimate the initial model. - The movies have 16 frames, thus you cat skip some of them by indicating a certain
Frames range
. - The manual picking can be skipped if we set an
estimated particle size
of250
A, getting in this way a fully automatic workflow. - We can add optional protocols to estimate an initial volume such as
Xmipp Ransac
and/orEman Initial Volume
then, if some is selected, the workflow will include theXmipp swarm
protocol that finds a consensus initial volume. Note thatXmipp Significance
is always used to perform an initial model.
For the GPU usage
section, if you are running an AWS machine, we strongly recommend to set the MotionCor2's GPU id at 0
(leaving the rest at -1
).
Alternatively, if you are running Scipion in a VirtualBox machine you are not able to use GPU acceleration, therefore remain all the GPU ids at -1
.
Now, we are able to start the simulation acquisition by clicking on Create New Session
.
A Scipion window should be opened showing a project according to the parameters introduced in the form. A Scipion project is made of a tree of individual boxes that we call protocols
. Every protocol performs a single operation such as align movies, estimate CTFs, pick particles...
This project is fully scheduled, so after a while, the Import Movies
protocol will start to take movies and the data will flow down to the child protocols as it is ready to be processed.
The project is continuously changing as data is flowing all the time, then Scipion automatically updates the status of every protocol periodically. However, you can manually update the whole project by clicking on Refresh
at top-right corner.
After a while, some movies will be aligned. We can see how the aligned movies looks by clicking on the Xmipp - corr. align.
or MotionCor2 - align movies
protocol and then, clicking on the red button Analyze Results
.
Afterwards, the CTF is estimated by two protocols (CTFfind4 and Xmipp) and, then, the Xmipp - CTF consensus
performs a CTF quality evaluation in 3 different ways:
- General criteria: Asserts if the defocus is in a certain range and if the astigmatism and the estimated resolution is below a certain threshold.
- Xmipp criteria: Asserts several quality values assigned by Xmipp
- Consensus criteria: Compare the two CTF estimations and check their compatibility.
We can view the results of every protocol by clicking on it's box and then, clicking on the red button Analyze Results
. Also, Scipion has implemented a Summary Monitor
protocol that creates a HTML report to follow the acquisition from any web browser. You can see it by clicking on the Analyze Results
>Open HTM Report
. Note: if Summary Monitor
box is in green (finished), please re-run it by right-click
>Edit
>Restart
>Execute
>Yes
.
At this point, if you have fixed a particle size to 250A, the Eman - Sparx auto-pick
have automatically picked some particles. Alternatively, if no particle size has provided, the Xmipp - manual-picking
is waiting to by launched. To launch it, right-click
on the box and Execute
. Now, two windows are opened, one showing a micrograph and other listing the available micrographs and some parameters. Please, set a particle box size to about 70
pixels and pick some particles on the micrograph. Then, you can Activate Training
to pass to a semiautomatic mode where multiple particle are automatically picked and you can refine it by adding new particles clicking and/or deleting by shift+click
on a box. Once you are happy with the picking, click +Coordinate
to save the results. Then, execute the auto-picking
and the consensus pickings
protocols in order to continue with the workflow.
After extracting the particles, we perform a pruning to clean a bit the particles set following statistic analysis. Note that since the statistical analysis needs a certain among of particles, we include a trigger protocol that waits until a certain number of particles is reach to automatically continue with the workflow.
Due to the limited resources that we have in this tutorial, we cannot are able to continue with the classification and the initial model estimation. However, we can open an already processed project to see how it would have continue. Therefore, close the project by clicking on the Project
>Exit
.